VTK
|
Compute a vertex coloring for a distributed, undirected vtkGraph, where each vertex has a color distinct from the colors of its adjacent vertices. More...
#include <vtkPBGLVertexColoring.h>
Public Types | |
typedef vtkGraphAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkPBGLVertexColoring * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetBlockSize (vtkIdType) |
virtual vtkIdType | GetBlockSize () |
virtual void | SetColorArrayName (const char *) |
Static Public Member Functions | |
static vtkPBGLVertexColoring * | New () |
static int | IsTypeOf (const char *type) |
static vtkPBGLVertexColoring * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkPBGLVertexColoring () | |
~vtkPBGLVertexColoring () | |
virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
virtual int | FillInputPortInformation (int port, vtkInformation *info) |
virtual int | FillOutputPortInformation (int port, vtkInformation *info) |
Compute a vertex coloring for a distributed, undirected vtkGraph, where each vertex has a color distinct from the colors of its adjacent vertices.
This VTK class uses the Parallel BGL's implementation of Boman et al's parallel vertex coloring algorithm.
Definition at line 44 of file vtkPBGLVertexColoring.h.
Reimplemented from vtkGraphAlgorithm.
Definition at line 48 of file vtkPBGLVertexColoring.h.
vtkPBGLVertexColoring::vtkPBGLVertexColoring | ( | ) | [protected] |
vtkPBGLVertexColoring::~vtkPBGLVertexColoring | ( | ) | [protected] |
static vtkPBGLVertexColoring* vtkPBGLVertexColoring::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkGraphAlgorithm.
static int vtkPBGLVertexColoring::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 vtkGraphAlgorithm.
virtual int vtkPBGLVertexColoring::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 vtkGraphAlgorithm.
static vtkPBGLVertexColoring* vtkPBGLVertexColoring::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkGraphAlgorithm.
virtual vtkObjectBase* vtkPBGLVertexColoring::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkGraphAlgorithm.
Reimplemented from vtkGraphAlgorithm.
void vtkPBGLVertexColoring::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 vtkGraphAlgorithm.
virtual void vtkPBGLVertexColoring::SetBlockSize | ( | vtkIdType | ) | [virtual] |
Sets the block size of the algorithm, which is the number of vertices whose colors will be assigned before the processes resynchronize.
virtual vtkIdType vtkPBGLVertexColoring::GetBlockSize | ( | ) | [virtual] |
Retrieve the block size of the algorithm.
virtual void vtkPBGLVertexColoring::SetColorArrayName | ( | const char * | ) | [virtual] |
Set the name of the vertex color output array, which contains the color of each vertex (a non-negative value). If no color array name is set then the name 'Color' is used.
virtual int vtkPBGLVertexColoring::RequestData | ( | vtkInformation * | request, |
vtkInformationVector ** | inputVector, | ||
vtkInformationVector * | outputVector | ||
) | [protected, virtual] |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkGraphAlgorithm.
virtual int vtkPBGLVertexColoring::FillInputPortInformation | ( | int | port, |
vtkInformation * | info | ||
) | [protected, virtual] |
Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.
Reimplemented from vtkGraphAlgorithm.
virtual int vtkPBGLVertexColoring::FillOutputPortInformation | ( | int | port, |
vtkInformation * | info | ||
) | [protected, virtual] |
Fill the output port information objects for this algorithm. This is invoked by the first call to GetOutputPortInformation for each port so subclasses can specify what they can handle.
Reimplemented from vtkGraphAlgorithm.