58 #ifndef vtkFieldDataToAttributeDataFilter_h 59 #define vtkFieldDataToAttributeDataFilter_h 61 #include "vtkFiltersCoreModule.h" 64 #define VTK_DATA_OBJECT_FIELD 0 65 #define VTK_POINT_DATA_FIELD 1 66 #define VTK_CELL_DATA_FIELD 2 68 #define VTK_CELL_DATA 0 69 #define VTK_POINT_DATA 1 94 vtkSetMacro(InputField,
int);
95 vtkGetMacro(InputField,
int);
108 vtkSetMacro(OutputAttributeData,
int);
109 vtkGetMacro(OutputAttributeData,
int);
124 void SetScalarComponent(
int comp,
const char *arrayName,
int arrayComp,
125 int min,
int max,
int normalize);
127 {this->SetScalarComponent(comp, arrayName, arrayComp, -1, -1, this->DefaultNormalize);};
128 const char *GetScalarComponentArrayName(
int comp);
129 int GetScalarComponentArrayComponent(
int comp);
130 int GetScalarComponentMinRange(
int comp);
131 int GetScalarComponentMaxRange(
int comp);
132 int GetScalarComponentNormalizeFlag(
int comp);
143 void SetVectorComponent(
int comp,
const char *arrayName,
int arrayComp,
144 int min,
int max,
int normalize);
146 {this->SetVectorComponent(comp, arrayName, arrayComp, -1, -1, this->DefaultNormalize);};
147 const char *GetVectorComponentArrayName(
int comp);
148 int GetVectorComponentArrayComponent(
int comp);
149 int GetVectorComponentMinRange(
int comp);
150 int GetVectorComponentMaxRange(
int comp);
151 int GetVectorComponentNormalizeFlag(
int comp);
162 void SetNormalComponent(
int comp,
const char *arrayName,
int arrayComp,
163 int min,
int max,
int normalize);
165 {this->SetNormalComponent(comp, arrayName, arrayComp, -1, -1, this->DefaultNormalize);};
166 const char *GetNormalComponentArrayName(
int comp);
167 int GetNormalComponentArrayComponent(
int comp);
168 int GetNormalComponentMinRange(
int comp);
169 int GetNormalComponentMaxRange(
int comp);
170 int GetNormalComponentNormalizeFlag(
int comp);
181 void SetTensorComponent(
int comp,
const char *arrayName,
int arrayComp,
182 int min,
int max,
int normalize);
184 {this->SetTensorComponent(comp, arrayName, arrayComp, -1, -1, this->DefaultNormalize);};
185 const char *GetTensorComponentArrayName(
int comp);
186 int GetTensorComponentArrayComponent(
int comp);
187 int GetTensorComponentMinRange(
int comp);
188 int GetTensorComponentMaxRange(
int comp);
189 int GetTensorComponentNormalizeFlag(
int comp);
200 void SetTCoordComponent(
int comp,
const char *arrayName,
int arrayComp,
201 int min,
int max,
int normalize);
203 {this->SetTCoordComponent(comp, arrayName, arrayComp, -1, -1, this->DefaultNormalize);};
204 const char *GetTCoordComponentArrayName(
int comp);
205 int GetTCoordComponentArrayComponent(
int comp);
206 int GetTCoordComponentMinRange(
int comp);
207 int GetTCoordComponentMaxRange(
int comp);
208 int GetTCoordComponentNormalizeFlag(
int comp);
228 static int GetComponentsType(
int numComp,
vtkDataArray **arrays);
248 static void SetArrayName(
vtkObject *
self,
char* &name,
const char *newName);
271 char *ScalarArrays[4];
272 int ScalarArrayComponents[4];
274 int ScalarNormalize[4];
276 char *VectorArrays[3];
277 int VectorArrayComponents[3];
279 int VectorNormalize[3];
286 char *NormalArrays[3];
287 int NormalArrayComponents[3];
289 int NormalNormalize[3];
291 char *TensorArrays[9];
292 int TensorArrayComponents[9];
294 int TensorNormalize[9];
297 char *TCoordArrays[3];
298 int TCoordArrayComponents[3];
300 int TCoordNormalize[3];
305 vtkIdType componentRange[4][2],
char *arrays[4],
306 int arrayComponents[4],
int normalize[4],
int numComp);
308 vtkIdType componentRange[3][2],
char *arrays[3],
309 int arrayComponents[3],
int normalize[3]);
313 char *array,
int arrayComponent,
int normalize);
315 vtkIdType componentRange[3][2],
char *arrays[3],
316 int arrayComponents[3],
int normalize[3]);
318 vtkIdType componentRange[3][2],
char *arrays[3],
319 int arrayComponents[3],
int normalize[3],
int numComp);
321 vtkIdType componentRange[9][2],
char *arrays[9],
322 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)
Define the components of the field to be used for the cell texture coord components.
int GhostLevelArrayComponent
void SetVectorComponent(int comp, const char *arrayName, int arrayComp)
Define the component(s) of the field to be used for the vector components.
map field data to dataset attribute data
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetInputFieldToCellDataField()
Specify which field data to use to generate the output attribute data.
a simple class to control print indentation
void SetOutputAttributeDataToPointData()
Specify which attribute data to output: point or cell data attributes.
void SetScalarComponent(int comp, const char *arrayName, int arrayComp)
Define the component(s) of the field to be used for the scalar components.
abstract superclass for arrays of numeric data
vtkTypeBool DefaultNormalize
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
represent and manipulate attribute data in a dataset
void SetInputFieldToPointDataField()
Specify which field data to use to generate the output attribute data.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
void SetNormalComponent(int comp, const char *arrayName, int arrayComp)
Define the component(s) of the field to be used for the normal components.
#define VTK_DATA_OBJECT_FIELD
void SetTensorComponent(int comp, const char *arrayName, int arrayComp)
Define the components of the field to be used for the tensor components.
void SetOutputAttributeDataToCellData()
Specify which attribute data to output: point or cell data attributes.
int NumberOfTCoordComponents
Superclass for algorithms that produce output of the same type as input.
void SetInputFieldToDataObjectField()
Specify which field data to use to generate the output attribute data.
#define VTK_CELL_DATA_FIELD
static vtkDataSetAlgorithm * New()
represent and manipulate fields of data