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 
68 class VTKFILTERSGENERAL_EXPORT vtkPassArrays : public vtkDataObjectAlgorithm
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 
81  virtual void ClearArrays();
82 
84 
86  vtkSetMacro(RemoveArrays, bool);
87  vtkGetMacro(RemoveArrays, bool);
88  vtkBooleanMacro(RemoveArrays, bool);
90 
92 
95  vtkSetMacro(UseFieldTypes, bool);
96  vtkGetMacro(UseFieldTypes, bool);
97  vtkBooleanMacro(UseFieldTypes, bool);
99 
104  virtual void AddFieldType(int fieldType);
105 
107  virtual void ClearFieldTypes();
108 
110 
111  virtual int ProcessRequest(vtkInformation* request,
112  vtkInformationVector** inputVector,
113  vtkInformationVector* outputVector);
115 
116 protected:
117  vtkPassArrays();
118  ~vtkPassArrays();
119 
121 
122  virtual int RequestDataObject(vtkInformation* request,
123  vtkInformationVector** inputVector,
124  vtkInformationVector* outputVector);
126 
127  int RequestData(
131 
134 
135  //BTX
136  class Internals;
137  Internals* Implementation;
138  //ETX
139 
140 private:
141  vtkPassArrays(const vtkPassArrays&); // Not implemented
142  void operator=(const vtkPassArrays&); // Not implemented
143 };
144 
145 #endif
146