Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

vtkProjectedPolyDataRayBounder Class Reference

Bound a ray according to polydata. More...

#include <vtkProjectedPolyDataRayBounder.h>

Inheritance diagram for vtkProjectedPolyDataRayBounder:

Inheritance graph
[legend]
Collaboration diagram for vtkProjectedPolyDataRayBounder:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
float * GetRayBounds (vtkRenderer *ren)
virtual void SetPolyData (vtkPolyData *)
virtual vtkPolyDataGetPolyData ()
void SetMatrixSource (vtkActor *actor)
void SetMatrixSource (vtkVolume *volume)
unsigned long GetMTime ()

Static Public Methods

int IsTypeOf (const char *type)
vtkProjectedPolyDataRayBounder * SafeDownCast (vtkObject *o)
vtkProjectedPolyDataRayBounder * New ()

Protected Methods

 vtkProjectedPolyDataRayBounder ()
 ~vtkProjectedPolyDataRayBounder ()
 vtkProjectedPolyDataRayBounder (const vtkProjectedPolyDataRayBounder &)
void operator= (const vtkProjectedPolyDataRayBounder &)
virtual void Build (vtkPolyData *pdata)
virtual float * Draw (vtkRenderer *ren, vtkMatrix4x4 *matrix)

Protected Attributes

vtkPolyDataPolyData
vtkActorActorMatrixSource
vtkVolumeVolumeMatrixSource
vtkTimeStamp BuildTime

Detailed Description

Bound a ray according to polydata.

Date:
2000/12/10 20:08:48
Revision:
1.14
Thanks:
Thanks to Lisa Sobierajski Avila who developed this class.
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
Examples:
vtkProjectedPolyDataRayBounder (examples)

Definition at line 72 of file vtkProjectedPolyDataRayBounder.h.


Constructor & Destructor Documentation

vtkProjectedPolyDataRayBounder::vtkProjectedPolyDataRayBounder   [protected]
 

vtkProjectedPolyDataRayBounder::~vtkProjectedPolyDataRayBounder   [protected]
 

vtkProjectedPolyDataRayBounder::vtkProjectedPolyDataRayBounder const vtkProjectedPolyDataRayBounder &    [inline, protected]
 

Definition at line 104 of file vtkProjectedPolyDataRayBounder.h.


Member Function Documentation

virtual const char* vtkProjectedPolyDataRayBounder::GetClassName   [virtual]
 

Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkRayBounder.

Reimplemented in vtkMesaProjectedPolyDataRayBounder, and vtkOpenGLProjectedPolyDataRayBounder.

int vtkProjectedPolyDataRayBounder::IsTypeOf const char *    type [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 vtkRayBounder.

Reimplemented in vtkMesaProjectedPolyDataRayBounder, and vtkOpenGLProjectedPolyDataRayBounder.

virtual int vtkProjectedPolyDataRayBounder::IsA const char *    type [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 vtkRayBounder.

Reimplemented in vtkMesaProjectedPolyDataRayBounder, and vtkOpenGLProjectedPolyDataRayBounder.

vtkProjectedPolyDataRayBounder* vtkProjectedPolyDataRayBounder::SafeDownCast vtkObject   o [static]
 

Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkRayBounder.

Reimplemented in vtkMesaProjectedPolyDataRayBounder, and vtkOpenGLProjectedPolyDataRayBounder.

void vtkProjectedPolyDataRayBounder::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 vtkObject.

Reimplemented in vtkMesaProjectedPolyDataRayBounder, and vtkOpenGLProjectedPolyDataRayBounder.

vtkProjectedPolyDataRayBounder* vtkProjectedPolyDataRayBounder::New   [static]
 

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

Reimplemented from vtkObject.

Reimplemented in vtkMesaProjectedPolyDataRayBounder, and vtkOpenGLProjectedPolyDataRayBounder.

float* vtkProjectedPolyDataRayBounder::GetRayBounds vtkRenderer   ren [virtual]
 

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.

Reimplemented from vtkRayBounder.

virtual void vtkProjectedPolyDataRayBounder::SetPolyData vtkPolyData   [virtual]
 

Set/Get the PolyData that will be projected for clipping

virtual vtkPolyData* vtkProjectedPolyDataRayBounder::GetPolyData   [virtual]
 

void vtkProjectedPolyDataRayBounder::SetMatrixSource vtkActor   actor
 

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 vtkProjectedPolyDataRayBounder::SetMatrixSource vtkVolume   volume
 

unsigned long vtkProjectedPolyDataRayBounder::GetMTime   [virtual]
 

Return the MTime also considering the ivars' MTimes.

Reimplemented from vtkObject.

void vtkProjectedPolyDataRayBounder::operator= const vtkProjectedPolyDataRayBounder &    [inline, protected]
 

Definition at line 105 of file vtkProjectedPolyDataRayBounder.h.

virtual void vtkProjectedPolyDataRayBounder::Build vtkPolyData   pdata [protected, virtual]
 

Create a display list from the poly data.

Reimplemented in vtkMesaProjectedPolyDataRayBounder, and vtkOpenGLProjectedPolyDataRayBounder.

virtual float* vtkProjectedPolyDataRayBounder::Draw vtkRenderer   ren,
vtkMatrix4x4   matrix
[protected, virtual]
 

Render the display list and create the near and far buffers

Reimplemented in vtkMesaProjectedPolyDataRayBounder, and vtkOpenGLProjectedPolyDataRayBounder.


Member Data Documentation

vtkPolyData* vtkProjectedPolyDataRayBounder::PolyData [protected]
 

Definition at line 107 of file vtkProjectedPolyDataRayBounder.h.

vtkActor* vtkProjectedPolyDataRayBounder::ActorMatrixSource [protected]
 

Definition at line 108 of file vtkProjectedPolyDataRayBounder.h.

vtkVolume* vtkProjectedPolyDataRayBounder::VolumeMatrixSource [protected]
 

Definition at line 109 of file vtkProjectedPolyDataRayBounder.h.

vtkTimeStamp vtkProjectedPolyDataRayBounder::BuildTime [protected]
 

Definition at line 111 of file vtkProjectedPolyDataRayBounder.h.


The documentation for this class was generated from the following file:
Generated on Wed Nov 21 12:58:00 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001