58 #ifndef vtkImageGridSource_h
59 #define vtkImageGridSource_h
62 #include "vtkImagingSourcesModule.h"
64 VTK_ABI_NAMESPACE_BEGIN
77 vtkSetVector3Macro(GridSpacing,
int);
78 vtkGetVector3Macro(GridSpacing,
int);
85 vtkSetVector3Macro(GridOrigin,
int);
86 vtkGetVector3Macro(GridOrigin,
int);
93 vtkSetMacro(LineValue,
double);
94 vtkGetMacro(LineValue,
double);
101 vtkSetMacro(FillValue,
double);
102 vtkGetMacro(FillValue,
double);
110 vtkSetMacro(DataScalarType,
int);
116 vtkGetMacro(DataScalarType,
int);
119 return vtkImageScalarTypeNameMacro(this->DataScalarType);
128 vtkSetVector6Macro(DataExtent,
int);
129 vtkGetVector6Macro(DataExtent,
int);
136 vtkSetVector3Macro(DataSpacing,
double);
137 vtkGetVector3Macro(DataSpacing,
double);
144 vtkSetVector3Macro(DataOrigin,
double);
145 vtkGetVector3Macro(DataOrigin,
double);
161 double DataSpacing[3];
162 double DataOrigin[3];
172 VTK_ABI_NAMESPACE_END
general representation of visualization data
Generic algorithm superclass for image algs.
Create an image of a grid.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
static vtkImageGridSource * New()
void SetDataScalarTypeToUnsignedChar()
Set/Get the data type of pixels in the imported data.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
const char * GetDataScalarTypeAsString()
Set/Get the data type of pixels in the imported data.
void SetDataScalarTypeToUnsignedShort()
Set/Get the data type of pixels in the imported data.
void SetDataScalarTypeToShort()
Set/Get the data type of pixels in the imported data.
void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
void SetDataScalarTypeToInt()
Set/Get the data type of pixels in the imported data.
~vtkImageGridSource() override=default
void SetDataScalarTypeToDouble()
Set/Get the data type of pixels in the imported data.
a simple class to control print indentation
#define VTK_UNSIGNED_CHAR
#define VTK_UNSIGNED_SHORT