Documentation for vtkLODActor

vtkLODActor - an actor that supports multiple levels of detail

Super Class: vtkActor

Description:

vtkLODActor is an actor that stores multiple Levels of Detail and can automatically switch between them. It selects which level of detail to use based on how much time it has been allocated to render. Currently a very simple method of TotalTime/NumberOfActors is used. In the future this should be modified to dynamically allocate the rendering time between different actors based on their needs. There are three levels of detail by default. The top level is just the normal data. The lowest level of detail is a simple bounding box outline of the actor. The middle level of detail is a point cloud of a fixed number of points that have been randomly sampled from the Mappers input data. Point attributes are copied over to the point cloud. These two lower levels of detail are accomplished by creating instances of a vtkOutlineFilter, vtkGlyph3D, and vtkPointSource. Additional levels of detail can be add using the AddLODMapper method.

 

See Also:

vtkActor vtkRenderer

 

Methods:

void vtkLODActor ()
void vtkLODActor ()
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
static vtkLODActor *New ()
void Render (vtkRenderer *)
void Render (vtkRenderer * ,vtkMapper *)
void AddLODMapper (vtkMapper *)
int GetNumberOfCloudPoints ()
void SetNumberOfCloudPoints (int )
vtkMapperCollection *GetLODMappers ()
void Modified ()
void BuildPaths (vtkAssemblyPaths * ,vtkActorCollection *)
void CreateOwnLODs ()
void UpdateOwnLODs ()
void DeleteOwnLODs ()

 

Detailed Method Descriptions:

Creates a vtkLODActor with the following defaults: origin(0,0,0) position=(0,0,0) scale=(1,1,1) visibility=1 pickable=1 dragable=1 orientation=(0,0,0). NumberOfCloudPoints is set to 150.

static vtkLODActor *New ()

This causes the actor to be rendered. It, in turn, will render the actor's property and then mapper.

void Render (vtkRenderer *)
void Render (vtkRenderer * ,vtkMapper *)

Add another level of detail. They do not have to be in any order of complexity.

void AddLODMapper (vtkMapper *)

Set/Get the number of random points for the point cloud.

int GetNumberOfCloudPoints ()
void SetNumberOfCloudPoints (int )

All the mappers for differnt LODs are stored here. The order is not important.

vtkMapperCollection *GetLODMappers ()

When this objects gets modified, this method also modifies the object.

void Modified ()

Used to construct assembly paths and perform part traversal.

void BuildPaths (vtkAssemblyPaths * ,vtkActorCollection *)