57 #ifndef vtkFieldDataToAttributeDataFilter_h
58 #define vtkFieldDataToAttributeDataFilter_h
63 #define VTK_DATA_OBJECT_FIELD 0
64 #define VTK_POINT_DATA_FIELD 1
65 #define VTK_CELL_DATA_FIELD 2
67 #define VTK_CELL_DATA 0
68 #define VTK_POINT_DATA 1
89 vtkSetMacro(InputField,
int);
90 vtkGetMacro(InputField,
int);
102 vtkSetMacro(OutputAttributeData,
int);
103 vtkGetMacro(OutputAttributeData,
int);
116 void SetScalarComponent(
int comp,
const char *arrayName,
int arrayComp,
117 int min,
int max,
int normalize);
119 {this->SetScalarComponent(comp, arrayName, arrayComp, -1, -1, this->DefaultNormalize);};
120 const char *GetScalarComponentArrayName(
int comp);
121 int GetScalarComponentArrayComponent(
int comp);
122 int GetScalarComponentMinRange(
int comp);
123 int GetScalarComponentMaxRange(
int comp);
124 int GetScalarComponentNormalizeFlag(
int comp);
133 void SetVectorComponent(
int comp,
const char *arrayName,
int arrayComp,
134 int min,
int max,
int normalize);
136 {this->SetVectorComponent(comp, arrayName, arrayComp, -1, -1, this->DefaultNormalize);};
137 const char *GetVectorComponentArrayName(
int comp);
138 int GetVectorComponentArrayComponent(
int comp);
139 int GetVectorComponentMinRange(
int comp);
140 int GetVectorComponentMaxRange(
int comp);
141 int GetVectorComponentNormalizeFlag(
int comp);
150 void SetNormalComponent(
int comp,
const char *arrayName,
int arrayComp,
151 int min,
int max,
int normalize);
153 {this->SetNormalComponent(comp, arrayName, arrayComp, -1, -1, this->DefaultNormalize);};
154 const char *GetNormalComponentArrayName(
int comp);
155 int GetNormalComponentArrayComponent(
int comp);
156 int GetNormalComponentMinRange(
int comp);
157 int GetNormalComponentMaxRange(
int comp);
158 int GetNormalComponentNormalizeFlag(
int comp);
167 void SetTensorComponent(
int comp,
const char *arrayName,
int arrayComp,
168 int min,
int max,
int normalize);
170 {this->SetTensorComponent(comp, arrayName, arrayComp, -1, -1, this->DefaultNormalize);};
171 const char *GetTensorComponentArrayName(
int comp);
172 int GetTensorComponentArrayComponent(
int comp);
173 int GetTensorComponentMinRange(
int comp);
174 int GetTensorComponentMaxRange(
int comp);
175 int GetTensorComponentNormalizeFlag(
int comp);
184 void SetTCoordComponent(
int comp,
const char *arrayName,
int arrayComp,
185 int min,
int max,
int normalize);
187 {this->SetTCoordComponent(comp, arrayName, arrayComp, -1, -1, this->DefaultNormalize);};
188 const char *GetTCoordComponentArrayName(
int comp);
189 int GetTCoordComponentArrayComponent(
int comp);
190 int GetTCoordComponentMinRange(
int comp);
191 int GetTCoordComponentMaxRange(
int comp);
192 int GetTCoordComponentNormalizeFlag(
int comp);
198 vtkSetMacro(DefaultNormalize,
int);
199 vtkGetMacro(DefaultNormalize,
int);
200 vtkBooleanMacro(DefaultNormalize,
int);
208 static int GetComponentsType(
int numComp,
vtkDataArray **arrays);
225 static void SetArrayName(
vtkObject *
self,
char* &
name,
const char *newName);
248 char *ScalarArrays[4];
249 int ScalarArrayComponents[4];
251 int ScalarNormalize[4];
253 char *VectorArrays[3];
254 int VectorArrayComponents[3];
256 int VectorNormalize[3];
263 char *NormalArrays[3];
264 int NormalArrayComponents[3];
266 int NormalNormalize[3];
268 char *TensorArrays[9];
269 int TensorArrayComponents[9];
271 int TensorNormalize[9];
274 char *TCoordArrays[3];
275 int TCoordArrayComponents[3];
277 int TCoordNormalize[3];
282 vtkIdType componentRange[4][2],
char *arrays[4],
283 int arrayComponents[4],
int normalize[4],
int numComp);
285 vtkIdType componentRange[3][2],
char *arrays[3],
286 int arrayComponents[3],
int normalize[3]);
290 char *array,
int arrayComponent,
int normalize);
292 vtkIdType componentRange[3][2],
char *arrays[3],
293 int arrayComponents[3],
int normalize[3]);
295 vtkIdType componentRange[3][2],
char *arrays[3],
296 int arrayComponents[3],
int normalize[3],
int numComp);
298 vtkIdType componentRange[9][2],
char *arrays[9],
299 int arrayComponents[9],
int normalize[9]);
int NumberOfScalarComponents
#define VTK_POINT_DATA_FIELD
abstract base class for most VTK objects
void SetTCoordComponent(int comp, const char *arrayName, int arrayComp)
int GhostLevelArrayComponent
#define VTKFILTERSCORE_EXPORT
void SetVectorComponent(int comp, const char *arrayName, int arrayComp)
map field data to dataset attribute data
void SetInputFieldToCellDataField()
a simple class to control print indentation
void SetOutputAttributeDataToPointData()
void SetScalarComponent(int comp, const char *arrayName, int arrayComp)
abstract superclass for arrays of numeric data
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
represent and manipulate attribute data in a dataset
void SetInputFieldToPointDataField()
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void SetNormalComponent(int comp, const char *arrayName, int arrayComp)
#define VTK_DATA_OBJECT_FIELD
void SetTensorComponent(int comp, const char *arrayName, int arrayComp)
void SetOutputAttributeDataToCellData()
int NumberOfTCoordComponents
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce output of the same type as input.
void SetInputFieldToDataObjectField()
#define VTK_CELL_DATA_FIELD
static vtkDataSetAlgorithm * New()
represent and manipulate fields of data