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

vtkDepthSortPolyData Class Reference

sort poly data along camera view direction. More...

#include <vtkDepthSortPolyData.h>

Inheritance diagram for vtkDepthSortPolyData:

Inheritance graph
[legend]
Collaboration diagram for vtkDepthSortPolyData:

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)
virtual void SetDirection (int)
virtual int GetDirection ()
void SetDirectionToFrontToBack ()
void SetDirectionToBackToFront ()
void SetDirectionToSpecifiedVector ()
virtual void SetCamera (vtkCamera *)
virtual vtkCameraGetCamera ()
void SetProp3D (vtkProp3D *)
vtkProp3DGetProp3D ()
virtual void SetVector (double, double, double)
virtual void SetVector (double[3])
virtual double * GetVector ()
virtual void GetVector (double data[3])
virtual void SetOrigin (double, double, double)
virtual void SetOrigin (double[3])
virtual double * GetOrigin ()
virtual void GetOrigin (double data[3])
virtual void SetSortScalars (int)
virtual int GetSortScalars ()
virtual void SortScalarsOn ()
virtual void SortScalarsOff ()
unsigned long GetMTime ()

Static Public Methods

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

Protected Methods

 vtkDepthSortPolyData ()
 ~vtkDepthSortPolyData ()
 vtkDepthSortPolyData (const vtkDepthSortPolyData &)
void operator= (const vtkDepthSortPolyData &)
void Execute ()
void ComputeProjectionVector (double vector[3], double origin[3])

Protected Attributes

int Direction
vtkCameraCamera
vtkProp3DProp3D
vtkTransformTransform
double Vector [3]
double Origin [3]
int SortScalars

Detailed Description

sort poly data along camera view direction.

Date:
2000/12/10 20:08:23
Revision:
1.3
Thanks:
Scott Hill for implementing this class
vtkDepthSortPolyData rearranges the order of cells so that certain rendering operations (e.g., transparency or Painter's algorithms) generate correct results. To use this filter you must specify the direction vector along which to sort the cells. You can do this by specifying a camera and/or prop to define a view direction; or explicitly set a view direction.

Warning:
The sort operation will not work well for long, thin primitives, or cells that intersect, overlap, or interpenetrate each other.
Examples:
vtkDepthSortPolyData (examples)

Definition at line 75 of file vtkDepthSortPolyData.h.


Constructor & Destructor Documentation

vtkDepthSortPolyData::vtkDepthSortPolyData   [protected]
 

vtkDepthSortPolyData::~vtkDepthSortPolyData   [protected]
 

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

Definition at line 136 of file vtkDepthSortPolyData.h.


Member Function Documentation

vtkDepthSortPolyData* vtkDepthSortPolyData::New   [static]
 

Instantiate object.

Reimplemented from vtkPolyDataSource.

virtual const char* vtkDepthSortPolyData::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 vtkPolyDataToPolyDataFilter.

int vtkDepthSortPolyData::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 vtkPolyDataToPolyDataFilter.

virtual int vtkDepthSortPolyData::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 vtkPolyDataToPolyDataFilter.

vtkDepthSortPolyData* vtkDepthSortPolyData::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 vtkPolyDataToPolyDataFilter.

void vtkDepthSortPolyData::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 vtkSource.

virtual void vtkDepthSortPolyData::SetDirection int    [virtual]
 

Specify the sort method for the polygonal primitives.

virtual int vtkDepthSortPolyData::GetDirection   [virtual]
 

void vtkDepthSortPolyData::SetDirectionToFrontToBack   [inline]
 

Definition at line 87 of file vtkDepthSortPolyData.h.

void vtkDepthSortPolyData::SetDirectionToBackToFront   [inline]
 

Definition at line 89 of file vtkDepthSortPolyData.h.

void vtkDepthSortPolyData::SetDirectionToSpecifiedVector   [inline]
 

Definition at line 91 of file vtkDepthSortPolyData.h.

virtual void vtkDepthSortPolyData::SetCamera vtkCamera   [virtual]
 

Specify a camera that is used to define a view direction along which the cells are sorted. This ivar only has effect if the direction is set to front-to-back or back-to-front, and a camera is specified.

virtual vtkCamera* vtkDepthSortPolyData::GetCamera   [virtual]
 

void vtkDepthSortPolyData::SetProp3D vtkProp3D  
 

Specify a transformation matrix (via the vtkProp3D::GetMatrix() method) that is used to include the effects of transformation. This ivar only has effect if the direction is set to front-to-back or back-to-front, and a camera is specified. Specifying the vtkProp3D is optional.

vtkProp3D* vtkDepthSortPolyData::GetProp3D  
 

virtual void vtkDepthSortPolyData::SetVector double   ,
double   ,
double   
[virtual]
 

Set/Get the sort direction. This ivar only has effect if the sort direction is set to SetDirectionToSpecifiedVector(). The sort occurs in the direction of the vector.

virtual void vtkDepthSortPolyData::SetVector double   [3] [virtual]
 

virtual double* vtkDepthSortPolyData::GetVector   [virtual]
 

virtual void vtkDepthSortPolyData::GetVector double    data[3] [virtual]
 

virtual void vtkDepthSortPolyData::SetOrigin double   ,
double   ,
double   
[virtual]
 

Set/Get the sort origin. This ivar only has effect if the sort direction is set to SetDirectionToSpecifiedVector(). The sort occurs in the direction of the vector, with this point specifying the origin.

virtual void vtkDepthSortPolyData::SetOrigin double   [3] [virtual]
 

virtual double* vtkDepthSortPolyData::GetOrigin   [virtual]
 

virtual void vtkDepthSortPolyData::GetOrigin double    data[3] [virtual]
 

virtual void vtkDepthSortPolyData::SetSortScalars int    [virtual]
 

Set/Get a flag that controls the generation of scalar values corresponding to the sort order. If enabled, the output of this filter will include scalar values that range from 0 to (ncells-1), where 0 is closest to the sort direction.

virtual int vtkDepthSortPolyData::GetSortScalars   [virtual]
 

virtual void vtkDepthSortPolyData::SortScalarsOn   [virtual]
 

virtual void vtkDepthSortPolyData::SortScalarsOff   [virtual]
 

unsigned long vtkDepthSortPolyData::GetMTime   [virtual]
 

Return MTime also considering the dependent objects: the camera and/or the prop3D.

Reimplemented from vtkObject.

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

Definition at line 137 of file vtkDepthSortPolyData.h.

void vtkDepthSortPolyData::Execute   [protected, virtual]
 

Reimplemented from vtkSource.

void vtkDepthSortPolyData::ComputeProjectionVector double    vector[3],
double    origin[3]
[protected]
 


Member Data Documentation

int vtkDepthSortPolyData::Direction [protected]
 

Definition at line 142 of file vtkDepthSortPolyData.h.

vtkCamera* vtkDepthSortPolyData::Camera [protected]
 

Definition at line 143 of file vtkDepthSortPolyData.h.

vtkProp3D* vtkDepthSortPolyData::Prop3D [protected]
 

Definition at line 144 of file vtkDepthSortPolyData.h.

vtkTransform* vtkDepthSortPolyData::Transform [protected]
 

Definition at line 145 of file vtkDepthSortPolyData.h.

double vtkDepthSortPolyData::Vector[3] [protected]
 

Definition at line 146 of file vtkDepthSortPolyData.h.

double vtkDepthSortPolyData::Origin[3] [protected]
 

Definition at line 147 of file vtkDepthSortPolyData.h.

int vtkDepthSortPolyData::SortScalars [protected]
 

Definition at line 148 of file vtkDepthSortPolyData.h.


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