#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.
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 *);
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.
vtkPolyDataPainter* vtkChooserPainter::VertPainter [protected] |
Definition at line 62 of file vtkChooserPainter.h.
vtkPolyDataPainter* vtkChooserPainter::LinePainter [protected] |
Definition at line 63 of file vtkChooserPainter.h.
vtkPolyDataPainter* vtkChooserPainter::PolyPainter [protected] |
Definition at line 64 of file vtkChooserPainter.h.
vtkPolyDataPainter* vtkChooserPainter::StripPainter [protected] |
Definition at line 65 of file vtkChooserPainter.h.
vtkRenderer* vtkChooserPainter::LastRenderer [protected] |
Definition at line 109 of file vtkChooserPainter.h.
vtkTimeStamp vtkChooserPainter::PaintersChoiceTime [protected] |
Definition at line 110 of file vtkChooserPainter.h.
int vtkChooserPainter::UseLinesPainterForWireframes [protected] |
Definition at line 112 of file vtkChooserPainter.h.