vtkChooserPainter Class Reference

#include <vtkChooserPainter.h>

Inheritance diagram for vtkChooserPainter:

Inheritance graph
[legend]
Collaboration diagram for vtkChooserPainter:

Collaboration graph
[legend]

List of all members.


Detailed Description

Painter that selects painters to render primitives.

This painter does not actually do any painting. Instead, it picks other painters based on the current state of itself and its poly data. It then delegates the work to these other painters.

Definition at line 32 of file vtkChooserPainter.h.


Public Types

typedef vtkPolyDataPainter Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
void SetVertPainter (vtkPolyDataPainter *)
void SetLinePainter (vtkPolyDataPainter *)
void SetPolyPainter (vtkPolyDataPainter *)
void SetStripPainter (vtkPolyDataPainter *)
virtual void SetUseLinesPainterForWireframes (int)
virtual int GetUseLinesPainterForWireframes ()
virtual void UseLinesPainterForWireframesOn ()
virtual void UseLinesPainterForWireframesOff ()

Static Public Member Functions

static vtkChooserPainterNew ()
static int IsTypeOf (const char *type)
static vtkChooserPainterSafeDownCast (vtkObject *o)

Protected Member Functions

virtual void PrepareForRendering (vtkRenderer *, vtkActor *)
virtual void ChoosePainters (vtkRenderer *renderer, vtkActor *)
virtual void UpdateChoosenPainters ()
virtual vtkPolyDataPainterCreatePainter (const char *paintertype)
virtual void ReportReferences (vtkGarbageCollector *collector)
 vtkChooserPainter ()
 ~vtkChooserPainter ()
virtual void SelectPainters (vtkRenderer *renderer, vtkActor *actor, const char *&vertpaintertype, const char *&linepaintertype, const char *&polypaintertype, const char *&strippaintertype)
virtual void RenderInternal (vtkRenderer *renderer, vtkActor *actor, unsigned long typeflags, bool forceCompileOnly)

Protected Attributes

vtkPolyDataPainterVertPainter
vtkPolyDataPainterLinePainter
vtkPolyDataPainterPolyPainter
vtkPolyDataPainterStripPainter
vtkRendererLastRenderer
vtkTimeStamp PaintersChoiceTime
int UseLinesPainterForWireframes

Member Typedef Documentation

Reimplemented from vtkPolyDataPainter.

Definition at line 36 of file vtkChooserPainter.h.


Constructor & Destructor Documentation

vtkChooserPainter::vtkChooserPainter (  )  [protected]

Release any graphics resources that are being consumed by this mapper. The parameter window could be used to determine which graphic resources to release. Merely propagates the call to the painter. void ReleaseGraphicsResources(vtkWindow *);

vtkChooserPainter::~vtkChooserPainter (  )  [protected]

Release any graphics resources that are being consumed by this mapper. The parameter window could be used to determine which graphic resources to release. Merely propagates the call to the painter. void ReleaseGraphicsResources(vtkWindow *);


Member Function Documentation

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

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

Reimplemented from vtkObject.

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

Reimplemented from vtkPolyDataPainter.

static int vtkChooserPainter::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 vtkPolyDataPainter.

virtual int vtkChooserPainter::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 vtkPolyDataPainter.

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

Reimplemented from vtkPolyDataPainter.

void vtkChooserPainter::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 vtkPolyDataPainter.

void vtkChooserPainter::SetVertPainter ( vtkPolyDataPainter  ) 

void vtkChooserPainter::SetLinePainter ( vtkPolyDataPainter  ) 

void vtkChooserPainter::SetPolyPainter ( vtkPolyDataPainter  ) 

void vtkChooserPainter::SetStripPainter ( vtkPolyDataPainter  ) 

virtual void vtkChooserPainter::SetUseLinesPainterForWireframes ( int   )  [virtual]

When set, the lines painter is used for drawing wireframes (off by default, except on Mac, where it's on by default).

virtual int vtkChooserPainter::GetUseLinesPainterForWireframes (  )  [virtual]

When set, the lines painter is used for drawing wireframes (off by default, except on Mac, where it's on by default).

virtual void vtkChooserPainter::UseLinesPainterForWireframesOn (  )  [virtual]

When set, the lines painter is used for drawing wireframes (off by default, except on Mac, where it's on by default).

virtual void vtkChooserPainter::UseLinesPainterForWireframesOff (  )  [virtual]

When set, the lines painter is used for drawing wireframes (off by default, except on Mac, where it's on by default).

virtual void vtkChooserPainter::PrepareForRendering ( vtkRenderer ,
vtkActor  
) [protected, virtual]

Some subclasses may need to do some preprocessing before the actual rendering can be done eg. build effecient representation for the data etc. This should be done here. This method get called after the ProcessInformation() but before RenderInternal(). Overridden to setup the the painters if needed.

Reimplemented from vtkPainter.

virtual void vtkChooserPainter::ChoosePainters ( vtkRenderer renderer,
vtkActor  
) [protected, virtual]

Called to pick which painters to used based on the current state of this painter and the poly data.

virtual void vtkChooserPainter::SelectPainters ( vtkRenderer renderer,
vtkActor actor,
const char *&  vertpaintertype,
const char *&  linepaintertype,
const char *&  polypaintertype,
const char *&  strippaintertype 
) [protected, virtual]

Called from ChoosePainters. Returns a string for the type of each painter. The painters will be built with CreatePainter.

virtual void vtkChooserPainter::UpdateChoosenPainters (  )  [protected, virtual]

Passes on the information and the data to the choosen painters.

virtual vtkPolyDataPainter* vtkChooserPainter::CreatePainter ( const char *  paintertype  )  [protected, virtual]

Creates a painter of the given type.

virtual void vtkChooserPainter::RenderInternal ( vtkRenderer renderer,
vtkActor actor,
unsigned long  typeflags,
bool  forceCompileOnly 
) [protected, virtual]

Performs the actual rendering. Subclasses may override this method. default implementation merely call a Render on the DelegatePainter, if any. When RenderInternal() is called, it is assured that the DelegatePainter is in sync with this painter i.e. UpdatePainter() has been called.

Reimplemented from vtkPainter.

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

Take part in garbage collection.

Reimplemented from vtkPainter.


Member Data Documentation

Definition at line 62 of file vtkChooserPainter.h.

Definition at line 63 of file vtkChooserPainter.h.

Definition at line 64 of file vtkChooserPainter.h.

Definition at line 65 of file vtkChooserPainter.h.

Definition at line 109 of file vtkChooserPainter.h.

Definition at line 110 of file vtkChooserPainter.h.

Definition at line 112 of file vtkChooserPainter.h.


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

Generated on Wed Aug 24 11:30:59 2011 for VTK by  doxygen 1.5.6