#include <vtkChooserPainter.h>
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) |
Static Public Member Functions | |
static vtkChooserPainter * | New () |
static int | IsTypeOf (const char *type) |
static vtkChooserPainter * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkChooserPainter () | |
~vtkChooserPainter () | |
void | SetVertPainter (vtkPolyDataPainter *) |
void | SetLinePainter (vtkPolyDataPainter *) |
void | SetPolyPainter (vtkPolyDataPainter *) |
void | SetStripPainter (vtkPolyDataPainter *) |
virtual void | PrepareForRendering (vtkRenderer *, vtkActor *) |
virtual void | ChoosePainters (vtkRenderer *renderer, vtkActor *) |
virtual void | UpdateChoosenPainters () |
virtual vtkPolyDataPainter * | CreatePainter (const char *paintertype) |
virtual void | ReportReferences (vtkGarbageCollector *collector) |
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) |
Protected Attributes | |
vtkPolyDataPainter * | VertPainter |
vtkPolyDataPainter * | LinePainter |
vtkPolyDataPainter * | PolyPainter |
vtkPolyDataPainter * | StripPainter |
vtkRenderer * | LastRenderer |
vtkTimeStamp | PaintersChoiceTime |
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] |
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 vtkTypeRevisionMacro 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 vtkTypeRevisionMacro 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 * | ) | [protected] |
void vtkChooserPainter::SetLinePainter | ( | vtkPolyDataPainter * | ) | [protected] |
void vtkChooserPainter::SetPolyPainter | ( | vtkPolyDataPainter * | ) | [protected] |
void vtkChooserPainter::SetStripPainter | ( | vtkPolyDataPainter * | ) | [protected] |
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 | |||
) | [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.
vtkPolyDataPainter* vtkChooserPainter::VertPainter [protected] |
Definition at line 47 of file vtkChooserPainter.h.
vtkPolyDataPainter* vtkChooserPainter::LinePainter [protected] |
Definition at line 48 of file vtkChooserPainter.h.
vtkPolyDataPainter* vtkChooserPainter::PolyPainter [protected] |
Definition at line 49 of file vtkChooserPainter.h.
vtkPolyDataPainter* vtkChooserPainter::StripPainter [protected] |
Definition at line 50 of file vtkChooserPainter.h.
vtkRenderer* vtkChooserPainter::LastRenderer [protected] |
Definition at line 97 of file vtkChooserPainter.h.
vtkTimeStamp vtkChooserPainter::PaintersChoiceTime [protected] |
Definition at line 98 of file vtkChooserPainter.h.