vtkDefaultPainter Class Reference

#include <vtkDefaultPainter.h>

Inheritance diagram for vtkDefaultPainter:

Inheritance graph
[legend]
Collaboration diagram for vtkDefaultPainter:

Collaboration graph
[legend]

List of all members.


Detailed Description

sets up a default chain of painters.

This painter does not do any actual rendering. Sets up a default pipeline of painters to mimick the behaiour of old vtkPolyDataMapper. The chain is as follows: input--> vtkScalarsToColorsPainter --> vtkClipPlanesPainter --> vtkDisplayListPainter --> vtkCompositePainter --> vtkCoincidentTopologyResolutionPainter --> vtkLightingPainter --> vtkRepresentationPainter --> <Delegate of vtkDefaultPainter>. Typically, the delegate of the default painter be one that is capable of r rendering graphics primitives or a vtkChooserPainter which can select appropriate painters to do the rendering.

Definition at line 45 of file vtkDefaultPainter.h.


Public Types

typedef vtkPainter Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
virtual void PrintSelf (ostream &os, vtkIndent indent)
virtual void ReleaseGraphicsResources (vtkWindow *)
void UpdateBounds (double bounds[6])
void SetScalarsToColorsPainter (vtkScalarsToColorsPainter *)
virtual vtkScalarsToColorsPainterGetScalarsToColorsPainter ()
void SetClipPlanesPainter (vtkClipPlanesPainter *)
virtual vtkClipPlanesPainterGetClipPlanesPainter ()
void SetDisplayListPainter (vtkDisplayListPainter *)
virtual vtkDisplayListPainterGetDisplayListPainter ()
void SetCompositePainter (vtkCompositePainter *)
virtual vtkCompositePainterGetCompositePainter ()
void SetCoincidentTopologyResolutionPainter (vtkCoincidentTopologyResolutionPainter *)
virtual
vtkCoincidentTopologyResolutionPainter
GetCoincidentTopologyResolutionPainter ()
void SetLightingPainter (vtkLightingPainter *)
virtual vtkLightingPainterGetLightingPainter ()
void SetRepresentationPainter (vtkRepresentationPainter *)
virtual vtkRepresentationPainterGetRepresentationPainter ()
virtual void SetDelegatePainter (vtkPainter *)
virtual vtkPainterGetDelegatePainter ()
virtual void Render (vtkRenderer *renderer, vtkActor *actor, unsigned long typeflags, bool forceCompileOnly)

Static Public Member Functions

static vtkDefaultPainterNew ()
static int IsTypeOf (const char *type)
static vtkDefaultPainterSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkDefaultPainter ()
 ~vtkDefaultPainter ()
virtual void BuildPainterChain ()
virtual void ReportReferences (vtkGarbageCollector *collector)
void SetDefaultPainterDelegate (vtkPainter *)

Protected Attributes

vtkScalarsToColorsPainterScalarsToColorsPainter
vtkClipPlanesPainterClipPlanesPainter
vtkDisplayListPainterDisplayListPainter
vtkCompositePainterCompositePainter
vtkCoincidentTopologyResolutionPainterCoincidentTopologyResolutionPainter
vtkLightingPainterLightingPainter
vtkRepresentationPainterRepresentationPainter
vtkTimeStamp ChainBuildTime
vtkPainterDefaultPainterDelegate

Member Typedef Documentation

Reimplemented from vtkPainter.

Reimplemented in vtkSurfaceLICDefaultPainter.

Definition at line 49 of file vtkDefaultPainter.h.


Constructor & Destructor Documentation

vtkDefaultPainter::vtkDefaultPainter (  )  [protected]

vtkDefaultPainter::~vtkDefaultPainter (  )  [protected]


Member Function Documentation

