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