VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkPainterPolyDataMapper Class Reference

PolyDataMapper using painters. More...

#include <vtkPainterPolyDataMapper.h>

Inheritance diagram for vtkPainterPolyDataMapper:
[legend]
Collaboration diagram for vtkPainterPolyDataMapper:
[legend]

Public Types

typedef vtkPolyDataMapper Superclass
- Public Types inherited from vtkPolyDataMapper
typedef vtkMapper Superclass
- Public Types inherited from vtkMapper
typedef vtkAbstractMapper3D Superclass
- Public Types inherited from vtkAbstractMapper3D
typedef vtkAbstractMapper Superclass
- Public Types inherited from vtkAbstractMapper
typedef vtkAlgorithm Superclass
- Public Types inherited from vtkAlgorithm
typedef vtkObject Superclass
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
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 vtkPainterGetPainter ()
void SetPainter (vtkPainter *)
virtual void MapDataArrayToVertexAttribute (const char *vertexAttributeName, const char *dataArrayName, int fieldAssociation, int componentno=-1)
virtual vtkPainterGetSelectionPainter ()
void SetSelectionPainter (vtkPainter *)
virtual bool GetSupportsSelection ()
- Public Member Functions inherited from vtkPolyDataMapper
virtual void Render (vtkRenderer *ren, vtkActor *act)
void Update ()
void ShallowCopy (vtkAbstractMapper *m)
void SetInput (vtkPolyData *in)
vtkPolyDataGetInput ()
virtual void SetPiece (int)
virtual int GetPiece ()
virtual void SetNumberOfPieces (int)
virtual int GetNumberOfPieces ()
virtual void SetNumberOfSubPieces (int)
virtual int GetNumberOfSubPieces ()
virtual void SetGhostLevel (int)
virtual int GetGhostLevel ()
virtual double * GetBounds ()
virtual void GetBounds (double bounds[6])
- Public Member Functions inherited from vtkMapper
unsigned long GetMTime ()
virtual void CreateDefaultLookupTable ()
const char * GetColorModeAsString ()
const char * GetScalarModeAsString ()
vtkUnsignedCharArrayMapScalars (double alpha)
const char * GetScalarMaterialModeAsString ()
void SetLookupTable (vtkScalarsToColors *lut)
vtkScalarsToColorsGetLookupTable ()
virtual void SetScalarVisibility (int)
virtual int GetScalarVisibility ()
virtual void ScalarVisibilityOn ()
virtual void ScalarVisibilityOff ()
virtual void SetStatic (int)
virtual int GetStatic ()
virtual void StaticOn ()
virtual void StaticOff ()
virtual void SetColorMode (int)
virtual int GetColorMode ()
void SetColorModeToDefault ()
void SetColorModeToMapScalars ()
virtual void SetInterpolateScalarsBeforeMapping (int)
virtual int GetInterpolateScalarsBeforeMapping ()
virtual void InterpolateScalarsBeforeMappingOn ()
virtual void InterpolateScalarsBeforeMappingOff ()
virtual void SetUseLookupTableScalarRange (int)
virtual int GetUseLookupTableScalarRange ()
virtual void UseLookupTableScalarRangeOn ()
virtual void UseLookupTableScalarRangeOff ()
virtual void SetScalarRange (double, double)
void SetScalarRange (double[2])
virtual double * GetScalarRange ()
virtual void GetScalarRange (double data[2])
virtual void SetImmediateModeRendering (int)
virtual int GetImmediateModeRendering ()
virtual void ImmediateModeRenderingOn ()
virtual void ImmediateModeRenderingOff ()
virtual int GetForceCompileOnly ()
void SetForceCompileOnly (int value)
virtual void SetScalarMode (int)
virtual int GetScalarMode ()
void SetScalarModeToDefault ()
void SetScalarModeToUsePointData ()
void SetScalarModeToUseCellData ()
void SetScalarModeToUsePointFieldData ()
void SetScalarModeToUseCellFieldData ()
void SetScalarModeToUseFieldData ()
void SelectColorArray (int arrayNum)
void SelectColorArray (const char *arrayName)
void ColorByArrayComponent (int arrayNum, int component)
void ColorByArrayComponent (const char *arrayName, int component)
char * GetArrayName ()
int GetArrayId ()
int GetArrayAccessMode ()
int GetArrayComponent ()
void SetRenderTime (double time)
virtual double GetRenderTime ()
vtkDataSetGetInputAsDataSet ()
virtual void SetScalarMaterialMode (int)
virtual int GetScalarMaterialMode ()
void SetScalarMaterialModeToDefault ()
void SetScalarMaterialModeToAmbient ()
void SetScalarMaterialModeToDiffuse ()
void SetScalarMaterialModeToAmbientAndDiffuse ()
- Public Member Functions inherited from vtkAbstractMapper3D
double GetLength ()
virtual int IsARayCastMapper ()
virtual int IsARenderIntoImageMapper ()
double * GetCenter ()
void GetCenter (double center[3])
- Public Member Functions inherited from vtkAbstractMapper
void SetClippingPlanes (vtkPlanes *planes)
virtual double GetTimeToDraw ()
void AddClippingPlane (vtkPlane *plane)
void RemoveClippingPlane (vtkPlane *plane)
void RemoveAllClippingPlanes ()
virtual void SetClippingPlanes (vtkPlaneCollection *)
virtual vtkPlaneCollectionGetClippingPlanes ()
- Public Member Functions inherited from vtkAlgorithm
int HasExecutive ()
vtkExecutiveGetExecutive ()
virtual void SetExecutive (vtkExecutive *executive)
virtual int ModifyRequest (vtkInformation *request, int when)
vtkInformationGetInputPortInformation (int port)
vtkInformationGetOutputPortInformation (int port)
int GetNumberOfInputPorts ()
int GetNumberOfOutputPorts ()
void UpdateProgress (double amount)
vtkInformationGetInputArrayInformation (int idx)
void RemoveAllInputs ()
vtkDataObjectGetOutputDataObject (int port)
virtual void RemoveInputConnection (int port, vtkAlgorithmOutput *input)
int GetNumberOfInputConnections (int port)
int GetTotalNumberOfInputConnections ()
vtkAlgorithmOutputGetInputConnection (int port, int index)
virtual void UpdateInformation ()
virtual void UpdateWholeExtent ()
void ConvertTotalInputToPortConnection (int ind, int &port, int &conn)
virtual double ComputePriority ()
virtual int ProcessRequest (vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
int ProcessRequest (vtkInformation *request, vtkCollection *inInfo, vtkInformationVector *outInfo)
virtual int ComputePipelineMTime (vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, unsigned long *mtime)
virtual vtkInformationGetInformation ()
virtual void SetInformation (vtkInformation *)
virtual void Register (vtkObjectBase *o)
virtual void UnRegister (vtkObjectBase *o)
virtual void SetAbortExecute (int)
virtual int GetAbortExecute ()
virtual void AbortExecuteOn ()
virtual void AbortExecuteOff ()
virtual void SetProgress (double)
virtual double GetProgress ()
void SetProgressText (const char *ptext)
virtual char * GetProgressText ()
virtual unsigned long GetErrorCode ()
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name)
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType)
virtual void SetInputArrayToProcess (int idx, vtkInformation *info)
virtual void SetInputArrayToProcess (int idx, int port, int connection, const char *fieldAssociation, const char *attributeTypeorName)
vtkDataObjectGetInputDataObject (int port, int connection)
virtual void SetInputConnection (int port, vtkAlgorithmOutput *input)
virtual void SetInputConnection (vtkAlgorithmOutput *input)
virtual void AddInputConnection (int port, vtkAlgorithmOutput *input)
virtual void AddInputConnection (vtkAlgorithmOutput *input)
vtkAlgorithmOutputGetOutputPort (int index)
vtkAlgorithmOutputGetOutputPort ()
virtual void SetReleaseDataFlag (int)
virtual int GetReleaseDataFlag ()
void ReleaseDataFlagOn ()
void ReleaseDataFlagOff ()
int UpdateExtentIsEmpty (vtkDataObject *output)
int UpdateExtentIsEmpty (vtkInformation *pinfo, int extentType)
- Public Member Functions inherited from vtkObject
virtual void DebugOn ()
virtual void DebugOff ()
unsigned char GetDebug ()
void SetDebug (unsigned char debugFlag)
virtual void Modified ()
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
vtkCommandGetCommand (unsigned long tag)
void RemoveObserver (vtkCommand *)
void RemoveObservers (unsigned long event, vtkCommand *)
void RemoveObservers (const char *event, vtkCommand *)
int HasObserver (unsigned long event, vtkCommand *)
int HasObserver (const char *event, vtkCommand *)
void RemoveObserver (unsigned long tag)
void RemoveObservers (unsigned long event)
void RemoveObservers (const char *event)
void RemoveAllObservers ()
int HasObserver (unsigned long event)
int HasObserver (const char *event)
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
int InvokeEvent (unsigned long event, void *callData)
int InvokeEvent (const char *event, void *callData)
int InvokeEvent (unsigned long event)
int InvokeEvent (const char *event)
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
virtual void Delete ()
virtual void FastDelete ()
void Print (ostream &os)
void SetReferenceCount (int)
void PrintRevisions (ostream &os)
virtual void PrintHeader (ostream &os, vtkIndent indent)
virtual void PrintTrailer (ostream &os, vtkIndent indent)
int GetReferenceCount ()

Static Public Member Functions

static vtkPainterPolyDataMapperNew ()
static int IsTypeOf (const char *type)
static vtkPainterPolyDataMapperSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkPainterPolyDataMapper ()
 ~vtkPainterPolyDataMapper ()
virtual void ComputeBounds ()
virtual void UpdatePainterInformation ()
virtual void ReportReferences (vtkGarbageCollector *collector)
- Protected Member Functions inherited from vtkPolyDataMapper
 vtkPolyDataMapper ()
 ~vtkPolyDataMapper ()
virtual int FillInputPortInformation (int, vtkInformation *)
- Protected Member Functions inherited from vtkMapper
void MapScalarsToTexture (vtkDataArray *scalars, double alpha)
 vtkMapper ()
 ~vtkMapper ()
- Protected Member Functions inherited from vtkAbstractMapper3D
 vtkAbstractMapper3D ()
 ~vtkAbstractMapper3D ()
- Protected Member Functions inherited from vtkAbstractMapper
 vtkAbstractMapper ()
 ~vtkAbstractMapper ()
- Protected Member Functions inherited from vtkAlgorithm
 vtkAlgorithm ()
 ~vtkAlgorithm ()
virtual int FillOutputPortInformation (int port, vtkInformation *info)
virtual void SetNumberOfInputPorts (int n)
virtual void SetNumberOfOutputPorts (int n)
int InputPortIndexInRange (int index, const char *action)
int OutputPortIndexInRange (int index, const char *action)
int GetInputArrayAssociation (int idx, vtkInformationVector **inputVector)
virtual vtkExecutiveCreateDefaultExecutive ()
virtual void SetNumberOfInputConnections (int port, int n)
int GetInputArrayAssociation (int idx, int connection, vtkInformationVector **inputVector)
int GetInputArrayAssociation (int idx, vtkDataObject *input)
vtkDataArrayGetInputArrayToProcess (int idx, vtkInformationVector **inputVector)
vtkDataArrayGetInputArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
vtkDataArrayGetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
vtkDataArrayGetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
vtkDataArrayGetInputArrayToProcess (int idx, vtkDataObject *input)
vtkDataArrayGetInputArrayToProcess (int idx, vtkDataObject *input, int &association)
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector)
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkDataObject *input)
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkDataObject *input, int &association)
vtkInformationGetInputArrayFieldInformation (int idx, vtkInformationVector **inputVector)
virtual void SetNthInputConnection (int port, int index, vtkAlgorithmOutput *input)
virtual void SetErrorCode (unsigned long)
- Protected Member Functions inherited from vtkObject
 vtkObject ()
virtual ~vtkObject ()
virtual void RegisterInternal (vtkObjectBase *, int check)
virtual void UnRegisterInternal (vtkObjectBase *, int check)
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
void InternalReleaseFocus ()
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
virtual ~vtkObjectBase ()
virtual void CollectRevisions (ostream &os)
 vtkObjectBase (const vtkObjectBase &)
void operator= (const vtkObjectBase &)

Protected Attributes

vtkInformationPainterInformation
vtkTimeStamp PainterUpdateTime
vtkPainterPainter
vtkPainterSelectionPainter
vtkPainterPolyDataMapperObserver * Observer
- Protected Attributes inherited from vtkPolyDataMapper
int Piece
int NumberOfPieces
int NumberOfSubPieces
int GhostLevel
- Protected Attributes inherited from vtkMapper
vtkUnsignedCharArrayColors
int InterpolateScalarsBeforeMapping
vtkFloatArrayColorCoordinates
vtkImageDataColorTextureMap
vtkScalarsToColorsLookupTable
int ScalarVisibility
vtkTimeStamp BuildTime
double ScalarRange [2]
int UseLookupTableScalarRange
int ImmediateModeRendering
int ColorMode
int ScalarMode
int ScalarMaterialMode
double RenderTime
int ArrayId
char ArrayName [256]
int ArrayComponent
int ArrayAccessMode
int Static
int ForceCompileOnly
- Protected Attributes inherited from vtkAbstractMapper3D
double Bounds [6]
double Center [3]
- Protected Attributes inherited from vtkAbstractMapper
vtkTimerLogTimer
double TimeToDraw
vtkWindowLastWindow
vtkPlaneCollectionClippingPlanes
- Protected Attributes inherited from vtkAlgorithm
vtkInformationInformation
double Progress
char * ProgressText
unsigned long ErrorCode
- Protected Attributes inherited from vtkObject
unsigned char Debug
vtkTimeStamp MTime
vtkSubjectHelper * SubjectHelper
- Protected Attributes inherited from vtkObjectBase
int ReferenceCount
vtkWeakPointerBase ** WeakPointers

Additional Inherited Members

- Public Attributes inherited from vtkAlgorithm
int AbortExecute
- Static Protected Member Functions inherited from vtkAlgorithm
static vtkInformationIntegerKeyPORT_REQUIREMENTS_FILLED ()
- Static Protected Attributes inherited from vtkAlgorithm
static vtkExecutiveDefaultExecutivePrototype
- Friends inherited from vtkObject

Detailed Description

PolyDataMapper using painters.

PolyDataMapper that uses painters to do the actual rendering.

Thanks:
Support for generic vertex attributes in VTK was contributed in collaboration with Stephane Ploix at EDF.
Events:
vtkCommand::StartEvent vtkCommand::EndEvent

Definition at line 35 of file vtkPainterPolyDataMapper.h.

Member Typedef Documentation

Definition at line 39 of file vtkPainterPolyDataMapper.h.

Constructor & Destructor Documentation

vtkPainterPolyDataMapper::vtkPainterPolyDataMapper ( )
protected
vtkPainterPolyDataMapper::~vtkPainterPolyDataMapper ( )
protected

Member Function Documentation

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.

virtual const char* vtkPainterPolyDataMapper::GetClassName ( )
virtual

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 ( vtkObject o)
static

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.

void vtkPainterPolyDataMapper::SetSelectionPainter ( vtkPainter )

Get/Set the painter used when rendering the selection pass.

virtual bool vtkPainterPolyDataMapper::GetSupportsSelection ( )
inlinevirtual

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 94 of file vtkPainterPolyDataMapper.h.

virtual void vtkPainterPolyDataMapper::ComputeBounds ( )
protectedvirtual

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 ( )
protectedvirtual

Called when the PainterInformation becomes obsolete. It is called before UpdateBounds or Render is initiated on the Painter

virtual void vtkPainterPolyDataMapper::ReportReferences ( vtkGarbageCollector collector)
protectedvirtual

Take part in garbage collection.

Reimplemented from vtkAlgorithm.

Member Data Documentation

vtkInformation* vtkPainterPolyDataMapper::PainterInformation
protected

Definition at line 115 of file vtkPainterPolyDataMapper.h.

vtkTimeStamp vtkPainterPolyDataMapper::PainterUpdateTime
protected

Definition at line 116 of file vtkPainterPolyDataMapper.h.

vtkPainter* vtkPainterPolyDataMapper::Painter
protected

Definition at line 117 of file vtkPainterPolyDataMapper.h.

vtkPainter* vtkPainterPolyDataMapper::SelectionPainter
protected

Definition at line 120 of file vtkPainterPolyDataMapper.h.

vtkPainterPolyDataMapperObserver* vtkPainterPolyDataMapper::Observer
protected

Definition at line 121 of file vtkPainterPolyDataMapper.h.


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