VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkPolyDataPainter Class Reference

Abstract class for drawing poly data. More...

#include <vtkPolyDataPainter.h>

Inheritance diagram for vtkPolyDataPainter:
Inheritance graph
[legend]
Collaboration diagram for vtkPolyDataPainter:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkPainter Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkPolyDataPainterNewInstance () const
virtual void PrintSelf (ostream &os, vtkIndent indent)
vtkPolyDataGetInputAsPolyData ()
vtkPolyDataGetOutputAsPolyData ()
virtual void Render (vtkRenderer *renderer, vtkActor *actor, unsigned long typeflags, bool forceCompileOnly)

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkPolyDataPainterSafeDownCast (vtkObjectBase *o)
static vtkInformationIntegerKeyBUILD_NORMALS ()
static vtkInformationIntegerKeyDISABLE_SCALAR_COLOR ()
static
vtkInformationObjectBaseKey
DATA_ARRAY_TO_VERTEX_ATTRIBUTE ()
static
vtkInformationObjectBaseKey
SHADER_DEVICE_ADAPTOR ()

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkPolyDataPainter ()
 ~vtkPolyDataPainter ()
virtual void SetBuildNormals (int)
virtual void ProcessInformation (vtkInformation *)

Protected Attributes

int BuildNormals

Detailed Description

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.

See also:
vtkDefaultPainter vtkStandardPainter vtkPainterDeviceAdapter

Definition at line 53 of file vtkPolyDataPainter.h.


Member Typedef Documentation


Constructor & Destructor Documentation


Member Function Documentation

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.

virtual vtkObjectBase* vtkPolyDataPainter::NewInstanceInternal ( ) const [protected, virtual]
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.

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.

Key added to disable any scalar coloring for the current pass.

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.


Member Data Documentation

Definition at line 92 of file vtkPolyDataPainter.h.


The documentation for this class was generated from the following file: