VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkPassArrays.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPassArrays.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 -------------------------------------------------------------------------*/
62 #ifndef __vtkPassArrays_h
63 #define __vtkPassArrays_h
64 
65 #include "vtkFiltersGeneralModule.h" // For export macro
66 #include "vtkDataObjectAlgorithm.h"
67 
68 class VTKFILTERSGENERAL_EXPORT vtkPassArrays : public vtkDataObjectAlgorithm
69 {
70 public:
71  static vtkPassArrays* New();
72  vtkTypeMacro(vtkPassArrays,vtkDataObjectAlgorithm);
73  void PrintSelf(ostream& os, vtkIndent indent);
74 
78  virtual void AddArray(int fieldType, const char* name);
79 
80  virtual void AddPointDataArray(const char* name);
81  virtual void AddCellDataArray(const char* name);
82  virtual void AddFieldDataArray(const char* name);
83 
84  virtual void RemoveArray(int fieldType, const char* name);
85 
86  virtual void RemovePointDataArray(const char* name);
87  virtual void RemoveCellDataArray(const char* name);
88  virtual void RemoveFieldDataArray(const char* name);
89 
91 
92  virtual void ClearArrays();
93  virtual void ClearPointDataArrays();
94  virtual void ClearCellDataArrays();
95  virtual void ClearFieldDataArrays();
97 
99 
101  vtkSetMacro(RemoveArrays, bool);
102  vtkGetMacro(RemoveArrays, bool);
103  vtkBooleanMacro(RemoveArrays, bool);
105 
107 
110  vtkSetMacro(UseFieldTypes, bool);
111  vtkGetMacro(UseFieldTypes, bool);
112  vtkBooleanMacro(UseFieldTypes, bool);
114 
119  virtual void AddFieldType(int fieldType);
120 
122  virtual void ClearFieldTypes();
123 
125 
126  virtual int ProcessRequest(vtkInformation* request,
127  vtkInformationVector** inputVector,
128  vtkInformationVector* outputVector);
130 
131 protected:
132  vtkPassArrays();
133  ~vtkPassArrays();
134 
136 
137  virtual int RequestDataObject(vtkInformation* request,
138  vtkInformationVector** inputVector,
139  vtkInformationVector* outputVector);
141 
142  int RequestData(
143  vtkInformation*,
144  vtkInformationVector**,
145  vtkInformationVector*);
146 
149 
150  //BTX
151  class Internals;
152  Internals* Implementation;
153  //ETX
154 
155 private:
156  vtkPassArrays(const vtkPassArrays&); // Not implemented
157  void operator=(const vtkPassArrays&); // Not implemented
158 };
159 
160 #endif
161 
Passes a subset of arrays to the output.
Definition: vtkPassArrays.h:68
Internals * Implementation