VTK
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.

Public Types

typedef vtkPainterPolyDataMapper Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkCompositePolyDataMapper2NewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual bool GetIsOpaque ()
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)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkCompositePolyDataMapper2 ()
 ~vtkCompositePolyDataMapper2 ()
vtkExecutiveCreateDefaultExecutive ()
virtual int FillInputPortInformation (int port, vtkInformation *info)
virtual void ComputeBounds ()
virtual void UpdatePainterInformation ()

Protected Attributes

vtkTimeStamp BoundsMTime
vtkSmartPointer
< vtkCompositeDataDisplayAttributes
CompositeAttributes
vtkPainterSelectionCompositePainter

Detailed Description

mapper for composite dataset consisting of polygonal data.

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)

Definition at line 36 of file vtkCompositePolyDataMapper2.h.


Member Typedef Documentation

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.

Set/get the composite data set attributes.

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

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

bool vtkCompositePolyDataMapper2::GetBlockVisibility ( unsigned int  index) const

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

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

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

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

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

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

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

Definition at line 70 of file vtkCompositePolyDataMapper2.h.

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

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

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

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

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

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

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

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

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 vtkAlgorithm.

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

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

Reimplemented from vtkPolyDataMapper.

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.


Member Data Documentation

Time stamp for computation of bounds.

Definition at line 109 of file vtkCompositePolyDataMapper2.h.

Composite data set attributes.

Definition at line 112 of file vtkCompositePolyDataMapper2.h.

Definition at line 114 of file vtkCompositePolyDataMapper2.h.


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