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 -------------------------------------------------------------------------*/
39 #ifndef vtkSplitColumnComponents_h
40 #define vtkSplitColumnComponents_h
41 
42 #include "vtkFiltersGeneralModule.h" // For export macro
43 #include "vtkTableAlgorithm.h"
44 
45 class vtkStdString;
47 {
48 public:
49  static vtkSplitColumnComponents* New();
51  void PrintSelf(ostream& os, vtkIndent indent);
52 
54 
56  vtkSetMacro(CalculateMagnitudes, bool);
57  vtkGetMacro(CalculateMagnitudes, bool);
59 
60  enum
61  {
62  NUMBERS_WITH_PARENS = 0, // e.g Points (0)
63  NAMES_WITH_PARENS = 1, // e.g. Points (X)
64  NUMBERS_WITH_UNDERSCORES=2, // e.g. Points_0
65  NAMES_WITH_UNDERSCORES=3 // e.g. Points_X
66  };
67 
69 
70  vtkSetClampMacro(NamingMode, int, NUMBERS_WITH_PARENS, NAMES_WITH_UNDERSCORES);
72  { this->SetNamingMode(NUMBERS_WITH_PARENS); }
74  { this->SetNamingMode(NUMBERS_WITH_UNDERSCORES); }
76  { this->SetNamingMode(NAMES_WITH_PARENS); }
78  { this->SetNamingMode(NAMES_WITH_UNDERSCORES); }
79  vtkGetMacro(NamingMode, int);
81 
82 protected:
85 
88  vtkStdString GetComponentLabel(vtkAbstractArray* array, int component_no);
89 
91 
92  int RequestData(
96 
98 private:
99  vtkSplitColumnComponents(const vtkSplitColumnComponents&); // Not implemented
100  void operator=(const vtkSplitColumnComponents&); // Not implemented
101 };
102 
103 #endif
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:46
void PrintSelf(ostream &os, vtkIndent indent)
static vtkTableAlgorithm * New()
Store vtkAlgorithm input/output information.
Abstract superclass for all arrays.
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKFILTERSGENERAL_EXPORT
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Superclass for algorithms that produce only vtkTables as output.
Store zero or more vtkInformation instances.
split multicomponent table columns