VTK
|
Abstract class for drawing poly data. More...
#include <vtkPolyDataPainter.h>
Abstract class for drawing poly data.
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 53 of file vtkPolyDataPainter.h.
Reimplemented from vtkPainter.
Reimplemented in vtkStandardPolyDataPainter, vtkCoincidentTopologyResolutionPainter, vtkPrimitivePainter, vtkChooserPainter, vtkLinesPainter, vtkHardwareSelectionPolyDataPainter, vtkPointsPainter, vtkOpenGLLightingPainter, vtkOpenGLRepresentationPainter, vtkRepresentationPainter, vtkPolygonsPainter, vtkOpenGLCoincidentTopologyResolutionPainter, vtkLightingPainter, and vtkTStripsPainter.
Definition at line 56 of file vtkPolyDataPainter.h.
vtkPolyDataPainter::vtkPolyDataPainter | ( | ) | [protected] |
vtkPolyDataPainter::~vtkPolyDataPainter | ( | ) | [protected] |
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 vtkStandardPolyDataPainter, vtkCoincidentTopologyResolutionPainter, vtkPrimitivePainter, vtkChooserPainter, vtkLinesPainter, vtkHardwareSelectionPolyDataPainter, vtkPointsPainter, vtkOpenGLLightingPainter, vtkOpenGLRepresentationPainter, vtkRepresentationPainter, vtkPolygonsPainter, vtkOpenGLCoincidentTopologyResolutionPainter, vtkLightingPainter, 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 vtkStandardPolyDataPainter, vtkCoincidentTopologyResolutionPainter, vtkPrimitivePainter, vtkChooserPainter, vtkLinesPainter, vtkHardwareSelectionPolyDataPainter, vtkPointsPainter, vtkOpenGLLightingPainter, vtkOpenGLRepresentationPainter, vtkRepresentationPainter, vtkPolygonsPainter, vtkOpenGLCoincidentTopologyResolutionPainter, vtkLightingPainter, and vtkTStripsPainter.
static vtkPolyDataPainter* vtkPolyDataPainter::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkPainter.
Reimplemented in vtkStandardPolyDataPainter, vtkCoincidentTopologyResolutionPainter, vtkPrimitivePainter, vtkChooserPainter, vtkLinesPainter, vtkHardwareSelectionPolyDataPainter, vtkPointsPainter, vtkOpenGLLightingPainter, vtkOpenGLRepresentationPainter, vtkRepresentationPainter, vtkPolygonsPainter, vtkOpenGLCoincidentTopologyResolutionPainter, vtkLightingPainter, and vtkTStripsPainter.
virtual vtkObjectBase* vtkPolyDataPainter::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkPainter.
Reimplemented in vtkStandardPolyDataPainter, vtkCoincidentTopologyResolutionPainter, vtkPrimitivePainter, vtkChooserPainter, vtkLinesPainter, vtkHardwareSelectionPolyDataPainter, vtkPointsPainter, vtkOpenGLLightingPainter, vtkOpenGLRepresentationPainter, vtkRepresentationPainter, vtkPolygonsPainter, vtkOpenGLCoincidentTopologyResolutionPainter, vtkLightingPainter, and vtkTStripsPainter.
Reimplemented from vtkPainter.
Reimplemented in vtkStandardPolyDataPainter, vtkCoincidentTopologyResolutionPainter, vtkPrimitivePainter, vtkChooserPainter, vtkLinesPainter, vtkHardwareSelectionPolyDataPainter, vtkPointsPainter, vtkOpenGLLightingPainter, vtkOpenGLRepresentationPainter, vtkRepresentationPainter, vtkPolygonsPainter, vtkOpenGLCoincidentTopologyResolutionPainter, vtkLightingPainter, 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 vtkStandardPolyDataPainter, vtkCoincidentTopologyResolutionPainter, vtkPrimitivePainter, vtkChooserPainter, vtkLinesPainter, vtkHardwareSelectionPolyDataPainter, vtkPointsPainter, vtkOpenGLLightingPainter, vtkOpenGLRepresentationPainter, vtkRepresentationPainter, vtkPolygonsPainter, vtkOpenGLCoincidentTopologyResolutionPainter, vtkLightingPainter, and vtkTStripsPainter.
Get/set the poly data to render.
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] |
static vtkInformationObjectBaseKey* vtkPolyDataPainter::SHADER_DEVICE_ADAPTOR | ( | ) | [static] |
Key to store the shader device adaptor.
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 vtkStandardPolyDataPainter, vtkPrimitivePainter, and vtkCoincidentTopologyResolutionPainter.
int vtkPolyDataPainter::BuildNormals [protected] |
Definition at line 92 of file vtkPolyDataPainter.h.