VTK
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkCompositePolyDataMapper2 Class Reference

mapper for composite dataset consisting of polygonal data. More...

#include <vtkCompositePolyDataMapper2.h>

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

List of all members.

Classes

class  RenderValue

Public Types

typedef vtkPainterPolyDataMapper Superclass
typedef
vtkGenericCompositePolyDataMapper2 
Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkCompositePolyDataMapper2NewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual bool GetIsOpaque ()
virtual int IsA (const char *type)
vtkCompositePolyDataMapper2NewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual void Render (vtkRenderer *ren, vtkActor *act)
virtual void RenderPiece (vtkRenderer *ren, vtkActor *act)
virtual void RenderPieceDraw (vtkRenderer *ren, vtkActor *act)
virtual void RenderEdges (vtkRenderer *ren, vtkActor *act)
void SetCompositeDataDisplayAttributes (vtkCompositeDataDisplayAttributes *attributes)
vtkCompositeDataDisplayAttributesGetCompositeDataDisplayAttributes ()
void SetBlockVisibility (unsigned int index, bool visible)
bool GetBlockVisibility (unsigned int index) const
void RemoveBlockVisibility (unsigned int index)
void RemoveBlockVisibilites ()
void SetBlockColor (unsigned int index, double color[3])
void SetBlockColor (unsigned int index, double r, double g, double b)
doubleGetBlockColor (unsigned int index)
void RemoveBlockColor (unsigned int index)
void RemoveBlockColors ()
void SetBlockOpacity (unsigned int index, double opacity)
double GetBlockOpacity (unsigned int index)
void RemoveBlockOpacity (unsigned int index)
void RemoveBlockOpacities ()

Static Public Member Functions

static
vtkCompositePolyDataMapper2
New ()
static int IsTypeOf (const char *type)
static
vtkCompositePolyDataMapper2
SafeDownCast (vtkObjectBase *o)
static
vtkCompositePolyDataMapper2
New ()
static int IsTypeOf (const char *type)
static
vtkCompositePolyDataMapper2
SafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkCompositePolyDataMapper2 ()
 ~vtkCompositePolyDataMapper2 ()
vtkExecutiveCreateDefaultExecutive ()
virtual int FillInputPortInformation (int port, vtkInformation *info)
virtual void ComputeBounds ()
virtual void UpdatePainterInformation ()
virtual vtkObjectBaseNewInstanceInternal () const
 vtkCompositePolyDataMapper2 ()
 ~vtkCompositePolyDataMapper2 ()
void FreeStructures ()
void BuildRenderValues (vtkRenderer *renderer, vtkActor *actor, vtkDataObject *dobj, unsigned int &flat_index, unsigned int &lastVertex, unsigned int &lastIndex, unsigned int &lastEdgeIndex)
virtual void BuildBufferObjects (vtkRenderer *ren, vtkActor *act)
virtual void AppendOneBufferObject (vtkRenderer *ren, vtkActor *act, vtkPolyData *pd, unsigned int flat_index)

Protected Attributes

vtkTimeStamp BoundsMTime
vtkSmartPointer
< vtkCompositeDataDisplayAttributes
CompositeAttributes
vtkPainterSelectionCompositePainter
std::vector< unsigned intVertexOffsets
std::vector< unsigned intIndexOffsets
std::vector< unsigned intIndexArray
std::vector< unsigned intEdgeIndexArray
std::vector< unsigned intEdgeIndexOffsets
unsigned int MaximumFlatIndex
std::vector< RenderValueRenderValues
vtkTimeStamp RenderValuesBuildTime
bool UseGeneric
vtkTimeStamp GenericTestTime

Detailed Description

mapper for composite dataset consisting of polygonal data.

mapper for composite dataset

vtkCompositePolyDataMapper2 is similar to vtkCompositePolyDataMapper except that instead of creating individual mapper for each block in the composite dataset, it iterates over the blocks internally.

Tests:
vtkCompositePolyDataMapper2 (Tests)

vtkCompositePolyDataMapper2 is similar to vtkGenericCompositePolyDataMapper2 but requires that its inputs all have the same properties (normals, tcoord, scalars, etc) It will only draw polys and it does not support edge flags. The advantage to using this class is that it generally should be faster

