ParaView
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkPVLODActor Class Reference

an actor that supports multiple levels of detail More...

#include <vtkPVLODActor.h>

Inherits vtkActor.

Public Types

typedef vtkActor Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void Render (vtkRenderer *, vtkMapper *)
 This causes the actor to be rendered. More...
 
int RenderOpaqueGeometry (vtkViewport *viewport)
 This method is used internally by the rendering process. More...
 
void ReleaseGraphicsResources (vtkWindow *)
 Release any graphics resources that are being consumed by this actor. More...
 
vtkMapper * GetMapper ()
 This is a bit of a hack. More...
 
void Modified ()
 When this objects gets modified, this method also modifies the object. More...
 
void ShallowCopy (vtkProp *prop)
 Shallow copy of an LOD actor. More...
 
double * GetBounds ()
 Get the bounds of the current mapper. More...
 
void SetEnableLOD (int val)
 When set, LODMapper, if present it used, otherwise the regular mapper is used. More...
 
virtual int GetEnableLOD ()
 
virtual void SetLODMapper (vtkMapper *)
 This sets the low res input. More...
 
virtual vtkMapper * GetLODMapper ()
 This sets the low res input. More...
 
virtual void SetEnableScaling (int v)
 For OSPRay controls sizing of implicit spheres (points) and cylinders (lines) More...
 
virtual void SetScalingArrayName (const char *)
 For OSPRay controls sizing of implicit spheres (points) and cylinders (lines) More...
 
virtual void SetScalingFunction (vtkPiecewiseFunction *pwf)
 For OSPRay controls sizing of implicit spheres (points) and cylinders (lines) More...
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkPVLODActorSafeDownCast (vtkObject *o)
 
static vtkPVLODActorNew ()
 

Protected Member Functions

 vtkPVLODActor ()
 
 ~vtkPVLODActor ()
 
vtkMapper * SelectMapper ()
 

Protected Attributes

vtkActor * Device
 
vtkMapper * LODMapper
 
int EnableLOD
 

Detailed Description

an actor that supports multiple levels of detail

vtkPVLODActor is a very simple version of vtkLODActor. Both vtkLODActor and vtkLODProp3D can get confused, and substitute LOD mappers when they are not needed. This just has two mappers: full res and LOD, and this actor knows which is which.

See also
vtkActor vtkRenderer vtkLODProp3D vtkLODActor

Definition at line 37 of file vtkPVLODActor.h.

Member Typedef Documentation

◆ Superclass

typedef vtkActor vtkPVLODActor::Superclass

Definition at line 40 of file vtkPVLODActor.h.

Constructor & Destructor Documentation

◆ vtkPVLODActor()

vtkPVLODActor::vtkPVLODActor ( )
protected

◆ ~vtkPVLODActor()

vtkPVLODActor::~vtkPVLODActor ( )
protected

Member Function Documentation

◆ GetClassName()

virtual const char* vtkPVLODActor::GetClassName ( )
virtual

◆ IsTypeOf()

static int vtkPVLODActor::IsTypeOf ( const char *  type)
static

◆ IsA()

virtual int vtkPVLODActor::IsA ( const char *  type)
virtual

◆ SafeDownCast()

static vtkPVLODActor* vtkPVLODActor::SafeDownCast ( vtkObject *  o)
static

◆ PrintSelf()

void vtkPVLODActor::PrintSelf ( ostream &  os,
vtkIndent  indent 
)

◆ New()

static vtkPVLODActor* vtkPVLODActor::New ( )
static

◆ Render()

virtual void vtkPVLODActor::Render ( vtkRenderer *  ,
vtkMapper *   
)
virtual

This causes the actor to be rendered.

It, in turn, will render the actor's property and then mapper.

◆ RenderOpaqueGeometry()

int vtkPVLODActor::RenderOpaqueGeometry ( vtkViewport *  viewport)

This method is used internally by the rendering process.

We overide the superclass method to properly set the estimated render time.

◆ ReleaseGraphicsResources()

void vtkPVLODActor::ReleaseGraphicsResources ( vtkWindow *  )

Release any graphics resources that are being consumed by this actor.

The parameter window could be used to determine which graphic resources to release.

◆ SetLODMapper()

virtual void vtkPVLODActor::SetLODMapper ( vtkMapper *  )
virtual

This sets the low res input.

◆ GetLODMapper()

virtual vtkMapper* vtkPVLODActor::GetLODMapper ( )
virtual

This sets the low res input.

◆ GetMapper()

vtkMapper* vtkPVLODActor::GetMapper ( )
inline

This is a bit of a hack.

This returns the last mapper used to render. It does this so that compositing can descide if anything was actually renderered.

Definition at line 76 of file vtkPVLODActor.h.

◆ Modified()

void vtkPVLODActor::Modified ( )

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

◆ ShallowCopy()

void vtkPVLODActor::ShallowCopy ( vtkProp *  prop)

Shallow copy of an LOD actor.

Overloads the virtual vtkProp method.

◆ GetBounds()

double* vtkPVLODActor::GetBounds ( )

Get the bounds of the current mapper.

◆ SetEnableLOD()

void vtkPVLODActor::SetEnableLOD ( int  val)
inline

When set, LODMapper, if present it used, otherwise the regular mapper is used.

We deliberately don't change the MTime of the actor when toggling EnableLOD state to avoid rebuilding of rendering data structures.

Definition at line 98 of file vtkPVLODActor.h.

◆ GetEnableLOD()

virtual int vtkPVLODActor::GetEnableLOD ( )
virtual

◆ SetEnableScaling()

virtual void vtkPVLODActor::SetEnableScaling ( int  v)
virtual

For OSPRay controls sizing of implicit spheres (points) and cylinders (lines)

◆ SetScalingArrayName()

virtual void vtkPVLODActor::SetScalingArrayName ( const char *  )
virtual

For OSPRay controls sizing of implicit spheres (points) and cylinders (lines)

◆ SetScalingFunction()

virtual void vtkPVLODActor::SetScalingFunction ( vtkPiecewiseFunction *  pwf)
virtual

For OSPRay controls sizing of implicit spheres (points) and cylinders (lines)

◆ SelectMapper()

vtkMapper* vtkPVLODActor::SelectMapper ( )
protected

Member Data Documentation

◆ Device

vtkActor* vtkPVLODActor::Device
protected

Definition at line 114 of file vtkPVLODActor.h.

◆ LODMapper

vtkMapper* vtkPVLODActor::LODMapper
protected

Definition at line 115 of file vtkPVLODActor.h.

◆ EnableLOD

int vtkPVLODActor::EnableLOD
protected

Definition at line 119 of file vtkPVLODActor.h.


The documentation for this class was generated from the following file: