VTK
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
vtkImageMapper Class Reference

2D image display More...

#include <vtkImageMapper.h>

Inheritance diagram for vtkImageMapper:
Inheritance graph
[legend]
Collaboration diagram for vtkImageMapper:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkMapper2D Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkImageMapperNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
unsigned long int GetMTime ()
void RenderStart (vtkViewport *viewport, vtkActor2D *actor)
virtual void RenderData (vtkViewport *, vtkImageData *, vtkActor2D *)=0
virtual void SetColorWindow (double)
virtual double GetColorWindow ()
virtual void SetColorLevel (double)
virtual double GetColorLevel ()
virtual void SetZSlice (int)
virtual int GetZSlice ()
int GetWholeZMin ()
int GetWholeZMax ()
double GetColorShift ()
double GetColorScale ()
virtual void SetInputData (vtkImageData *input)
vtkImageDataGetInput ()
virtual void SetRenderToRectangle (int)
virtual int GetRenderToRectangle ()
virtual void RenderToRectangleOn ()
virtual void RenderToRectangleOff ()
virtual void SetUseCustomExtents (int)
virtual int GetUseCustomExtents ()
virtual void UseCustomExtentsOn ()
virtual void UseCustomExtentsOff ()
virtual void SetCustomDisplayExtents (int data[])
virtual intGetCustomDisplayExtents ()
virtual void GetCustomDisplayExtents (int data[4])

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkImageMapperSafeDownCast (vtkObjectBase *o)
static vtkImageMapperNew ()

Public Attributes

int DisplayExtent [6]

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkImageMapper ()
 ~vtkImageMapper ()
virtual int FillInputPortInformation (int, vtkInformation *)

Protected Attributes

double ColorWindow
double ColorLevel
int PositionAdjustment [2]
int ZSlice
int UseCustomExtents
int CustomDisplayExtents [4]
int RenderToRectangle

Detailed Description

2D image display

vtkImageMapper provides 2D image display support for vtk. It is a Mapper2D subclass that can be associated with an Actor2D and placed within a RenderWindow or ImageWindow. The vtkImageMapper is a 2D mapper, which means that it displays images in display coordinates. In display coordinates, one image pixel is always one screen pixel.

See also:
vtkMapper2D vtkActor2D
Tests:
vtkImageMapper (Tests)

Definition at line 43 of file vtkImageMapper.h.


Member Typedef Documentation

Reimplemented from vtkMapper2D.

Reimplemented in vtkOpenGLImageMapper.

Definition at line 46 of file vtkImageMapper.h.


Constructor & Destructor Documentation


Member Function Documentation

static int vtkImageMapper::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkMapper2D.

Reimplemented in vtkOpenGLImageMapper.

virtual int vtkImageMapper::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkMapper2D.

Reimplemented in vtkOpenGLImageMapper.

Reimplemented from vtkMapper2D.

Reimplemented in vtkOpenGLImageMapper.

virtual vtkObjectBase* vtkImageMapper::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkMapper2D.

Reimplemented in vtkOpenGLImageMapper.

Reimplemented from vtkMapper2D.

Reimplemented in vtkOpenGLImageMapper.

