VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkDefaultPainter Class Reference

sets up a default chain of painters. More...

#include <vtkDefaultPainter.h>

Inheritance diagram for vtkDefaultPainter:
Inheritance graph
[legend]
Collaboration diagram for vtkDefaultPainter:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkPainter Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkDefaultPainterNewInstance () const
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 (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 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

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 46 of file vtkDefaultPainter.h.


Member Typedef Documentation

Reimplemented from vtkPainter.

Reimplemented in vtkSurfaceLICDefaultPainter.

Definition at line 50 of file vtkDefaultPainter.h.


Constructor & Destructor Documentation


Member Function Documentation

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

Reimplemented from vtkObject.

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.

Reimplemented from vtkPainter.

Reimplemented in vtkSurfaceLICDefaultPainter.

virtual vtkObjectBase* vtkDefaultPainter::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkPainter.

Reimplemented in vtkSurfaceLICDefaultPainter.

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.

Get/Set the painter that maps scalars to colors.

Get/Set the painter that maps scalars to colors.

Get/Set the painter that handles clipping.

Get/Set the painter that handles clipping.

Get/Set the painter that builds display lists.

Get/Set the painter that builds display lists.

Get/Set the painter used to handle composite datasets.

Get/Set the painter used to handle composite datasets.

Painter used to resolve coincident topology.

Painter used to resolve coincident topology.

Get/Set the painter that controls lighting.

Get/Set the painter that controls lighting.

Painter used to convert polydata to Wireframe/Points representation.

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 102 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.

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.


Member Data Documentation

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 143 of file vtkDefaultPainter.h.

Definition at line 145 of file vtkDefaultPainter.h.


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