129 #ifndef vtkImageMapper3D_h
130 #define vtkImageMapper3D_h
133 #include "vtkRenderingCoreModule.h"
134 #include "vtkThreads.h"
136 VTK_ABI_NAMESPACE_BEGIN
147 class vtkImageToImageMapper3DFriendship;
245 vtkSetClampMacro(NumberOfThreads,
int, 1, VTK_MAX_THREADS);
246 vtkGetMacro(NumberOfThreads,
int);
290 double originy,
double spacingx,
double spacingy);
309 int& xsize,
int& ysize,
int& bytesPerPixel,
bool& reuseTexture,
bool& reuseData);
325 const int extent[6],
int& xdim,
int& ydim,
int imageSize[2],
int textureSize[2]);
363 double DataSpacing[3];
364 double DataOrigin[3];
365 double DataDirection[9];
366 int DataWholeExtent[6];
384 friend class vtkImageToImageMapper3DFriendship;
387 VTK_ABI_NAMESPACE_END
abstract class specifies interface to map 3D data
general representation of visualization data
abstract class to specify dataset behavior
topologically and geometrically regular array of data
abstract class for mapping images to the screen
virtual void GetSlicePlaneInDataCoords(vtkMatrix4x4 *propMatrix, double plane[4])
Get the plane as a homogeneous 4-vector that gives the plane equation coefficients.
virtual void ComputeTextureSize(const int extent[6], int &xdim, int &ydim, int imageSize[2], int textureSize[2])
Given an extent that describes a slice (it must have unit thickness in one of the three directions),...
vtkDataObject * GetDataObjectInput()
The input data for this mapper.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static void CheckerboardRGBA(unsigned char *data, int xsize, int ysize, double originx, double originy, double spacingx, double spacingy)
Checkerboard the alpha component of an RGBA image.
vtkScalarsToColors * DefaultLookupTable
vtkMultiThreader * Threader
int FillOutputPortInformation(int port, vtkInformation *info) override
See algorithm for more info.
vtkTypeBool SliceFacesCamera
void GetBackgroundColor(vtkImageProperty *property, double color[4])
Get the background color, by using the first color in the supplied lookup table, or black if there is...
vtkMatrix4x4 * GetDataToWorldMatrix()
Get the data-to-world matrix for this mapper, according to the assembly path for its prop.
virtual void Render(vtkRenderer *renderer, vtkImageSlice *prop)=0
This should only be called by the renderer.
unsigned char * MakeTextureData(vtkImageProperty *property, vtkImageData *input, int extent[6], int &xsize, int &ysize, int &bytesPerPixel, bool &reuseTexture, bool &reuseData)
Perform window/level and color mapping operations to produce unsigned char data that can be used as a...
vtkDataSet * GetDataSetInput()
The input data for this mapper.
virtual void GetIndexBounds(double extent[6])=0
void ReleaseGraphicsResources(vtkWindow *) override=0
Release any graphics resources that are being consumed by this mapper.
vtkImageData * GetInput()
The input data for this mapper.
void MakeTextureGeometry(const int extent[6], double coords[12], double tcoords[8])
Compute the coordinates and texture coordinates for the image, given an extent that describes a singl...
~vtkImageMapper3D() override
void SetInputData(vtkImageData *input)
The input data for this mapper.
vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo) override
Handle requests from the pipeline executive.
int FillInputPortInformation(int port, vtkInformation *info) override
See algorithm for more info.
vtkRenderer * GetCurrentRenderer()
Get the renderer associated with this mapper, or zero if none.
vtkImageSlice * GetCurrentProp()
Get the vtkImage prop associated with this mapper, or zero if none.
vtkTypeBool SliceAtFocalPoint
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
A class for performing multithreaded execution.
perform various plane computations
represent and manipulate 3D points
represents an 3D object for placement in a rendered scene
abstract specification for renderers
Superclass for mapping scalar values to colors.
window superclass for vtkRenderWindow