52#ifndef vtkImageGridSource_h
53#define vtkImageGridSource_h
56#include "vtkImagingSourcesModule.h"
70 vtkSetVector3Macro(GridSpacing,
int);
71 vtkGetVector3Macro(GridSpacing,
int);
78 vtkSetVector3Macro(GridOrigin,
int);
79 vtkGetVector3Macro(GridOrigin,
int);
86 vtkSetMacro(LineValue,
double);
87 vtkGetMacro(LineValue,
double);
94 vtkSetMacro(FillValue,
double);
95 vtkGetMacro(FillValue,
double);
103 vtkSetMacro(DataScalarType,
int);
109 vtkGetMacro(DataScalarType,
int);
112 return vtkImageScalarTypeNameMacro(this->DataScalarType);
121 vtkSetVector6Macro(DataExtent,
int);
122 vtkGetVector6Macro(DataExtent,
int);
129 vtkSetVector3Macro(DataSpacing,
double);
130 vtkGetVector3Macro(DataSpacing,
double);
137 vtkSetVector3Macro(DataOrigin,
double);
138 vtkGetVector3Macro(DataOrigin,
double);
154 double DataSpacing[3];
155 double DataOrigin[3];
general representation of visualization data
Generic algorithm superclass for image algs.
Create an image of a grid.
static vtkImageGridSource * New()
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
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.
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
const char * GetDataScalarTypeAsString()
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
#define VTK_UNSIGNED_CHAR
#define VTK_UNSIGNED_SHORT