Documentation for vtkProjectedPolyDataRayBounder

vtkProjectedPolyDataRayBounder - Bound a ray according to polydata

Super Class: vtkRayBounder

Description:

The vtkProjectedPolyDataRayBounder can be used to clip viewing rays against the polygons in a vtkPolyData. This is done by projecting the vtkPolyData twice - first capturing a near Z buffer, then capturing a far Z buffer. The values from the Z buffers are decoded according to the current viewing transformation, and the decoded pairs of values (near,far) are returned as distance from the view point for perspective viewing, or distance from the view plane for parallel viewing.

 

See Also:

vtkOpenGLProjectedPolyDataRayBounder

 

Methods:

void vtkProjectedPolyDataRayBounder ()
void vtkProjectedPolyDataRayBounder ()
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
static vtkProjectedPolyDataRayBounder *New ()
float *GetRayBounds (vtkRenderer *)
void SetPolyData (vtkPolyData *)
vtkPolyData *GetPolyData ()
void SetMatrixSource (vtkActor *)
void SetMatrixSource (vtkVolume *)
unsigned long GetMTime ()
void Build (vtkPolyData *)
float *Draw (vtkRenderer * ,vtkMatrix4x4 *)

 

Detailed Method Descriptions:

New method for the class which will return the correct type of ProjectPolyDataRayBounder

static vtkProjectedPolyDataRayBounder *New ()

Get the ray bounds given a renderer. The ray bounds are a two dimensional array of (near,far) values, with the width and height of the array being equal to the width and height of the current viewport in pixel.

float *GetRayBounds (vtkRenderer *)

Set/Get the PolyData that will be projected for clipping

void SetPolyData (vtkPolyData *)
vtkPolyData *GetPolyData ()

Set a matrix source as either an actor or a volume. If a matrix source is set, then the PolyData will first be transformed according to the matrix of the given actor or volume.

void SetMatrixSource (vtkActor *)
void SetMatrixSource (vtkVolume *)

Return the MTime also considering the ivars' MTimes.

unsigned long GetMTime ()

Create a display list from the poly data.

void Build (vtkPolyData *)

Render the display list and create the near and far buffers

float *Draw (vtkRenderer * ,vtkMatrix4x4 *)