23 #ifndef vtkImageGridSource_h 24 #define vtkImageGridSource_h 26 #include "vtkImagingSourcesModule.h" 41 vtkSetVector3Macro(GridSpacing,
int);
42 vtkGetVector3Macro(GridSpacing,
int);
49 vtkSetVector3Macro(GridOrigin,
int);
50 vtkGetVector3Macro(GridOrigin,
int);
57 vtkSetMacro(LineValue,
double);
58 vtkGetMacro(LineValue,
double);
65 vtkSetMacro(FillValue,
double);
66 vtkGetMacro(FillValue,
double);
74 vtkSetMacro(DataScalarType,
int);
82 vtkGetMacro(DataScalarType,
int);
84 return vtkImageScalarTypeNameMacro(this->DataScalarType); }
92 vtkSetVector6Macro(DataExtent,
int);
93 vtkGetVector6Macro(DataExtent,
int);
100 vtkSetVector3Macro(DataSpacing,
double);
101 vtkGetVector3Macro(DataSpacing,
double);
108 vtkSetVector3Macro(DataOrigin,
double);
109 vtkGetVector3Macro(DataOrigin,
double);
125 double DataSpacing[3];
126 double DataOrigin[3];
~vtkImageGridSource() override
#define VTK_UNSIGNED_SHORT
virtual void ExecuteDataWithInformation(vtkDataObject *output, vtkInformation *outInfo)
This is a convenience method that is implemented in many subclasses instead of RequestData.
void SetDataScalarTypeToShort()
Set/Get the data type of pixels in the imported data.
void SetDataScalarTypeToDouble()
Set/Get the data type of pixels in the imported data.
a simple class to control print indentation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
void SetDataScalarTypeToUnsignedShort()
Set/Get the data type of pixels in the imported data.
void SetDataScalarTypeToInt()
Set/Get the data type of pixels in the imported data.
#define VTK_UNSIGNED_CHAR
Generic algorithm superclass for image algs.
void SetDataScalarTypeToUnsignedChar()
Set/Get the data type of pixels in the imported data.
static vtkAlgorithm * New()
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.
general representation of visualization data
Create an image of a grid.