VTK
vtkSplitColumnComponents.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSplitColumnComponents.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
37 #ifndef vtkSplitColumnComponents_h
38 #define vtkSplitColumnComponents_h
39 
40 #include "vtkFiltersGeneralModule.h" // For export macro
41 #include "vtkTableAlgorithm.h"
42 
43 class vtkStdString;
44 class VTKFILTERSGENERAL_EXPORT vtkSplitColumnComponents : public vtkTableAlgorithm
45 {
46 public:
47  static vtkSplitColumnComponents* New();
49  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
50 
52 
57  vtkSetMacro(CalculateMagnitudes, bool);
58  vtkGetMacro(CalculateMagnitudes, bool);
60 
61  enum
62  {
63  NUMBERS_WITH_PARENS = 0, // e.g Points (0)
64  NAMES_WITH_PARENS = 1, // e.g. Points (X)
65  NUMBERS_WITH_UNDERSCORES=2, // e.g. Points_0
66  NAMES_WITH_UNDERSCORES=3 // e.g. Points_X
67  };
68 
70 
74  vtkSetClampMacro(NamingMode, int, NUMBERS_WITH_PARENS, NAMES_WITH_UNDERSCORES);
76  { this->SetNamingMode(NUMBERS_WITH_PARENS); }
78  { this->SetNamingMode(NUMBERS_WITH_UNDERSCORES); }
80  { this->SetNamingMode(NAMES_WITH_PARENS); }
82  { this->SetNamingMode(NAMES_WITH_UNDERSCORES); }
83  vtkGetMacro(NamingMode, int);
85 
86 protected:
88  ~vtkSplitColumnComponents() VTK_OVERRIDE;
89 
94  vtkStdString GetComponentLabel(vtkAbstractArray* array, int component_no);
95 
97 
98  int RequestData(
101  vtkInformationVector*) VTK_OVERRIDE;
102 
104 private:
105  vtkSplitColumnComponents(const vtkSplitColumnComponents&) VTK_DELETE_FUNCTION;
106  void operator=(const vtkSplitColumnComponents&) VTK_DELETE_FUNCTION;
107 };
108 
109 #endif
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:41
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkTableAlgorithm * New()
Store vtkAlgorithm input/output information.
Abstract superclass for all arrays.
a simple class to control print indentation
Definition: vtkIndent.h:33
void SetNamingModeToNumberWithParens()
Get/Set the array naming mode.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void SetNamingModeToNumberWithUnderscores()
Get/Set the array naming mode.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Superclass for algorithms that produce only vtkTables as output.
void SetNamingModeToNamesWithParens()
Get/Set the array naming mode.
Store zero or more vtkInformation instances.
split multicomponent table columns
void SetNamingModeToNamesWithUnderscores()
Get/Set the array naming mode.