Events:
vtkCommand::StartEvent vtkCommand::EndEvent

Definition at line 36 of file vtkCompositePolyDataMapper2.h.


Member Typedef Documentation

Reimplemented from vtkPainterPolyDataMapper.

Definition at line 40 of file vtkCompositePolyDataMapper2.h.

Reimplemented from vtkPainterPolyDataMapper.

Definition at line 40 of file vtkCompositePolyDataMapper2.h.


Constructor & Destructor Documentation


Member Function Documentation

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

Reimplemented from vtkPainterPolyDataMapper.

static int vtkCompositePolyDataMapper2::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 vtkPainterPolyDataMapper.

virtual int vtkCompositePolyDataMapper2::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 vtkPainterPolyDataMapper.

Reimplemented from vtkPainterPolyDataMapper.

virtual vtkObjectBase* vtkCompositePolyDataMapper2::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkPainterPolyDataMapper.

Reimplemented from vtkPainterPolyDataMapper.

void vtkCompositePolyDataMapper2::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 vtkPainterPolyDataMapper.

virtual bool vtkCompositePolyDataMapper2::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 vtkPainterPolyDataMapper.

Set/get the composite data set attributes.

Reimplemented from vtkGenericCompositePolyDataMapper2.

Set/get the composite data set attributes.

Reimplemented from vtkGenericCompositePolyDataMapper2.

void vtkCompositePolyDataMapper2::SetBlockVisibility ( unsigned int  index,
bool  visible 
)

Set/get the visibility for a block given its flat index.

Reimplemented from vtkGenericCompositePolyDataMapper2.

bool vtkCompositePolyDataMapper2::GetBlockVisibility ( unsigned int  index) const

Set/get the visibility for a block given its flat index.

Reimplemented from vtkGenericCompositePolyDataMapper2.

Set/get the visibility for a block given its flat index.

Reimplemented from vtkGenericCompositePolyDataMapper2.

Set/get the visibility for a block given its flat index.

Reimplemented from vtkGenericCompositePolyDataMapper2.

void vtkCompositePolyDataMapper2::SetBlockColor ( unsigned int  index,
double  color[3] 
)

Set/get the color for a block given its flat index.

Reimplemented from vtkGenericCompositePolyDataMapper2.

void vtkCompositePolyDataMapper2::SetBlockColor ( unsigned int  index,
double  r,
double  g,
double  b 
) [inline]

Set/get the color for a block given its flat index.

Reimplemented from vtkGenericCompositePolyDataMapper2.

Definition at line 70 of file vtkCompositePolyDataMapper2.h.

Set/get the color for a block given its flat index.

Reimplemented from vtkGenericCompositePolyDataMapper2.

Set/get the color for a block given its flat index.

Reimplemented from vtkGenericCompositePolyDataMapper2.

Set/get the color for a block given its flat index.

Reimplemented from vtkGenericCompositePolyDataMapper2.

void vtkCompositePolyDataMapper2::SetBlockOpacity ( unsigned int  index,
double  opacity 
)

Set/get the opacity for a block given its flat index.

Reimplemented from vtkGenericCompositePolyDataMapper2.

Set/get the opacity for a block given its flat index.

Reimplemented from vtkGenericCompositePolyDataMapper2.

Set/get the opacity for a block given its flat index.

Reimplemented from vtkGenericCompositePolyDataMapper2.

Set/get the opacity for a block given its flat index.

Reimplemented from vtkGenericCompositePolyDataMapper2.

We need to override this method because the standard streaming demand driven pipeline is not what we want - we are expecting hierarchical data as input

Reimplemented from vtkGenericCompositePolyDataMapper2.

virtual int vtkCompositePolyDataMapper2::FillInputPortInformation ( int  port,
vtkInformation info 
) [protected, virtual]

Need to define the type of data handled by this mapper.

Reimplemented from vtkGenericCompositePolyDataMapper2.

virtual void vtkCompositePolyDataMapper2::ComputeBounds ( ) [protected, virtual]

Need to loop over the hierarchy to compute bounds

Reimplemented from vtkPainterPolyDataMapper.

virtual void vtkCompositePolyDataMapper2::UpdatePainterInformation ( ) [protected, virtual]

