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:
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 
96 
98 private:
99  vtkSplitColumnComponents(const vtkSplitColumnComponents&); // Not implemented
100  void operator=(const vtkSplitColumnComponents&); // Not implemented
101 };
102 
103 #endif
vtkSplitColumnComponents::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkSplitColumnComponents::New
static vtkSplitColumnComponents * New()
vtkSplitColumnComponents::SetNamingModeToNumberWithParens
void SetNamingModeToNumberWithParens()
Definition: vtkSplitColumnComponents.h:71
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkSplitColumnComponents::~vtkSplitColumnComponents
~vtkSplitColumnComponents()
vtkSplitColumnComponents
split multicomponent table columns
Definition: vtkSplitColumnComponents.h:47
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkTableAlgorithm
Superclass for algorithms that produce only vtkTables as output.
Definition: vtkTableAlgorithm.h:48
vtkFiltersGeneralModule.h
vtkSplitColumnComponents::SetNamingModeToNamesWithUnderscores
void SetNamingModeToNamesWithUnderscores()
Definition: vtkSplitColumnComponents.h:77
vtkSplitColumnComponents::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkSplitColumnComponents::SetNamingModeToNumberWithUnderscores
void SetNamingModeToNumberWithUnderscores()
Definition: vtkSplitColumnComponents.h:73
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
VTKFILTERSGENERAL_EXPORT
#define VTKFILTERSGENERAL_EXPORT
Definition: vtkFiltersGeneralModule.h:15
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkAbstractArray
Abstract superclass for all arrays.
Definition: vtkAbstractArray.h:65
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkTableAlgorithm.h
vtkStdString
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:48
vtkSplitColumnComponents::vtkSplitColumnComponents
vtkSplitColumnComponents()
vtkSplitColumnComponents::CalculateMagnitudes
bool CalculateMagnitudes
Definition: vtkSplitColumnComponents.h:90
vtkSplitColumnComponents::SetNamingModeToNamesWithParens
void SetNamingModeToNamesWithParens()
Definition: vtkSplitColumnComponents.h:75
vtkSplitColumnComponents::NamingMode
int NamingMode
Definition: vtkSplitColumnComponents.h:97
vtkSplitColumnComponents::GetComponentLabel
vtkStdString GetComponentLabel(vtkAbstractArray *array, int component_no)