21 #ifndef vtkImageSliceMapper_h
22 #define vtkImageSliceMapper_h
25 #include "vtkRenderingCoreModule.h"
27 VTK_ABI_NAMESPACE_BEGIN
42 virtual void SetSliceNumber(
int slice);
43 virtual int GetSliceNumber();
52 virtual int GetSliceNumberMinValue();
53 virtual int GetSliceNumberMaxValue();
62 vtkSetClampMacro(Orientation,
int, 0, 2);
63 vtkGetMacro(Orientation,
int);
88 vtkSetVector6Macro(CroppingRegion,
int);
89 vtkGetVector6Macro(CroppingRegion,
int);
141 this->DisplayExtent[0] = extent[0];
142 this->DisplayExtent[1] = extent[1];
143 this->DisplayExtent[2] = extent[2];
144 this->DisplayExtent[3] = extent[3];
145 this->DisplayExtent[4] = extent[4];
146 this->DisplayExtent[5] = extent[5];
178 int GetOrientationFromCamera(
double const* propMatrix,
vtkCamera* camera);
183 int GetSliceFromCamera(
double const* propMatrix,
vtkCamera* camera);
188 static void GetDimensionIndices(
int orientation,
int& xdim,
int& ydim);
195 int CroppingRegion[6];
196 int DisplayExtent[6];
208 VTK_ABI_NAMESPACE_END
void ReleaseGraphicsResources(vtkWindow *) override=0
Release any graphics resources that are being consumed by this mapper.
void SetExactPixelMatch(int v)
Force linear interpolation.
represent and manipulate 4x4 transformation matrices
vtkTypeUInt32 vtkMTimeType
vtkMTimeType GetMTime() override
Override Modifiedtime as we have added Clipping planes.
void SetOrientationToK()
Set the orientation of the slices to display.
abstract specification for renderers
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetDisplayExtent(const int extent[6])
Set the display extent.
void SetPassColorData(int v)
Pass color data.
window superclass for vtkRenderWindow
void SetOrientationToX()
Set the orientation of the slices to display.
a simple class to control print indentation
abstract class for mapping images to the screen
map a slice of a vtkImageData to the screen
a virtual camera for 3D rendering
void GetBounds(double bounds[6]) override
The bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax, zmin,zmax).
virtual void Render(vtkRenderer *renderer, vtkImageSlice *prop)=0
This should only be called by the renderer.
virtual double * GetBounds()=0
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax, zmin,zmax).
void SetOrientationToZ()
Set the orientation of the slices to display.
void SetOrientationToI()
Set the orientation of the slices to display.
virtual void GetIndexBounds(double extent[6])=0
represents an image in a 3D scene
void SetOrientationToY()
Set the orientation of the slices to display.
vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo) override
Handle requests from the pipeline executive.
map a slice of a vtkImageData to the screen
static vtkAlgorithm * New()
virtual void GetSlicePlaneInDataCoords(vtkMatrix4x4 *propMatrix, double plane[4])
Get the plane as a homogeneous 4-vector that gives the plane equation coefficients.
represent and manipulate 3D points
void SetOrientationToJ()
Set the orientation of the slices to display.