VTK
|
sets up a default chain of painters. More...
#include <vtkDefaultPainter.h>
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.
Reimplemented from vtkPainter.
Reimplemented in vtkSurfaceLICDefaultPainter.
Definition at line 50 of file vtkDefaultPainter.h.
vtkDefaultPainter::vtkDefaultPainter | ( | ) | [protected] |
vtkDefaultPainter::~vtkDefaultPainter | ( | ) | [protected] |
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.
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 | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkPainter.
Reimplemented in vtkSurfaceLICDefaultPainter.
virtual vtkObjectBase* vtkDefaultPainter::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkPainter.
Reimplemented in vtkSurfaceLICDefaultPainter.
vtkDefaultPainter* vtkDefaultPainter::NewInstance | ( | ) | const |
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.
virtual vtkScalarsToColorsPainter* vtkDefaultPainter::GetScalarsToColorsPainter | ( | ) | [virtual] |
Get/Set the painter that maps scalars to colors.
Get/Set the painter that handles clipping.
virtual vtkClipPlanesPainter* vtkDefaultPainter::GetClipPlanesPainter | ( | ) | [virtual] |
Get/Set the painter that handles clipping.
Get/Set the painter that builds display lists.
virtual vtkDisplayListPainter* vtkDefaultPainter::GetDisplayListPainter | ( | ) | [virtual] |
Get/Set the painter that builds display lists.
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.
Get/Set the painter that controls lighting.
virtual vtkLightingPainter* vtkDefaultPainter::GetLightingPainter | ( | ) | [virtual] |
Get/Set the painter that controls lighting.
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 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.
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] |
Definition at line 136 of file vtkDefaultPainter.h.
vtkClipPlanesPainter* vtkDefaultPainter::ClipPlanesPainter [protected] |
Definition at line 137 of file vtkDefaultPainter.h.
Definition at line 138 of file vtkDefaultPainter.h.
vtkCompositePainter* vtkDefaultPainter::CompositePainter [protected] |
Definition at line 139 of file vtkDefaultPainter.h.
vtkCoincidentTopologyResolutionPainter* vtkDefaultPainter::CoincidentTopologyResolutionPainter [protected] |
Definition at line 140 of file vtkDefaultPainter.h.
vtkLightingPainter* vtkDefaultPainter::LightingPainter [protected] |
Definition at line 141 of file vtkDefaultPainter.h.
Definition at line 142 of file vtkDefaultPainter.h.
vtkTimeStamp vtkDefaultPainter::ChainBuildTime [protected] |
Definition at line 143 of file vtkDefaultPainter.h.
vtkPainter* vtkDefaultPainter::DefaultPainterDelegate [protected] |
Definition at line 145 of file vtkDefaultPainter.h.