31 #ifndef vtkVoxelModeller_h
32 #define vtkVoxelModeller_h
35 #include "vtkImagingHybridModule.h"
64 vtkGetVectorMacro(SampleDimensions,
int, 3);
72 vtkSetClampMacro(MaximumDistance,
double, 0.0, 1.0);
73 vtkGetMacro(MaximumDistance,
double);
82 void SetModelBounds(
double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax);
83 vtkGetVectorMacro(ModelBounds,
double, 6);
93 vtkSetMacro(ScalarType,
int);
105 vtkGetMacro(ScalarType,
int);
116 vtkSetMacro(ForegroundValue,
double);
117 vtkGetMacro(ForegroundValue,
double);
118 vtkSetMacro(BackgroundValue,
double);
119 vtkGetMacro(BackgroundValue,
double);
135 int SampleDimensions[3];
137 double ModelBounds[6];
Generic algorithm superclass for image algs.
a simple class to control print indentation
convert an arbitrary dataset to a voxel representation
void SetModelBounds(const double bounds[6])
Specify the position in space to perform the voxelization.
~vtkVoxelModeller() override
void SetScalarTypeToBit()
void SetSampleDimensions(int i, int j, int k)
Set the i-j-k dimensions on which to sample the distance function.
void SetScalarTypeToUnsignedShort()
static vtkVoxelModeller * New()
Construct an instance of vtkVoxelModeller with its sample dimensions set to (50,50,...
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called in response to a REQUEST_DATA request from the executive.
void SetScalarTypeToInt()
void SetScalarTypeToDouble()
void SetSampleDimensions(int dim[3])
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetScalarTypeToShort()
void SetScalarTypeToChar()
void SetScalarTypeToUnsignedInt()
void SetScalarTypeToUnsignedChar()
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
double ComputeModelBounds(double origin[3], double ar[3])
Compute the ModelBounds based on the input geometry.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void SetModelBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
void SetScalarTypeToFloat()
void SetScalarTypeToUnsignedLong()
void SetScalarTypeToLong()
#define VTK_UNSIGNED_CHAR
#define VTK_UNSIGNED_SHORT
#define VTK_UNSIGNED_LONG