vtkCompositePolyDataMapper2 Class Reference

#include <vtkCompositePolyDataMapper2.h>

Inheritance diagram for vtkCompositePolyDataMapper2:

Inheritance graph
[legend]
Collaboration diagram for vtkCompositePolyDataMapper2:

Collaboration graph
[legend]

List of all members.


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.

Events:
vtkCommand::StartEvent vtkCommand::EndEvent

Definition at line 32 of file vtkCompositePolyDataMapper2.h.


Public Types

typedef vtkPainterPolyDataMapper 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)
virtual void Render (vtkRenderer *ren, vtkActor *act)
double * GetBounds ()
void GetBounds (double bounds[6])
virtual void SetColorBlocks (int)
virtual int GetColorBlocks ()

Static Public Member Functions

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

Protected Member Functions

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

Protected Attributes

vtkTimeStamp BoundsMTime
int ColorBlocks

Member Typedef Documentation

Reimplemented from vtkPainterPolyDataMapper.

Definition at line 36 of file vtkCompositePolyDataMapper2.h.


Constructor & Destructor Documentation

vtkCompositePolyDataMapper2::vtkCompositePolyDataMapper2 (  )  [protected]

vtkCompositePolyDataMapper2::~vtkCompositePolyDataMapper2 (  )  [protected]


Member Function Documentation

static vtkCompositePolyDataMapper2* vtkCompositePolyDataMapper2::New (  )  [static]

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

Reimplemented from vtkPainterPolyDataMapper.

virtual const char* vtkCompositePolyDataMapper2::GetClassName (  )  [virtual]

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 vtkTypeRevisionMacro 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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkPainterPolyDataMapper.

static vtkCompositePolyDataMapper2* vtkCompositePolyDataMapper2::SafeDownCast ( vtkObject o  )  [static]

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::RenderPiece ( vtkRenderer ren,
vtkActor act 
) [virtual]

Implemented by sub classes. Actual rendering is done here.

Reimplemented from vtkPainterPolyDataMapper.

double* vtkCompositePolyDataMapper2::GetBounds (  )  [virtual]

Standard vtkProp method to get 3D bounds of a 3D prop

Reimplemented from vtkPainterPolyDataMapper.

void vtkCompositePolyDataMapper2::GetBounds ( double  bounds[6]  )  [inline, virtual]

Standard vtkProp method to get 3D bounds of a 3D prop

Reimplemented from vtkPainterPolyDataMapper.

Definition at line 45 of file vtkCompositePolyDataMapper2.h.

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

This calls RenderPiece (in a for loop is streaming is necessary). Basically a reimplementation for vtkPolyDataMapper::Render() since we don't want it to give up when vtkCompositeDataSet is encountered.

Reimplemented from vtkPolyDataMapper.

virtual void vtkCompositePolyDataMapper2::SetColorBlocks ( int   )  [virtual]

When set, each block is colored with a different color. Note that scalar coloring will be ignored.

virtual int vtkCompositePolyDataMapper2::GetColorBlocks (  )  [virtual]

When set, each block is colored with a different color. Note that scalar coloring will be ignored.

vtkExecutive* vtkCompositePolyDataMapper2::CreateDefaultExecutive (  )  [protected, virtual]

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.

void vtkCompositePolyDataMapper2::ComputeBounds (  )  [protected]

Need to loop over the hierarchy to compute bounds

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

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

Reimplemented from vtkPainterPolyDataMapper.


Member Data Documentation

Time stamp for computation of bounds.

Definition at line 82 of file vtkCompositePolyDataMapper2.h.

Definition at line 84 of file vtkCompositePolyDataMapper2.h.


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

Generated on Wed Jun 3 18:57:48 2009 for VTK by  doxygen 1.5.6