#include <vtkPolyDataPainter.h>
vtkPolyDataPainter encapsulates a method of drawing poly data. This is a subset of what a mapper does. The painter does no maintenance of the rendering state (camera, lights, etc.). It is solely responsible for issuing rendering commands that build graphics primitives.
To simplify coding, an implementation of vtkPolyDataPainter is allowed to support only certain types of poly data or certain types of primitives.
Definition at line 52 of file vtkPolyDataPainter.h.
Public Types | |
typedef vtkPainter | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
vtkPolyData * | GetInputAsPolyData () |
vtkPolyData * | GetOutputAsPolyData () |
virtual void | Render (vtkRenderer *renderer, vtkActor *actor, unsigned long typeflags, bool forceCompileOnly) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkPolyDataPainter * | SafeDownCast (vtkObject *o) |
static vtkInformationIntegerKey * | BUILD_NORMALS () |
static vtkInformationIntegerKey * | DISABLE_SCALAR_COLOR () |
static vtkInformationObjectBaseKey * | DATA_ARRAY_TO_VERTEX_ATTRIBUTE () |
Protected Member Functions | |
vtkPolyDataPainter () | |
~vtkPolyDataPainter () | |
virtual void | SetBuildNormals (int) |
virtual void | ProcessInformation (vtkInformation *) |
Protected Attributes | |
int | BuildNormals |
Reimplemented from vtkPainter.
Reimplemented in vtkChooserPainter, vtkCoincidentTopologyResolutionPainter, vtkHardwareSelectionPolyDataPainter, vtkIdentColoredPainter, vtkLightingPainter, vtkLinesPainter, vtkMesaCoincidentTopologyResolutionPainter, vtkMesaLightingPainter, vtkMesaRepresentationPainter, vtkOpenGLCoincidentTopologyResolutionPainter, vtkOpenGLLightingPainter, vtkOpenGLRepresentationPainter, vtkPointsPainter, vtkPolygonsPainter, vtkPrimitivePainter, vtkRepresentationPainter, vtkStandardPolyDataPainter, and vtkTStripsPainter.
Definition at line 55 of file vtkPolyDataPainter.h.
vtkPolyDataPainter::vtkPolyDataPainter | ( | ) | [protected] |
vtkPolyDataPainter::~vtkPolyDataPainter | ( | ) | [protected] |
virtual const char* vtkPolyDataPainter::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkPainter.
Reimplemented in vtkChooserPainter, vtkCoincidentTopologyResolutionPainter, vtkHardwareSelectionPolyDataPainter, vtkIdentColoredPainter, vtkLightingPainter, vtkLinesPainter, vtkMesaCoincidentTopologyResolutionPainter, vtkMesaLightingPainter, vtkMesaRepresentationPainter, vtkOpenGLCoincidentTopologyResolutionPainter, vtkOpenGLLightingPainter, vtkOpenGLRepresentationPainter, vtkPointsPainter, vtkPolygonsPainter, vtkPrimitivePainter, vtkRepresentationPainter, vtkStandardPolyDataPainter, and vtkTStripsPainter.
static int vtkPolyDataPainter::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 vtkChooserPainter, vtkCoincidentTopologyResolutionPainter, vtkHardwareSelectionPolyDataPainter, vtkIdentColoredPainter, vtkLightingPainter, vtkLinesPainter, vtkMesaCoincidentTopologyResolutionPainter, vtkMesaLightingPainter, vtkMesaRepresentationPainter, vtkOpenGLCoincidentTopologyResolutionPainter, vtkOpenGLLightingPainter, vtkOpenGLRepresentationPainter, vtkPointsPainter, vtkPolygonsPainter, vtkPrimitivePainter, vtkRepresentationPainter, vtkStandardPolyDataPainter, and vtkTStripsPainter.
virtual int vtkPolyDataPainter::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 vtkChooserPainter, vtkCoincidentTopologyResolutionPainter, vtkHardwareSelectionPolyDataPainter, vtkIdentColoredPainter, vtkLightingPainter, vtkLinesPainter, vtkMesaCoincidentTopologyResolutionPainter, vtkMesaLightingPainter, vtkMesaRepresentationPainter, vtkOpenGLCoincidentTopologyResolutionPainter, vtkOpenGLLightingPainter, vtkOpenGLRepresentationPainter, vtkPointsPainter, vtkPolygonsPainter, vtkPrimitivePainter, vtkRepresentationPainter, vtkStandardPolyDataPainter, and vtkTStripsPainter.
static vtkPolyDataPainter* vtkPolyDataPainter::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkPainter.
Reimplemented in vtkChooserPainter, vtkCoincidentTopologyResolutionPainter, vtkHardwareSelectionPolyDataPainter, vtkIdentColoredPainter, vtkLightingPainter, vtkLinesPainter, vtkMesaCoincidentTopologyResolutionPainter, vtkMesaLightingPainter, vtkMesaRepresentationPainter, vtkOpenGLCoincidentTopologyResolutionPainter, vtkOpenGLLightingPainter, vtkOpenGLRepresentationPainter, vtkPointsPainter, vtkPolygonsPainter, vtkPrimitivePainter, vtkRepresentationPainter, vtkStandardPolyDataPainter, and vtkTStripsPainter.
virtual void vtkPolyDataPainter::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 vtkChooserPainter, vtkCoincidentTopologyResolutionPainter, vtkHardwareSelectionPolyDataPainter, vtkIdentColoredPainter, vtkLightingPainter, vtkLinesPainter, vtkMesaCoincidentTopologyResolutionPainter, vtkMesaLightingPainter, vtkMesaRepresentationPainter, vtkOpenGLCoincidentTopologyResolutionPainter, vtkOpenGLLightingPainter, vtkOpenGLRepresentationPainter, vtkPointsPainter, vtkPolygonsPainter, vtkPrimitivePainter, vtkRepresentationPainter, vtkStandardPolyDataPainter, and vtkTStripsPainter.
vtkPolyData* vtkPolyDataPainter::GetInputAsPolyData | ( | ) |
Get/set the poly data to render.
vtkPolyData* vtkPolyDataPainter::GetOutputAsPolyData | ( | ) |
Get the output polydata from this Painter. The default implementation forwards the input polydata as the output.
static vtkInformationIntegerKey* vtkPolyDataPainter::BUILD_NORMALS | ( | ) | [static] |
Keys used to specify control the behaviour of the painter. When on, the painter creates normals when none are available in the polydata. On by default.
static vtkInformationIntegerKey* vtkPolyDataPainter::DISABLE_SCALAR_COLOR | ( | ) | [static] |
Key added to disable any scalar coloring for the current pass.
static vtkInformationObjectBaseKey* vtkPolyDataPainter::DATA_ARRAY_TO_VERTEX_ATTRIBUTE | ( | ) | [static] |
virtual void vtkPolyDataPainter::Render | ( | vtkRenderer * | renderer, | |
vtkActor * | actor, | |||
unsigned long | typeflags, | |||
bool | forceCompileOnly | |||
) | [virtual] |
Overridden to stop the render call if input polydata is not set, since PolyDataPainter cannot paint without any polydata input.
Reimplemented from vtkPainter.
virtual void vtkPolyDataPainter::SetBuildNormals | ( | int | ) | [protected, virtual] |
virtual void vtkPolyDataPainter::ProcessInformation | ( | vtkInformation * | ) | [protected, virtual] |
Called before RenderInternal() if the Information has been changed since the last time this method was called.
Reimplemented from vtkPainter.
Reimplemented in vtkCoincidentTopologyResolutionPainter, vtkPrimitivePainter, and vtkStandardPolyDataPainter.
int vtkPolyDataPainter::BuildNormals [protected] |
Definition at line 88 of file vtkPolyDataPainter.h.