Go to the documentation of this file.
71 #ifndef vtkDataObjectToDataSetFilter_h
72 #define vtkDataObjectToDataSetFilter_h
74 #include "vtkFiltersCoreModule.h"
104 vtkGetMacro(DataSetType,
int);
148 int min,
int max,
int normalize);
150 {this->SetPointComponent(comp, arrayName, arrayComp, -1, -1, this->DefaultNormalize);};
170 {this->SetVertsComponent(arrayName, arrayComp, -1, -1);};
177 {this->SetLinesComponent(arrayName, arrayComp, -1, -1);};
184 {this->SetPolysComponent(arrayName, arrayComp, -1, -1);};
191 {this->SetStripsComponent(arrayName, arrayComp, -1, -1);};
211 {this->SetCellTypeComponent(arrayName, arrayComp, -1, -1);};
219 {this->SetCellConnectivityComponent(arrayName, arrayComp, -1, -1);};
242 vtkSetVector3Macro(Dimensions,
int);
243 vtkGetVectorMacro(Dimensions,
int,3);
251 vtkSetVector3Macro(Origin,
double);
252 vtkGetVectorMacro(Origin,
double,3);
260 vtkSetVector3Macro(Spacing,
double);
261 vtkGetVectorMacro(Spacing,
double,3);
273 {this->SetDimensionsComponent(arrayName, arrayComp, -1, -1);};
276 {this->SetSpacingComponent(arrayName, arrayComp, -1, -1);};
279 {this->SetOriginComponent(arrayName, arrayComp, -1, -1);};
299 char *PointArrays[3];
300 int PointArrayComponents[3];
302 int PointNormalize[3];
int GetPointComponentMinRange(int comp)
map field data to concrete dataset
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
const char * GetPointComponentArrayName(int comp)
const char * GetCellTypeComponentArrayName()
void SetDimensionsComponent(const char *arrayName, int arrayComp)
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks for Information.
vtkPolyData * GetPolyDataOutput()
const char * GetCellConnectivityComponentArrayName()
void ConstructDimensions(vtkDataObject *input)
int GetVertsComponentMinRange()
~vtkDataObjectToDataSetFilter() override
void SetCellTypeComponent(const char *arrayName, int arrayComp)
vtkTypeBool DefaultNormalize
void SetCellConnectivityComponent(const char *arrayName, int arrayComp, int min, int max)
void SetCellConnectivityComponent(const char *arrayName, int arrayComp)
int GetCellConnectivityComponentMinRange()
vtkIdType ConstructPoints(vtkDataObject *input, vtkPointSet *ps)
int GetStripsComponentMinRange()
a dataset that is topologically regular with variable spacing in the three coordinate directions
int GetLinesComponentMinRange()
vtkRectilinearGrid * GetRectilinearGridOutput()
int GetLinesComponentArrayComponent()
void SetDataSetTypeToRectilinearGrid()
topologically regular array of data
int GetStripsComponentArrayComponent()
void SetLinesComponent(const char *arrayName, int arrayComp, int min, int max)
void SetArrayName(char *&name, char *newName)
int GetStripsComponentMaxRange()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int GetVertsComponentMaxRange()
abstract superclass for arrays of numeric data
const char * GetStripsComponentArrayName()
void SetOriginComponent(const char *arrayName, int arrayComp)
#define VTK_STRUCTURED_POINTS
vtkDataObjectToDataSetFilter()
void SetSpacingComponent(const char *arrayName, int arrayComp)
int GetCellConnectivityComponentMaxRange()
Superclass for algorithms that produce output of the same type as input.
void SetVertsComponent(const char *arrayName, int arrayComp, int min, int max)
Define cell connectivity when creating vtkPolyData.
int ConstructCells(vtkDataObject *input, vtkUnstructuredGrid *ug)
vtkStructuredGrid * GetStructuredGridOutput()
int SpacingArrayComponent
int GetPointComponentNormailzeFlag(int comp)
void SetDataSetTypeToStructuredGrid()
void SetSpacingComponent(const char *arrayName, int arrayComp, int min, int max)
vtkUnstructuredGrid * GetUnstructuredGridOutput()
void SetPointComponent(int comp, const char *arrayName, int arrayComp)
void SetDimensionsComponent(const char *arrayName, int arrayComp, int min, int max)
Alternative methods to specify the dimensions, spacing, and origin for those datasets requiring this ...
vtkStructuredPoints * GetStructuredPointsOutput()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int CellTypeArrayComponent
void SetVertsComponent(const char *arrayName, int arrayComp)
int GetLinesComponentMaxRange()
vtkCellArray * ConstructCellArray(vtkDataArray *da, int comp, vtkIdType compRange[2])
vtkDataSet * GetOutput(int idx)
void SetCellTypeComponent(const char *arrayName, int arrayComp, int min, int max)
Define cell types and cell connectivity when creating unstructured grid data.
int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest to when a request asks the algorithm to create empty output data...
int GetCellTypeComponentArrayComponent()
a simple class to control print indentation
void SetOriginComponent(const char *arrayName, int arrayComp, int min, int max)
object to represent cell connectivity
int GetPolysComponentArrayComponent()
void SetPointComponent(int comp, const char *arrayName, int arrayComp, int min, int max, int normalize)
Define the component of the field to be used for the x, y, and z values of the points.
static vtkDataObjectToDataSetFilter * New()
int ConstructCells(vtkDataObject *input, vtkPolyData *pd)
vtkDataObject * GetInput()
Get the input to the filter.
const char * GetLinesComponentArrayName()
void SetLinesComponent(const char *arrayName, int arrayComp)
int GetPolysComponentMinRange()
char * CellConnectivityArray
void SetDataSetTypeToUnstructuredGrid()
abstract class to specify dataset behavior
int GetCellTypeComponentMinRange()
int GetVertsComponentArrayComponent()
int GetCellTypeComponentMaxRange()
void SetDataSetType(int)
Control what type of data is generated for output.
int GetCellConnectivityComponentArrayComponent()
void SetDataSetTypeToPolyData()
int GetPointComponentArrayComponent(int comp)
vtkDataSet * GetOutput()
Get the output in different forms.
vtkIdType ConstructPoints(vtkDataObject *input, vtkRectilinearGrid *rg)
const char * GetPolysComponentArrayName()
abstract class for specifying dataset behavior
concrete dataset represents vertices, lines, polygons, and triangle strips
const char * GetVertsComponentArrayName()
void SetStripsComponent(const char *arrayName, int arrayComp)
int GetPolysComponentMaxRange()
void SetStripsComponent(const char *arrayName, int arrayComp, int min, int max)
dataset represents arbitrary combinations of all possible cell types
int CellConnectivityArrayComponent
int GetPointComponentMaxRange(int comp)
void ConstructSpacing(vtkDataObject *input)
void SetDataSetTypeToStructuredPoints()
void ConstructOrigin(vtkDataObject *input)
#define VTK_UNSTRUCTURED_GRID
general representation of visualization data
void SetPolysComponent(const char *arrayName, int arrayComp)
void SetPolysComponent(const char *arrayName, int arrayComp, int min, int max)
#define VTK_RECTILINEAR_GRID
int DimensionsArrayComponent
#define VTK_STRUCTURED_GRID
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...