static vtkDefaultPainter* vtkDefaultPainter::New (  )  [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkObject.

Reimplemented in vtkSurfaceLICDefaultPainter.

virtual const char* vtkDefaultPainter::GetClassName (  )  [virtual]

Reimplemented from vtkPainter.

Reimplemented in vtkSurfaceLICDefaultPainter.

static int vtkDefaultPainter::IsTypeOf ( const char *  name  )  [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 vtkPainter.

Reimplemented in vtkSurfaceLICDefaultPainter.

virtual int vtkDefaultPainter::IsA ( const char *  name  )  [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 vtkPainter.

Reimplemented in vtkSurfaceLICDefaultPainter.

static vtkDefaultPainter* vtkDefaultPainter::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkPainter.

Reimplemented in vtkSurfaceLICDefaultPainter.

virtual void vtkDefaultPainter::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 vtkPainter.

Reimplemented in vtkSurfaceLICDefaultPainter.

void vtkDefaultPainter::SetScalarsToColorsPainter ( vtkScalarsToColorsPainter  ) 

Get/Set the painter that maps scalars to colors.

virtual vtkScalarsToColorsPainter* vtkDefaultPainter::GetScalarsToColorsPainter (  )  [virtual]

Get/Set the painter that maps scalars to colors.

void vtkDefaultPainter::SetClipPlanesPainter ( vtkClipPlanesPainter  ) 

Get/Set the painter that handles clipping.

virtual vtkClipPlanesPainter* vtkDefaultPainter::GetClipPlanesPainter (  )  [virtual]

Get/Set the painter that handles clipping.

void vtkDefaultPainter::SetDisplayListPainter ( vtkDisplayListPainter  ) 

Get/Set the painter that builds display lists.

virtual vtkDisplayListPainter* vtkDefaultPainter::GetDisplayListPainter (  )  [virtual]

Get/Set the painter that builds display lists.

void vtkDefaultPainter::SetCompositePainter ( vtkCompositePainter  ) 

Get/Set the painter used to handle composite datasets.

virtual vtkCompositePainter* vtkDefaultPainter::GetCompositePainter (  )  [virtual]

Get/Set the painter used to handle composite datasets.

void vtkDefaultPainter::SetCoincidentTopologyResolutionPainter ( vtkCoincidentTopologyResolutionPainter  ) 

Painter used to resolve coincident topology.

virtual vtkCoincidentTopologyResolutionPainter* vtkDefaultPainter::GetCoincidentTopologyResolutionPainter (  )  [virtual]

Painter used to resolve coincident topology.

void vtkDefaultPainter::SetLightingPainter ( vtkLightingPainter  ) 

Get/Set the painter that controls lighting.

virtual vtkLightingPainter* vtkDefaultPainter::GetLightingPainter (  )  [virtual]

Get/Set the painter that controls lighting.

void vtkDefaultPainter::SetRepresentationPainter ( vtkRepresentationPainter  ) 

Painter used to convert polydata to Wireframe/Points representation.

virtual vtkRepresentationPainter* vtkDefaultPainter::GetRepresentationPainter (  )  [virtual]

Painter used to convert polydata to Wireframe/Points representation.

virtual void vtkDefaultPainter::SetDelegatePainter ( vtkPainter  )  [virtual]

Set/Get the painter to which this painter should propagare its draw calls. These methods are overridden so that the delegate is set to the end of the Painter Chain.

Reimplemented from vtkPainter.

virtual vtkPainter* vtkDefaultPainter::GetDelegatePainter (  )  [inline, virtual]

Set/Get the painter to which this painter should propagare its draw calls. These methods are overridden so that the delegate is set to the end of the Painter Chain.

Reimplemented from vtkPainter.

Definition at line 101 of file vtkDefaultPainter.h.

virtual void vtkDefaultPainter::Render ( vtkRenderer renderer,
vtkActor actor,
unsigned long  typeflags,
bool  forceCompileOnly 
) [virtual]

Overridden to setup the chain of painter depending on the actor representation. The chain is rebuilt if this->MTime has changed since last BuildPainterChain(); Building of the chain does not depend on input polydata, hence it does not check if the input has changed at all.

Reimplemented from vtkPainter.

virtual void vtkDefaultPainter::ReleaseGraphicsResources ( vtkWindow  )  [virtual]

Release any graphics resources that are being consumed by this painter. The parameter window could be used to determine which graphic resources to release. The call is propagated to the delegate painter, if any.

Reimplemented from vtkPainter.

void vtkDefaultPainter::UpdateBounds ( double  bounds[6]  )  [virtual]

Expand or shrink the estimated bounds based on the geometric transformations applied in the painter. The bounds are left unchanged if the painter does not change the geometry.

Reimplemented from vtkPainter.

virtual void vtkDefaultPainter::BuildPainterChain (  )  [protected, virtual]

Setups the the painter chain.

Reimplemented in vtkSurfaceLICDefaultPainter.

virtual void vtkDefaultPainter::ReportReferences ( vtkGarbageCollector collector  )  [protected, virtual]

Take part in garbage collection.

Reimplemented from vtkPainter.

Reimplemented in vtkSurfaceLICDefaultPainter.

void vtkDefaultPainter::SetDefaultPainterDelegate ( vtkPainter  )  [protected]


Member Data Documentation

Definition at line 135 of file vtkDefaultPainter.h.

Definition at line 136 of file vtkDefaultPainter.h.

Definition at line 137 of file vtkDefaultPainter.h.

Definition at line 138 of file vtkDefaultPainter.h.

Definition at line 139 of file vtkDefaultPainter.h.

Definition at line 140 of file vtkDefaultPainter.h.

Definition at line 141 of file vtkDefaultPainter.h.

Definition at line 142 of file vtkDefaultPainter.h.

Definition at line 144 of file vtkDefaultPainter.h.


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

Generated on Wed Aug 24 11:33:35 2011 for VTK by  doxygen 1.5.6