Go to the documentation of this file.
32 #ifndef vtkImageMapper3D_h
33 #define vtkImageMapper3D_h
35 #include "vtkRenderingCoreModule.h"
48 class vtkImageToImageMapper3DFriendship;
87 vtkGetMacro(Border,
int);
110 vtkGetMacro(SliceAtFocalPoint,
int);
121 vtkGetMacro(SliceFacesCamera,
int);
147 vtkSetClampMacro(NumberOfThreads,
int, 1, VTK_MAX_THREADS);
148 vtkGetMacro(NumberOfThreads,
int);
162 vtkGetMacro(Streaming,
int);
190 unsigned char *
data,
int xsize,
int ysize,
191 double originx,
double originy,
double spacingx,
double spacingy);
200 int &xsize,
int &ysize,
int &bytesPerPixel,
bool &reuseTexture,
208 const int extent[6],
double coords[12],
double tcoords[8]);
218 const int extent[6],
int &xdim,
int &ydim,
219 int imageSize[2],
int textureSize[2]);
257 double DataSpacing[3];
258 double DataOrigin[3];
259 int DataWholeExtent[6];
277 friend class vtkImageToImageMapper3DFriendship;
represent and manipulate 3D points
perform various plane computations
vtkMultiThreader * Threader
vtkImageSlice * GetCurrentProp()
Get the vtkImage prop associated with this mapper, or zero if none.
represents an 3D object for placement in a rendered scene
virtual void Render(vtkRenderer *renderer, vtkImageSlice *prop)=0
This should only be called by the renderer.
vtkDataObject * GetDataObjectInput()
window superclass for vtkRenderWindow
virtual void GetSlicePlaneInDataCoords(vtkMatrix4x4 *propMatrix, double plane[4])
Get the plane as a homogeneous 4-vector that gives the plane equation coefficients.
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Handle requests from the pipeline executive.
A class for performing multithreaded execution.
represents an image in a 3D scene
topologically and geometrically regular array of data
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
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...
vtkRenderer * GetCurrentRenderer()
Get the renderer associated with this mapper, or zero if none.
Superclass for mapping scalar values to colors.
vtkScalarsToColors * DefaultLookupTable
virtual void ReleaseGraphicsResources(vtkWindow *)=0
Release any graphics resources that are being consumed by this mapper.
abstract class to specify dataset behavior
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
map scalar values into colors via a lookup table
abstract class for mapping images to the screen
abstract class specifies interface to map 3D data
vtkImageData * GetInput()
vtkDataSet * GetDataSetInput()
abstract specification for renderers
void SetInputData(vtkImageData *input)
The input data for this mapper.
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...
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),...
general representation of visualization data
virtual int FillInputPortInformation(int port, vtkInformation *info)
See algorithm for more info.
vtkMatrix4x4 * GetDataToWorldMatrix()
Get the data-to-world matrix for this mapper, according to the assembly path for its prop.
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...
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.