VTK
|
PolyDataMapper using painters. More...
#include <vtkPainterPolyDataMapper.h>
Public Types | |
typedef vtkPolyDataMapper | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkPainterPolyDataMapper * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | RenderPiece (vtkRenderer *ren, vtkActor *act) |
void | ReleaseGraphicsResources (vtkWindow *) |
virtual void | MapDataArrayToMultiTextureAttribute (int unit, const char *dataArrayName, int fieldAssociation, int componentno=-1) |
virtual void | RemoveVertexAttributeMapping (const char *vertexAttributeName) |
virtual void | RemoveAllVertexAttributeMappings () |
virtual bool | GetIsOpaque () |
virtual vtkPainter * | GetPainter () |
void | SetPainter (vtkPainter *) |
virtual void | MapDataArrayToVertexAttribute (const char *vertexAttributeName, const char *dataArrayName, int fieldAssociation, int componentno=-1) |
virtual vtkPainter * | GetSelectionPainter () |
void | SetSelectionPainter (vtkPainter *) |
virtual bool | GetSupportsSelection () |
Static Public Member Functions | |
static vtkPainterPolyDataMapper * | New () |
static int | IsTypeOf (const char *type) |
static vtkPainterPolyDataMapper * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkPainterPolyDataMapper () | |
~vtkPainterPolyDataMapper () | |
virtual void | ComputeBounds () |
virtual void | UpdatePainterInformation () |
virtual void | ReportReferences (vtkGarbageCollector *collector) |
Protected Attributes | |
vtkInformation * | PainterInformation |
vtkTimeStamp | PainterUpdateTime |
vtkPainter * | Painter |
vtkPainter * | SelectionPainter |
vtkPainterPolyDataMapperObserver * | Observer |
PolyDataMapper using painters.
PolyDataMapper that uses painters to do the actual rendering.
Definition at line 36 of file vtkPainterPolyDataMapper.h.
Reimplemented from vtkPolyDataMapper.
Reimplemented in vtkCompositePolyDataMapper2.
Definition at line 40 of file vtkPainterPolyDataMapper.h.
vtkPainterPolyDataMapper::vtkPainterPolyDataMapper | ( | ) | [protected] |
vtkPainterPolyDataMapper::~vtkPainterPolyDataMapper | ( | ) | [protected] |
static vtkPainterPolyDataMapper* vtkPainterPolyDataMapper::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkPolyDataMapper.
Reimplemented in vtkCompositePolyDataMapper2.
static int vtkPainterPolyDataMapper::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 vtkPolyDataMapper.
Reimplemented in vtkCompositePolyDataMapper2.
virtual int vtkPainterPolyDataMapper::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 vtkPolyDataMapper.
Reimplemented in vtkCompositePolyDataMapper2.
static vtkPainterPolyDataMapper* vtkPainterPolyDataMapper::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkPolyDataMapper.
Reimplemented in vtkCompositePolyDataMapper2.
virtual vtkObjectBase* vtkPainterPolyDataMapper::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkPolyDataMapper.
Reimplemented in vtkCompositePolyDataMapper2.
Reimplemented from vtkPolyDataMapper.
Reimplemented in vtkCompositePolyDataMapper2.
void vtkPainterPolyDataMapper::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 vtkPolyDataMapper.
Reimplemented in vtkCompositePolyDataMapper2.
virtual void vtkPainterPolyDataMapper::RenderPiece | ( | vtkRenderer * | ren, |
vtkActor * | act | ||
) | [virtual] |
Implemented by sub classes. Actual rendering is done here.
Implements vtkPolyDataMapper.
virtual vtkPainter* vtkPainterPolyDataMapper::GetPainter | ( | ) | [virtual] |
Get/Set the painter used to do the actual rendering. By default, vtkDefaultPainter is used to build the rendering painter chain for color mapping/clipping etc. followed by a vtkChooserPainter which renders the primitives.
void vtkPainterPolyDataMapper::SetPainter | ( | vtkPainter * | ) |
Get/Set the painter used to do the actual rendering. By default, vtkDefaultPainter is used to build the rendering painter chain for color mapping/clipping etc. followed by a vtkChooserPainter which renders the primitives.
void vtkPainterPolyDataMapper::ReleaseGraphicsResources | ( | vtkWindow * | ) | [virtual] |
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.
Reimplemented from vtkMapper.
virtual void vtkPainterPolyDataMapper::MapDataArrayToVertexAttribute | ( | const char * | vertexAttributeName, |
const char * | dataArrayName, | ||
int | fieldAssociation, | ||
int | componentno = -1 |
||
) | [virtual] |
Select a data array from the point/cell data and map it to a generic vertex attribute. vertexAttributeName is the name of the vertex attribute. dataArrayName is the name of the data array. fieldAssociation indicates when the data array is a point data array or cell data array (vtkDataObject::FIELD_ASSOCIATION_POINTS or (vtkDataObject::FIELD_ASSOCIATION_CELLS). componentno indicates which component from the data array must be passed as the attribute. If -1, then all components are passed.
Reimplemented from vtkPolyDataMapper.
virtual void vtkPainterPolyDataMapper::MapDataArrayToMultiTextureAttribute | ( | int | unit, |
const char * | dataArrayName, | ||
int | fieldAssociation, | ||
int | componentno = -1 |
||
) | [virtual] |
Reimplemented from vtkPolyDataMapper.
virtual void vtkPainterPolyDataMapper::RemoveVertexAttributeMapping | ( | const char * | vertexAttributeName | ) | [virtual] |
Remove a vertex attribute mapping.
Reimplemented from vtkPolyDataMapper.
virtual void vtkPainterPolyDataMapper::RemoveAllVertexAttributeMappings | ( | ) | [virtual] |
Remove all vertex attributes.
Reimplemented from vtkPolyDataMapper.
virtual vtkPainter* vtkPainterPolyDataMapper::GetSelectionPainter | ( | ) | [virtual] |
Get/Set the painter used when rendering the selection pass.
Get/Set the painter used when rendering the selection pass.
virtual bool vtkPainterPolyDataMapper::GetSupportsSelection | ( | ) | [inline, virtual] |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERING PROCESS Used by vtkHardwareSelector to determine if the prop supports hardware selection.
Reimplemented from vtkMapper.
Definition at line 95 of file vtkPainterPolyDataMapper.h.
virtual bool vtkPainterPolyDataMapper::GetIsOpaque | ( | ) | [virtual] |
Returns if the mapper does not expect to have translucent geometry. This may happen when using ScalarMode is set to not map scalars i.e. render the scalar array directly as colors and the scalar array has opacity i.e. alpha component. Note that even if this method returns true, an actor may treat the geometry as translucent since a constant translucency is set on the property, for example. Overridden to use the actual data and ScalarMode to determine if we have opaque geometry.
Reimplemented from vtkMapper.
Reimplemented in vtkCompositePolyDataMapper2.
virtual void vtkPainterPolyDataMapper::ComputeBounds | ( | ) | [protected, virtual] |
Called in GetBounds(). When this method is called, the consider the input to be updated depending on whether this->Static is set or not. This method simply obtains the bounds from the data-object and returns it.
Reimplemented from vtkPolyDataMapper.
Reimplemented in vtkCompositePolyDataMapper2.
virtual void vtkPainterPolyDataMapper::UpdatePainterInformation | ( | ) | [protected, virtual] |
Called when the PainterInformation becomes obsolete. It is called before UpdateBounds or Render is initiated on the Painter
Reimplemented in vtkCompositePolyDataMapper2.
virtual void vtkPainterPolyDataMapper::ReportReferences | ( | vtkGarbageCollector * | collector | ) | [protected, virtual] |
Take part in garbage collection.
Reimplemented from vtkAlgorithm.
Definition at line 126 of file vtkPainterPolyDataMapper.h.
Definition at line 127 of file vtkPainterPolyDataMapper.h.
vtkPainter* vtkPainterPolyDataMapper::Painter [protected] |
Definition at line 128 of file vtkPainterPolyDataMapper.h.
vtkPainter* vtkPainterPolyDataMapper::SelectionPainter [protected] |
Definition at line 131 of file vtkPainterPolyDataMapper.h.
vtkPainterPolyDataMapperObserver* vtkPainterPolyDataMapper::Observer [protected] |
Definition at line 132 of file vtkPainterPolyDataMapper.h.