vtkProcessIdScalars Class Reference

#include <vtkProcessIdScalars.h>

Inheritance diagram for vtkProcessIdScalars:

Inheritance graph
[legend]
Collaboration diagram for vtkProcessIdScalars:

Collaboration graph
[legend]

List of all members.


Detailed Description

Sets cell or point scalars to the processor rank.

vtkProcessIdScalars is meant to display which processor owns which cells and points. It is useful for visualizing the partitioning for streaming or distributed pipelines.

See also:
vtkPolyDataStreamer

Definition at line 36 of file vtkProcessIdScalars.h.


Public Types

typedef vtkDataSetAlgorithm Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetRandomMode (int)
virtual int GetRandomMode ()
virtual void RandomModeOn ()
virtual void RandomModeOff ()
void SetScalarModeToCellData ()
void SetScalarModeToPointData ()
int GetScalarMode ()
virtual void SetController (vtkMultiProcessController *)
virtual vtkMultiProcessControllerGetController ()

Static Public Member Functions

static vtkProcessIdScalarsNew ()
static int IsTypeOf (const char *type)
static vtkProcessIdScalarsSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkProcessIdScalars ()
 ~vtkProcessIdScalars ()
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkIntArrayMakeProcessIdScalars (int piece, vtkIdType numScalars)
vtkFloatArrayMakeRandomScalars (int piece, vtkIdType numScalars)
virtual void SetCellScalarsFlag (int)

Protected Attributes

int CellScalarsFlag
int RandomMode
vtkMultiProcessControllerController

Member Typedef Documentation

Reimplemented from vtkDataSetAlgorithm.

Definition at line 41 of file vtkProcessIdScalars.h.


Constructor & Destructor Documentation

vtkProcessIdScalars::vtkProcessIdScalars (  )  [protected]

vtkProcessIdScalars::~vtkProcessIdScalars (  )  [protected]


Member Function Documentation

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

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

Reimplemented from vtkDataSetAlgorithm.

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

Reimplemented from vtkDataSetAlgorithm.

static int vtkProcessIdScalars::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 vtkDataSetAlgorithm.

virtual int vtkProcessIdScalars::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 vtkDataSetAlgorithm.

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

Reimplemented from vtkDataSetAlgorithm.

void vtkProcessIdScalars::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 vtkDataSetAlgorithm.

void vtkProcessIdScalars::SetScalarModeToCellData (  )  [inline]

Option to centerate cell scalars of points scalars. Default is point scalars.

Definition at line 47 of file vtkProcessIdScalars.h.

void vtkProcessIdScalars::SetScalarModeToPointData (  )  [inline]

Option to centerate cell scalars of points scalars. Default is point scalars.

Definition at line 48 of file vtkProcessIdScalars.h.

int vtkProcessIdScalars::GetScalarMode (  )  [inline]

Option to centerate cell scalars of points scalars. Default is point scalars.

Definition at line 49 of file vtkProcessIdScalars.h.

virtual void vtkProcessIdScalars::SetRandomMode ( int   )  [virtual]

virtual int vtkProcessIdScalars::GetRandomMode (  )  [virtual]

virtual void vtkProcessIdScalars::RandomModeOn (  )  [virtual]

virtual void vtkProcessIdScalars::RandomModeOff (  )  [virtual]

virtual void vtkProcessIdScalars::SetController ( vtkMultiProcessController  )  [virtual]

By defualt this filter uses the global controller, but this method can be used to set another instead.

virtual vtkMultiProcessController* vtkProcessIdScalars::GetController (  )  [virtual]

By defualt this filter uses the global controller, but this method can be used to set another instead.

int vtkProcessIdScalars::RequestData ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
) [protected, virtual]

This is called within ProcessRequest when a request asks the algorithm to do its work. This is the method you should override to do whatever the algorithm is designed to do. This happens during the fourth pass in the pipeline execution process.

Reimplemented from vtkDataSetAlgorithm.

vtkIntArray* vtkProcessIdScalars::MakeProcessIdScalars ( int  piece,
vtkIdType  numScalars 
) [protected]

vtkFloatArray* vtkProcessIdScalars::MakeRandomScalars ( int  piece,
vtkIdType  numScalars 
) [protected]

virtual void vtkProcessIdScalars::SetCellScalarsFlag ( int   )  [protected, virtual]


Member Data Documentation

Definition at line 79 of file vtkProcessIdScalars.h.

Definition at line 81 of file vtkProcessIdScalars.h.

Definition at line 83 of file vtkProcessIdScalars.h.


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

Generated on Wed Aug 24 11:58:05 2011 for VTK by  doxygen 1.5.6