Called when the PainterInformation becomes obsolete. Overridden to pass CompositeDataDisplayAttributes to the painters.

Reimplemented from vtkPainterPolyDataMapper.

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

Reimplemented from vtkPainterPolyDataMapper.

static int vtkCompositePolyDataMapper2::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 vtkPainterPolyDataMapper.

virtual int vtkCompositePolyDataMapper2::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 vtkPainterPolyDataMapper.

Reimplemented from vtkPainterPolyDataMapper.

virtual vtkObjectBase* vtkCompositePolyDataMapper2::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkPainterPolyDataMapper.

Reimplemented from vtkPainterPolyDataMapper.

void vtkCompositePolyDataMapper2::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 vtkPainterPolyDataMapper.

virtual void vtkCompositePolyDataMapper2::Render ( vtkRenderer ren,
vtkActor act 
) [virtual]

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

Reimplemented from vtkPolyDataMapper.

virtual void vtkCompositePolyDataMapper2::RenderPiece ( vtkRenderer ren,
vtkActor act 
) [virtual]

Implemented by sub classes. Actual rendering is done here.

Reimplemented from vtkPainterPolyDataMapper.

virtual void vtkCompositePolyDataMapper2::RenderPieceDraw ( vtkRenderer ren,
vtkActor act 
) [virtual]

Implemented by sub classes. Actual rendering is done here.

Reimplemented from vtkOpenGLPolyDataMapper.

virtual void vtkCompositePolyDataMapper2::RenderEdges ( vtkRenderer ren,
vtkActor act 
) [virtual]

Implemented by sub classes. Actual rendering is done here.

Reimplemented from vtkOpenGLPolyDataMapper.

virtual void vtkCompositePolyDataMapper2::BuildBufferObjects ( vtkRenderer ren,
vtkActor act 
) [protected, virtual]

Build the VBO/IBO, called by UpdateBufferObjects

Reimplemented from vtkOpenGLPolyDataMapper.

virtual void vtkCompositePolyDataMapper2::AppendOneBufferObject ( vtkRenderer ren,
vtkActor act,
vtkPolyData pd,
unsigned int  flat_index 
) [protected, virtual]

Build the VBO/IBO, called by UpdateBufferObjects

void vtkCompositePolyDataMapper2::BuildRenderValues ( vtkRenderer renderer,
vtkActor actor,
vtkDataObject dobj,
unsigned int flat_index,
unsigned int lastVertex,
unsigned int lastIndex,
unsigned int lastEdgeIndex 
) [protected]

Member Data Documentation

Time stamp for computation of bounds.

Reimplemented from vtkGenericCompositePolyDataMapper2.

Definition at line 109 of file vtkCompositePolyDataMapper2.h.

Composite data set attributes.

Reimplemented from vtkGenericCompositePolyDataMapper2.

Definition at line 112 of file vtkCompositePolyDataMapper2.h.

Definition at line 114 of file vtkCompositePolyDataMapper2.h.

std::vector<unsigned int> vtkCompositePolyDataMapper2::VertexOffsets [protected]

Definition at line 61 of file vtkCompositePolyDataMapper2.h.

std::vector<unsigned int> vtkCompositePolyDataMapper2::IndexOffsets [protected]

Definition at line 62 of file vtkCompositePolyDataMapper2.h.

std::vector<unsigned int> vtkCompositePolyDataMapper2::IndexArray [protected]

Definition at line 63 of file vtkCompositePolyDataMapper2.h.

std::vector<unsigned int> vtkCompositePolyDataMapper2::EdgeIndexArray [protected]

Definition at line 64 of file vtkCompositePolyDataMapper2.h.

std::vector<unsigned int> vtkCompositePolyDataMapper2::EdgeIndexOffsets [protected]

Definition at line 65 of file vtkCompositePolyDataMapper2.h.

Definition at line 66 of file vtkCompositePolyDataMapper2.h.

Definition at line 83 of file vtkCompositePolyDataMapper2.h.

Definition at line 84 of file vtkCompositePolyDataMapper2.h.

Definition at line 86 of file vtkCompositePolyDataMapper2.h.

Definition at line 87 of file vtkCompositePolyDataMapper2.h.


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