Go to the documentation of this file.
35 #ifndef vtkImageResliceMapper_h
36 #define vtkImageResliceMapper_h
38 #include "vtkRenderingImageModule.h"
83 vtkSetMacro(SlabThickness,
double);
84 vtkGetMacro(SlabThickness,
double);
98 vtkGetMacro(SlabType,
int);
116 vtkSetClampMacro(SlabSampleFactor,
int, 1, 2);
117 vtkGetMacro(SlabSampleFactor,
int);
127 vtkSetClampMacro(ImageSampleFactor,
int, 1, 16);
128 vtkGetMacro(ImageSampleFactor,
int);
void UpdateColorInformation(vtkImageProperty *property)
Update anything related to the image coloring.
static vtkImageResliceMapper * New()
perform various plane computations
vtkTypeBool SeparateWindowLevelOperation
int Update(vtkInformation *requests) override
Convenience method to update an algorithm after passing requests to its first output port.
int InternalResampleToScreenPixels
virtual double * GetBounds()=0
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax,...
vtkMatrix4x4 * SliceToWorldMatrix
void GetBounds(double bounds[6]) override
Get the bounds for this mapper as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
#define VTK_IMAGE_SLAB_MAX
void Render(vtkRenderer *renderer, vtkImageSlice *prop) override
This should only be called by the renderer.
void UpdateResliceInformation(vtkRenderer *ren)
Set all of the reslicing parameters.
virtual vtkAbstractImageInterpolator * GetInterpolator()
record modification and/or execution time
virtual const char * GetSlabTypeAsString()
void ReportReferences(vtkGarbageCollector *) override
Garbage collection for reference loops.
vtkTypeBool ResampleToScreenPixels
int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo) override
Handle requests from the pipeline executive.
map a slice of a vtkImageData to the screen
window superclass for vtkRenderWindow
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void UpdateResliceInterpolation(vtkImageProperty *property)
Set the interpolation.
void UpdateSliceToWorldMatrix(vtkCamera *camera)
Update the slice-to-world matrix from the camera.
#define VTK_IMAGE_SLAB_MEAN
represents an image in a 3D scene
void Update(int port) override
Override Update to handle some tricky details.
vtkMTimeType GetMTime() override
Get the mtime for the mapper.
#define VTK_IMAGE_SLAB_MIN
virtual void SetInterpolator(vtkAbstractImageInterpolator *sampler)
Set a custom interpolator.
void UpdateResliceMatrix(vtkRenderer *ren, vtkImageSlice *prop)
Update the reslice matrix, which is the slice-to-data matrix.
vtkMatrix4x4 * WorldToDataMatrix
topologically and geometrically regular array of data
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
void UpdateWorldToDataMatrix(vtkImageSlice *prop)
Check if the vtkProp3D matrix has changed, and if so, set the WorldToDataMatrix to its inverse.
map a slice of a vtkImageData to the screen
a virtual camera for 3D rendering
vtkTypeBool JumpToNearestSlice
~vtkImageResliceMapper() override
void CheckerboardImage(vtkImageData *input, vtkCamera *camera, vtkImageProperty *property)
Do a checkerboard pattern to the alpha of an RGBA image.
double * GetBounds() override
The bounding box (array of six doubles) of the data expressed as (xmin,xmax, ymin,...
virtual void SetSlicePlane(vtkPlane *plane)
Set the slice that will be used to cut through the image.
vtkImageSliceMapper * SliceMapper
Detect and break reference loops.
vtkTypeBool AutoAdjustImageQuality
map scalar values into colors via a lookup table
abstract class for mapping images to the screen
vtkMatrix4x4 * ResliceMatrix
#define VTK_IMAGE_SLAB_SUM
Reslice and produce color scalars.
abstract specification for renderers
create a window for renderers to draw into
interpolate data values from images
void UpdatePolygonCoords(vtkRenderer *ren)
Make a polygon by cutting the data bounds with a plane.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this mapper.
int Update(int port, vtkInformationVector *requests) override
This method enables the passing of data requests to the algorithm to be used during execution (in add...
vtkImageResliceToColors * ImageReslice
vtkTypeUInt32 vtkMTimeType