ParaView
|
Mapper for vtkImageData that renders the image using a texture applied to a quad. More...
#include <vtkPVImageSliceMapper.h>
Inherits vtkMapper.
Public Types | |
enum | { XY_PLANE = VTK_XY_PLANE, YZ_PLANE = VTK_YZ_PLANE, XZ_PLANE = VTK_XZ_PLANE } |
typedef vtkMapper | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Render (vtkRenderer *ren, vtkActor *act) |
This calls RenderPiece (in a for loop is streaming is necessary). More... | |
virtual void | ReleaseGraphicsResources (vtkWindow *) |
virtual void | SetSliceMode (int) |
virtual int | GetSliceMode () |
void | SetSliceModeToYZPlane () |
void | SetSliceModeToXZPlane () |
void | SetSliceModeToXYPlane () |
virtual void | Update (int port) |
Update that sets the update piece first. More... | |
virtual void | Update () |
virtual int | Update (int port, vtkInformationVector *requests) |
virtual int | Update (vtkInformation *requests) |
virtual void | ShallowCopy (vtkAbstractMapper *m) |
Make a shallow copy of this mapper. More... | |
void | SetPainter (vtkPainter *) |
Get/Set the painter that does the actual rendering. More... | |
virtual vtkPainter * | GetPainter () |
Get/Set the painter that does the actual rendering. More... | |
void | SetInputData (vtkImageData *in) |
Specify the input data to map. More... | |
virtual vtkImageData * | GetInput () |
Specify the input data to map. More... | |
virtual void | SetSlice (int) |
Set/Get the current X/Y or Z slice number. More... | |
virtual int | GetSlice () |
Set/Get the current X/Y or Z slice number. More... | |
virtual void | SetUseXYPlane (int) |
When set, the image slice is always rendered in the XY plane (Z==0) irrespective of the image bounds. More... | |
virtual void | UseXYPlaneOn () |
When set, the image slice is always rendered in the XY plane (Z==0) irrespective of the image bounds. More... | |
virtual void | UseXYPlaneOff () |
When set, the image slice is always rendered in the XY plane (Z==0) irrespective of the image bounds. More... | |
virtual int | GetUseXYPlane () |
When set, the image slice is always rendered in the XY plane (Z==0) irrespective of the image bounds. More... | |
virtual void | SetPiece (int) |
If you want only a part of the data, specify by setting the piece. More... | |
virtual int | GetPiece () |
If you want only a part of the data, specify by setting the piece. More... | |
virtual void | SetNumberOfPieces (int) |
If you want only a part of the data, specify by setting the piece. More... | |
virtual int | GetNumberOfPieces () |
If you want only a part of the data, specify by setting the piece. More... | |
virtual void | SetNumberOfSubPieces (int) |
If you want only a part of the data, specify by setting the piece. More... | |
virtual int | GetNumberOfSubPieces () |
If you want only a part of the data, specify by setting the piece. More... | |
virtual void | SetGhostLevel (int) |
Set the number of ghost cells to return. More... | |
virtual int | GetGhostLevel () |
Set the number of ghost cells to return. More... | |
virtual double * | GetBounds () |
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax, zmin,zmax). More... | |
virtual void | GetBounds (double bounds[6]) |
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax, zmin,zmax). More... | |
Static Public Member Functions | |
static vtkPVImageSliceMapper * | New () |
static int | IsTypeOf (const char *type) |
static vtkPVImageSliceMapper * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkPVImageSliceMapper () | |
~vtkPVImageSliceMapper () | |
virtual int | FillInputPortInformation (int, vtkInformation *) |
virtual void | RenderPiece (vtkRenderer *ren, vtkActor *act) |
Perform the actual rendering. More... | |
void | UpdatePainterInformation () |
Called when the PainterInformation becomes obsolete. More... | |
Protected Attributes | |
vtkInformation * | PainterInformation |
vtkTimeStamp | PainterInformationUpdateTime |
vtkObserver * | Observer |
vtkPainter * | Painter |
int | Piece |
int | NumberOfSubPieces |
int | NumberOfPieces |
int | GhostLevel |
int | SliceMode |
int | Slice |
int | UseXYPlane |
Mapper for vtkImageData that renders the image using a texture applied to a quad.
vtkPVImageSliceMapper is a mapper for vtkImageData that renders the image by loading the image as a texture and then applying it to a quad. For 3D images, this mapper only shows a single Z slice which can be choosen using SetZSlice. By default, the image data scalars are rendering, however, this mapper provides API to select another point or cell data array. Internally, this mapper uses painters similar to those employed by vtkPainterPolyDataMapper.
Definition at line 46 of file vtkPVImageSliceMapper.h.
typedef vtkMapper vtkPVImageSliceMapper::Superclass |
Definition at line 50 of file vtkPVImageSliceMapper.h.
anonymous enum |
Enumerator | |
---|---|
XY_PLANE | |
YZ_PLANE | |
XZ_PLANE |
Definition at line 84 of file vtkPVImageSliceMapper.h.
|
protected |
|
protected |
|
static |
|
virtual |
|
static |
|
virtual |
|
static |
void vtkPVImageSliceMapper::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
virtual |
This calls RenderPiece (in a for loop is streaming is necessary).
|
virtual |
void vtkPVImageSliceMapper::SetPainter | ( | vtkPainter * | ) |
Get/Set the painter that does the actual rendering.
|
virtual |
Get/Set the painter that does the actual rendering.
void vtkPVImageSliceMapper::SetInputData | ( | vtkImageData * | in | ) |
Specify the input data to map.
|
virtual |
Specify the input data to map.
|
virtual |
Set/Get the current X/Y or Z slice number.
|
virtual |
Set/Get the current X/Y or Z slice number.
|
virtual |
|
virtual |
|
inline |
Definition at line 93 of file vtkPVImageSliceMapper.h.
|
inline |
Definition at line 94 of file vtkPVImageSliceMapper.h.
|
inline |
Definition at line 95 of file vtkPVImageSliceMapper.h.
|
virtual |
When set, the image slice is always rendered in the XY plane (Z==0) irrespective of the image bounds.
Default is Off.
|
virtual |
When set, the image slice is always rendered in the XY plane (Z==0) irrespective of the image bounds.
Default is Off.
|
virtual |
When set, the image slice is always rendered in the XY plane (Z==0) irrespective of the image bounds.
Default is Off.
|
virtual |
When set, the image slice is always rendered in the XY plane (Z==0) irrespective of the image bounds.
Default is Off.
|
virtual |
Update that sets the update piece first.
|
inlinevirtual |
Definition at line 111 of file vtkPVImageSliceMapper.h.
|
inlinevirtual |
Definition at line 112 of file vtkPVImageSliceMapper.h.
|
inlinevirtual |
Definition at line 116 of file vtkPVImageSliceMapper.h.
|
virtual |
If you want only a part of the data, specify by setting the piece.
|
virtual |
If you want only a part of the data, specify by setting the piece.
|
virtual |
If you want only a part of the data, specify by setting the piece.
|
virtual |
If you want only a part of the data, specify by setting the piece.
|
virtual |
If you want only a part of the data, specify by setting the piece.
|
virtual |
If you want only a part of the data, specify by setting the piece.
|
virtual |
Set the number of ghost cells to return.
|
virtual |
Set the number of ghost cells to return.
|
virtual |
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax, zmin,zmax).
|
inlinevirtual |
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax, zmin,zmax).
Definition at line 144 of file vtkPVImageSliceMapper.h.
|
virtual |
Make a shallow copy of this mapper.
|
protectedvirtual |
|
protectedvirtual |
Perform the actual rendering.
|
protected |
Called when the PainterInformation becomes obsolete.
It is called before Render request is propogated to the painter.
|
protected |
Definition at line 177 of file vtkPVImageSliceMapper.h.
|
protected |
Definition at line 178 of file vtkPVImageSliceMapper.h.
|
protected |
Definition at line 180 of file vtkPVImageSliceMapper.h.
|
protected |
Definition at line 184 of file vtkPVImageSliceMapper.h.
|
protected |
Definition at line 186 of file vtkPVImageSliceMapper.h.
|
protected |
Definition at line 187 of file vtkPVImageSliceMapper.h.
|
protected |
Definition at line 188 of file vtkPVImageSliceMapper.h.
|
protected |
Definition at line 189 of file vtkPVImageSliceMapper.h.
|
protected |
Definition at line 191 of file vtkPVImageSliceMapper.h.
|
protected |
Definition at line 192 of file vtkPVImageSliceMapper.h.
|
protected |
Definition at line 193 of file vtkPVImageSliceMapper.h.