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

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

#include <vtkGenericCompositePolyDataMapper2.h>

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

List of all members.

Classes

class  RenderBlockState

Public Types

typedef vtkOpenGLPolyDataMapper Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkGenericCompositePolyDataMapper2NewInstance () 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
vtkGenericCompositePolyDataMapper2
New ()
static int IsTypeOf (const char *type)
static
vtkGenericCompositePolyDataMapper2
SafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkGenericCompositePolyDataMapper2 ()
 ~vtkGenericCompositePolyDataMapper2 ()
vtkExecutiveCreateDefaultExecutive ()
virtual int FillInputPortInformation (int port, vtkInformation *info)
virtual void ComputeBounds ()
bool GetShaderInitialized (vtkShaderProgram *)
void SetShaderInitialized (vtkShaderProgram *, bool)
void CopyMapperValuesToHelper (vtkCompositeMapperHelper *helper)
void FreeGenericStructures ()
void RenderBlock (vtkRenderer *renderer, vtkActor *actor, vtkDataObject *dobj, unsigned int &flat_index)
virtual void RenderGeneric (vtkRenderer *ren, vtkActor *act)

Protected Attributes

vtkTimeStamp BoundsMTime
int CurrentFlatIndex
std::map< const
vtkShaderProgram *, bool > 
ShadersInitialized
std::map< const vtkDataSet
*, vtkCompositeMapperHelper * > 
Helpers
vtkTimeStamp HelperMTime
RenderBlockState BlockState
vtkSmartPointer
< vtkCompositeDataDisplayAttributes
CompositeAttributes

Friends

class vtkCompositeMapperHelper

Detailed Description

mapper for composite dataset consisting of polygonal data.

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

Definition at line 38 of file vtkGenericCompositePolyDataMapper2.h.


Member Typedef Documentation

Reimplemented from vtkOpenGLPolyDataMapper.

Reimplemented in vtkCompositePolyDataMapper2, and vtkCompositePolyDataMapper2.

Definition at line 42 of file vtkGenericCompositePolyDataMapper2.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 vtkOpenGLPolyDataMapper.

Reimplemented in vtkCompositePolyDataMapper2, and vtkCompositePolyDataMapper2.

static int vtkGenericCompositePolyDataMapper2::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 vtkOpenGLPolyDataMapper.

Reimplemented in vtkCompositePolyDataMapper2, and vtkCompositePolyDataMapper2.

virtual int vtkGenericCompositePolyDataMapper2::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 vtkOpenGLPolyDataMapper.

Reimplemented in vtkCompositePolyDataMapper2, and vtkCompositePolyDataMapper2.

void vtkGenericCompositePolyDataMapper2::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 vtkOpenGLPolyDataMapper.

Reimplemented in vtkCompositePolyDataMapper2, and vtkCompositePolyDataMapper2.

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

Reimplemented in vtkCompositePolyDataMapper2.

Set/get the composite data set attributes.

Reimplemented in vtkCompositePolyDataMapper2.

Set/get the composite data set attributes.

Reimplemented in vtkCompositePolyDataMapper2.

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

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

Reimplemented in vtkCompositePolyDataMapper2.

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

Reimplemented in vtkCompositePolyDataMapper2.

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

Reimplemented in vtkCompositePolyDataMapper2.

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

Reimplemented in vtkCompositePolyDataMapper2.

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

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

Reimplemented in vtkCompositePolyDataMapper2.

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

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

Reimplemented in vtkCompositePolyDataMapper2.

Definition at line 72 of file vtkGenericCompositePolyDataMapper2.h.

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

Reimplemented in vtkCompositePolyDataMapper2.

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

Reimplemented in vtkCompositePolyDataMapper2.

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

Reimplemented in vtkCompositePolyDataMapper2.

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

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

Reimplemented in vtkCompositePolyDataMapper2.

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

Reimplemented in vtkCompositePolyDataMapper2.

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

Reimplemented in vtkCompositePolyDataMapper2.

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

Reimplemented in vtkCompositePolyDataMapper2.

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.

Reimplemented in vtkCompositePolyDataMapper2.

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

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

Reimplemented from vtkPolyDataMapper.

Reimplemented in vtkCompositePolyDataMapper2.

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

Need to loop over the hierarchy to compute bounds

Reimplemented from vtkOpenGLPolyDataMapper.

Reimplemented in vtkCompositePolyDataMapper2.

void vtkGenericCompositePolyDataMapper2::RenderBlock ( vtkRenderer renderer,
vtkActor actor,
vtkDataObject dobj,
unsigned int flat_index 
) [protected]
virtual void vtkGenericCompositePolyDataMapper2::RenderGeneric ( vtkRenderer ren,
vtkActor act 
) [protected, virtual]

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


Friends And Related Function Documentation

friend class vtkCompositeMapperHelper [friend]

Definition at line 147 of file vtkGenericCompositePolyDataMapper2.h.


Member Data Documentation

Time stamp for computation of bounds.

Reimplemented in vtkCompositePolyDataMapper2.

Definition at line 107 of file vtkGenericCompositePolyDataMapper2.h.

Definition at line 110 of file vtkGenericCompositePolyDataMapper2.h.

Definition at line 111 of file vtkGenericCompositePolyDataMapper2.h.

Definition at line 112 of file vtkGenericCompositePolyDataMapper2.h.

Definition at line 113 of file vtkGenericCompositePolyDataMapper2.h.

Definition at line 135 of file vtkGenericCompositePolyDataMapper2.h.

Composite data set attributes.

Reimplemented in vtkCompositePolyDataMapper2.

Definition at line 145 of file vtkGenericCompositePolyDataMapper2.h.


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