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 -------------------------------------------------------------------------*/
40 #ifndef vtkSplitColumnComponents_h
41 #define vtkSplitColumnComponents_h
42 
43 #include "vtkFiltersGeneralModule.h" // For export macro
44 #include "vtkTableAlgorithm.h"
45 
46 class vtkStdString;
47 class VTKFILTERSGENERAL_EXPORT vtkSplitColumnComponents : public vtkTableAlgorithm
48 {
49 public:
50  static vtkSplitColumnComponents* New();
52  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
53 
55 
60  vtkSetMacro(CalculateMagnitudes, bool);
61  vtkGetMacro(CalculateMagnitudes, bool);
63 
64  enum
65  {
66  NUMBERS_WITH_PARENS = 0, // e.g Points (0)
67  NAMES_WITH_PARENS = 1, // e.g. Points (X)
68  NUMBERS_WITH_UNDERSCORES=2, // e.g. Points_0
69  NAMES_WITH_UNDERSCORES=3 // e.g. Points_X
70  };
71 
73 
77  vtkSetClampMacro(NamingMode, int, NUMBERS_WITH_PARENS, NAMES_WITH_UNDERSCORES);
79  { this->SetNamingMode(NUMBERS_WITH_PARENS); }
81  { this->SetNamingMode(NUMBERS_WITH_UNDERSCORES); }
83  { this->SetNamingMode(NAMES_WITH_PARENS); }
85  { this->SetNamingMode(NAMES_WITH_UNDERSCORES); }
86  vtkGetMacro(NamingMode, int);
88 
89 protected:
91  ~vtkSplitColumnComponents() VTK_OVERRIDE;
92 
97  vtkStdString GetComponentLabel(vtkAbstractArray* array, int component_no);
98 
99  bool CalculateMagnitudes;
100 
101  int RequestData(
104  vtkInformationVector*) VTK_OVERRIDE;
105 
106  int NamingMode;
107 private:
108  vtkSplitColumnComponents(const vtkSplitColumnComponents&) VTK_DELETE_FUNCTION;
109  void operator=(const vtkSplitColumnComponents&) VTK_DELETE_FUNCTION;
110 };
111 
112 #endif
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:47
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:39
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.
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.