static vtkImageMapper* vtkImageMapper::New ( ) [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkAlgorithm.

Reimplemented in vtkOpenGLImageMapper.

void vtkImageMapper::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkMapper2D.

Reimplemented in vtkOpenGLImageMapper.

unsigned long int vtkImageMapper::GetMTime ( ) [virtual]

Override Modifiedtime as we have added a lookuptable

Reimplemented from vtkAbstractMapper.

virtual void vtkImageMapper::SetColorWindow ( double  ) [virtual]

Set/Get the window value for window/level

virtual double vtkImageMapper::GetColorWindow ( ) [virtual]

Set/Get the window value for window/level

virtual void vtkImageMapper::SetColorLevel ( double  ) [virtual]

Set/Get the level value for window/level

virtual double vtkImageMapper::GetColorLevel ( ) [virtual]

Set/Get the level value for window/level

virtual void vtkImageMapper::SetZSlice ( int  ) [virtual]

Set/Get the current slice number. The axis Z in ZSlice does not necessarily have any relation to the z axis of the data on disk. It is simply the axis orthogonal to the x,y, display plane. GetWholeZMax and Min are convenience methods for obtaining the number of slices that can be displayed. Again the number of slices is in reference to the display z axis, which is not necessarily the z axis on disk. (due to reformatting etc)

virtual int vtkImageMapper::GetZSlice ( ) [virtual]

Set/Get the current slice number. The axis Z in ZSlice does not necessarily have any relation to the z axis of the data on disk. It is simply the axis orthogonal to the x,y, display plane. GetWholeZMax and Min are convenience methods for obtaining the number of slices that can be displayed. Again the number of slices is in reference to the display z axis, which is not necessarily the z axis on disk. (due to reformatting etc)

Set/Get the current slice number. The axis Z in ZSlice does not necessarily have any relation to the z axis of the data on disk. It is simply the axis orthogonal to the x,y, display plane. GetWholeZMax and Min are convenience methods for obtaining the number of slices that can be displayed. Again the number of slices is in reference to the display z axis, which is not necessarily the z axis on disk. (due to reformatting etc)

Set/Get the current slice number. The axis Z in ZSlice does not necessarily have any relation to the z axis of the data on disk. It is simply the axis orthogonal to the x,y, display plane. GetWholeZMax and Min are convenience methods for obtaining the number of slices that can be displayed. Again the number of slices is in reference to the display z axis, which is not necessarily the z axis on disk. (due to reformatting etc)

void vtkImageMapper::RenderStart ( vtkViewport viewport,
vtkActor2D actor 
)

Draw the image to the screen.

virtual void vtkImageMapper::RenderData ( vtkViewport ,
vtkImageData ,
vtkActor2D  
) [pure virtual]

Function called by Render to actually draw the image to to the screen

Implemented in vtkOpenGLImageMapper.

Methods used internally for performing the Window/Level mapping.

Methods used internally for performing the Window/Level mapping.

virtual void vtkImageMapper::SetInputData ( vtkImageData input) [virtual]

Set the Input of a filter.

Set the Input of a filter.

virtual void vtkImageMapper::SetRenderToRectangle ( int  ) [virtual]

If RenderToRectangle is set (by default not), then the imagemapper will render the image into the rectangle supplied by the Actor2D's PositionCoordinate and Position2Coordinate

If RenderToRectangle is set (by default not), then the imagemapper will render the image into the rectangle supplied by the Actor2D's PositionCoordinate and Position2Coordinate

virtual void vtkImageMapper::RenderToRectangleOn ( ) [virtual]

If RenderToRectangle is set (by default not), then the imagemapper will render the image into the rectangle supplied by the Actor2D's PositionCoordinate and Position2Coordinate

virtual void vtkImageMapper::RenderToRectangleOff ( ) [virtual]

If RenderToRectangle is set (by default not), then the imagemapper will render the image into the rectangle supplied by the Actor2D's PositionCoordinate and Position2Coordinate

virtual void vtkImageMapper::SetUseCustomExtents ( int  ) [virtual]

Usually, the entire image is displayed, if UseCustomExtents is set (by default not), then the region supplied in the CustomDisplayExtents is used in preference. Note that the Custom extents are x,y only and the zslice is still applied

Usually, the entire image is displayed, if UseCustomExtents is set (by default not), then the region supplied in the CustomDisplayExtents is used in preference. Note that the Custom extents are x,y only and the zslice is still applied

virtual void vtkImageMapper::UseCustomExtentsOn ( ) [virtual]

Usually, the entire image is displayed, if UseCustomExtents is set (by default not), then the region supplied in the CustomDisplayExtents is used in preference. Note that the Custom extents are x,y only and the zslice is still applied

virtual void vtkImageMapper::UseCustomExtentsOff ( ) [virtual]

Usually, the entire image is displayed, if UseCustomExtents is set (by default not), then the region supplied in the CustomDisplayExtents is used in preference. Note that the Custom extents are x,y only and the zslice is still applied

virtual void vtkImageMapper::SetCustomDisplayExtents ( int  data[]) [virtual]

The image extents which should be displayed with UseCustomExtents Note that the Custom extents are x,y only and the zslice is still applied

The image extents which should be displayed with UseCustomExtents Note that the Custom extents are x,y only and the zslice is still applied

virtual void vtkImageMapper::GetCustomDisplayExtents ( int  data[4]) [virtual]

The image extents which should be displayed with UseCustomExtents Note that the Custom extents are x,y only and the zslice is still applied

virtual int vtkImageMapper::FillInputPortInformation ( int  port,
vtkInformation info 
) [protected, virtual]

Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.

Reimplemented from vtkAlgorithm.


Member Data Documentation

Definition at line 92 of file vtkImageMapper.h.

Definition at line 131 of file vtkImageMapper.h.

Definition at line 132 of file vtkImageMapper.h.

Definition at line 134 of file vtkImageMapper.h.

Definition at line 135 of file vtkImageMapper.h.

Definition at line 136 of file vtkImageMapper.h.

Definition at line 137 of file vtkImageMapper.h.

Definition at line 138 of file vtkImageMapper.h.


The documentation for this class was generated from the following file: