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

map vtkPolyData to graphics primitives More...

#include <vtkPolyDataMapper.h>

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

List of all members.

Public Types

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

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)=0
virtual void Render (vtkRenderer *ren, vtkActor *act)
void Update ()
void ShallowCopy (vtkAbstractMapper *m)
virtual void MapDataArrayToMultiTextureAttribute (int unit, const char *dataArrayName, int fieldAssociation, int componentno=-1)
virtual void RemoveVertexAttributeMapping (const char *vertexAttributeName)
virtual void RemoveAllVertexAttributeMappings ()
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])
virtual void MapDataArrayToVertexAttribute (const char *vertexAttributeName, const char *dataArrayName, int fieldAssociation, int componentno=-1)
- Public Member Functions inherited from vtkMapper
unsigned long GetMTime ()
virtual void ReleaseGraphicsResources (vtkWindow *)
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 ()
virtual bool GetSupportsSelection ()
- 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 vtkPolyDataMapperNew ()
static int IsTypeOf (const char *type)
static vtkPolyDataMapperSafeDownCast (vtkObject *o)
- Static Public Member Functions inherited from vtkMapper
static void SetGlobalImmediateModeRendering (int val)
static void GlobalImmediateModeRenderingOn ()
static void GlobalImmediateModeRenderingOff ()
static int GetGlobalImmediateModeRendering ()
static void SetResolveCoincidentTopology (int val)
static int GetResolveCoincidentTopology ()
static void SetResolveCoincidentTopologyToDefault ()
static void SetResolveCoincidentTopologyToOff ()
static void SetResolveCoincidentTopologyToPolygonOffset ()
static void SetResolveCoincidentTopologyToShiftZBuffer ()
static void SetResolveCoincidentTopologyPolygonOffsetParameters (double factor, double units)
static void GetResolveCoincidentTopologyPolygonOffsetParameters (double &factor, double &units)
static void SetResolveCoincidentTopologyPolygonOffsetFaces (int faces)
static int GetResolveCoincidentTopologyPolygonOffsetFaces ()
static void SetResolveCoincidentTopologyZShift (double val)
static double GetResolveCoincidentTopologyZShift ()

Protected Member Functions

 vtkPolyDataMapper ()
 ~vtkPolyDataMapper ()
virtual void ComputeBounds ()
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 ReportReferences (vtkGarbageCollector *)
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

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

Detailed Description

map vtkPolyData to graphics primitives

vtkPolyDataMapper is a class that maps polygonal data (i.e., vtkPolyData) to graphics primitives. vtkPolyDataMapper serves as a superclass for device-specific poly data mappers, that actually do the mapping to the rendering/graphics hardware/software.

Examples:
vtkPolyDataMapper (Examples)
Tests:
vtkPolyDataMapper (Tests)

Definition at line 40 of file vtkPolyDataMapper.h.


Member Typedef Documentation


Constructor & Destructor Documentation

vtkPolyDataMapper::vtkPolyDataMapper ( )
protected
vtkPolyDataMapper::~vtkPolyDataMapper ( )
inlineprotected

Definition at line 115 of file vtkPolyDataMapper.h.


Member Function Documentation

static vtkPolyDataMapper* vtkPolyDataMapper::New ( )
static

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkAlgorithm.

Reimplemented in vtkMesaPolyDataMapper, vtkOpenGLPolyDataMapper, vtkPainterPolyDataMapper, and vtkCompositePolyDataMapper2.

virtual const char* vtkPolyDataMapper::GetClassName ( )
virtual
static int vtkPolyDataMapper::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 vtkMapper.

Reimplemented in vtkMesaPolyDataMapper, vtkOpenGLPolyDataMapper, vtkPainterPolyDataMapper, and vtkCompositePolyDataMapper2.

virtual int vtkPolyDataMapper::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 vtkMapper.

Reimplemented in vtkMesaPolyDataMapper, vtkOpenGLPolyDataMapper, vtkPainterPolyDataMapper, and vtkCompositePolyDataMapper2.

static vtkPolyDataMapper* vtkPolyDataMapper::SafeDownCast ( vtkObject o)
static
void vtkPolyDataMapper::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 vtkMapper.

Reimplemented in vtkMesaPolyDataMapper, vtkOpenGLPolyDataMapper, vtkPainterPolyDataMapper, and vtkCompositePolyDataMapper2.

virtual void vtkPolyDataMapper::RenderPiece ( vtkRenderer ren,
vtkActor act 
)
pure virtual

Implemented by sub classes. Actual rendering is done here.

Implemented in vtkMesaPolyDataMapper, vtkOpenGLPolyDataMapper, and vtkPainterPolyDataMapper.

virtual void vtkPolyDataMapper::Render ( vtkRenderer ren,
vtkActor act 
)
virtual

This calls RenderPiece (in a for loop is streaming is necessary).

Implements vtkMapper.

void vtkPolyDataMapper::SetInput ( vtkPolyData in)

Specify the input data to map.

vtkPolyData* vtkPolyDataMapper::GetInput ( )

Specify the input data to map.

Reimplemented from vtkMapper.

void vtkPolyDataMapper::Update ( )
virtual

Update that sets the update piece first.

Reimplemented from vtkAlgorithm.

virtual void vtkPolyDataMapper::SetPiece ( int  )
virtual

If you want only a part of the data, specify by setting the piece.

virtual int vtkPolyDataMapper::GetPiece ( )
virtual

If you want only a part of the data, specify by setting the piece.

virtual void vtkPolyDataMapper::SetNumberOfPieces ( int  )
virtual

If you want only a part of the data, specify by setting the piece.

virtual int vtkPolyDataMapper::GetNumberOfPieces ( )
virtual

If you want only a part of the data, specify by setting the piece.

virtual void vtkPolyDataMapper::SetNumberOfSubPieces ( int  )
virtual

If you want only a part of the data, specify by setting the piece.

virtual int vtkPolyDataMapper::GetNumberOfSubPieces ( )
virtual

If you want only a part of the data, specify by setting the piece.

virtual void vtkPolyDataMapper::SetGhostLevel ( int  )
virtual

Set the number of ghost cells to return.

virtual int vtkPolyDataMapper::GetGhostLevel ( )
virtual

Set the number of ghost cells to return.

virtual double* vtkPolyDataMapper::GetBounds ( )
virtual

Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax, zmin,zmax).

Reimplemented from vtkMapper.

virtual void vtkPolyDataMapper::GetBounds ( double  bounds[6])
inlinevirtual

Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax, zmin,zmax).

Reimplemented from vtkMapper.

Definition at line 82 of file vtkPolyDataMapper.h.

void vtkPolyDataMapper::ShallowCopy ( vtkAbstractMapper m)

Make a shallow copy of this mapper.

Reimplemented from vtkMapper.

virtual void vtkPolyDataMapper::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 in vtkPainterPolyDataMapper.

virtual void vtkPolyDataMapper::MapDataArrayToMultiTextureAttribute ( int  unit,
const char *  dataArrayName,
int  fieldAssociation,
int  componentno = -1 
)
virtual

Reimplemented in vtkPainterPolyDataMapper.

virtual void vtkPolyDataMapper::RemoveVertexAttributeMapping ( const char *  vertexAttributeName)
virtual

Remove a vertex attribute mapping.

Reimplemented in vtkPainterPolyDataMapper.

virtual void vtkPolyDataMapper::RemoveAllVertexAttributeMappings ( )
virtual

Remove all vertex attributes.

Reimplemented in vtkPainterPolyDataMapper.

virtual void vtkPolyDataMapper::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 in vtkPainterPolyDataMapper, and vtkCompositePolyDataMapper2.

virtual int vtkPolyDataMapper::FillInputPortInformation ( int  port,
vtkInformation info 
)
protectedvirtual

Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.

Reimplemented from vtkAlgorithm.

Reimplemented in vtkCompositePolyDataMapper2.


Member Data Documentation

int vtkPolyDataMapper::Piece
protected

Definition at line 123 of file vtkPolyDataMapper.h.

int vtkPolyDataMapper::NumberOfPieces
protected

Definition at line 124 of file vtkPolyDataMapper.h.

int vtkPolyDataMapper::NumberOfSubPieces
protected

Definition at line 125 of file vtkPolyDataMapper.h.

int vtkPolyDataMapper::GhostLevel
protected

Definition at line 126 of file vtkPolyDataMapper.h.


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