VTK
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 
69 {
70 public:
71  static vtkPassArrays* New();
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 
138 
140 
141  virtual int RequestDataObject(vtkInformation* request,
142  vtkInformationVector** inputVector,
143  vtkInformationVector* outputVector);
145 
146  int RequestData(
150 
153 
154  //BTX
155  class Internals;
156  Internals* Implementation;
157  //ETX
158 
159 private:
160  vtkPassArrays(const vtkPassArrays&); // Not implemented
161  void operator=(const vtkPassArrays&); // Not implemented
162 };
163 
164 #endif
165 
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store vtkAlgorithm input/output information.
static vtkDataObjectAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Passes a subset of arrays to the output.
Definition: vtkPassArrays.h:68
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKFILTERSGENERAL_EXPORT
virtual int FillInputPortInformation(int port, vtkInformation *info)
Superclass for algorithms that produce only data object as output.
Internals * Implementation
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store zero or more vtkInformation instances.