VTK
|
abstract superclass for all graph layout strategies More...
#include <vtkGraphLayoutStrategy.h>
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkGraphLayoutStrategy * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetGraph (vtkGraph *graph) |
virtual void | Initialize () |
virtual void | Layout ()=0 |
virtual int | IsLayoutComplete () |
virtual void | SetWeightEdges (bool state) |
virtual bool | GetWeightEdges () |
virtual void | SetEdgeWeightField (const char *field) |
virtual char * | GetEdgeWeightField () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkGraphLayoutStrategy * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkGraphLayoutStrategy () | |
~vtkGraphLayoutStrategy () | |
Protected Attributes | |
vtkGraph * | Graph |
char * | EdgeWeightField |
bool | WeightEdges |
abstract superclass for all graph layout strategies
All graph layouts should subclass from this class. vtkGraphLayoutStrategy works as a plug-in to the vtkGraphLayout algorithm. The Layout() function should perform some reasonable "chunk" of the layout. This allows the user to be able to see the progress of the layout. Use IsLayoutComplete() to tell the user when there is no more layout to perform.
Definition at line 44 of file vtkGraphLayoutStrategy.h.
typedef vtkObject vtkGraphLayoutStrategy::Superclass |
Definition at line 47 of file vtkGraphLayoutStrategy.h.
|
protected |
|
protected |
|
static |
|
virtual |
Reimplemented in vtkSpanTreeLayoutStrategy, vtkConeLayoutStrategy, vtkFast2DLayoutStrategy, vtkTreeLayoutStrategy, vtkConstrained2DLayoutStrategy, vtkSimple3DCirclesStrategy, vtkSimple2DLayoutStrategy, vtkCommunity2DLayoutStrategy, vtkAttributeClustering2DLayoutStrategy, vtkClustering2DLayoutStrategy, vtkCosmicTreeLayoutStrategy, vtkForceDirectedLayoutStrategy, vtkRandomLayoutStrategy, vtkPassThroughLayoutStrategy, vtkCircularLayoutStrategy, vtkAssignCoordinatesLayoutStrategy, and vtkTreeOrbitLayoutStrategy.
|
static |
|
protectedvirtual |
Reimplemented in vtkSpanTreeLayoutStrategy, vtkConeLayoutStrategy, vtkFast2DLayoutStrategy, vtkTreeLayoutStrategy, vtkConstrained2DLayoutStrategy, vtkSimple3DCirclesStrategy, vtkSimple2DLayoutStrategy, vtkCommunity2DLayoutStrategy, vtkAttributeClustering2DLayoutStrategy, vtkClustering2DLayoutStrategy, vtkCosmicTreeLayoutStrategy, vtkForceDirectedLayoutStrategy, vtkRandomLayoutStrategy, vtkPassThroughLayoutStrategy, vtkCircularLayoutStrategy, vtkAssignCoordinatesLayoutStrategy, and vtkTreeOrbitLayoutStrategy.
vtkGraphLayoutStrategy* vtkGraphLayoutStrategy::NewInstance | ( | ) | const |
void vtkGraphLayoutStrategy::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
virtual |
Setting the graph for the layout strategy
Reimplemented in vtkSimple3DCirclesStrategy, and vtkRandomLayoutStrategy.
|
inlinevirtual |
This method allows the layout strategy to do initialization of data structures or whatever else it might want to do.
Reimplemented in vtkForceDirectedLayoutStrategy, vtkSimple2DLayoutStrategy, vtkAttributeClustering2DLayoutStrategy, vtkConstrained2DLayoutStrategy, vtkFast2DLayoutStrategy, vtkCommunity2DLayoutStrategy, vtkClustering2DLayoutStrategy, and vtkPassThroughLayoutStrategy.
Definition at line 55 of file vtkGraphLayoutStrategy.h.
|
pure virtual |
This is the layout method where the graph that was set in SetGraph() is laid out. The method can either entirely layout the graph or iteratively lay out the graph. If you have an iterative layout please implement the IsLayoutComplete() method.
Implemented in vtkSimple3DCirclesStrategy, vtkForceDirectedLayoutStrategy, vtkSimple2DLayoutStrategy, vtkAttributeClustering2DLayoutStrategy, vtkConstrained2DLayoutStrategy, vtkFast2DLayoutStrategy, vtkCommunity2DLayoutStrategy, vtkClustering2DLayoutStrategy, vtkConeLayoutStrategy, vtkSpanTreeLayoutStrategy, vtkRandomLayoutStrategy, vtkTreeLayoutStrategy, vtkAssignCoordinatesLayoutStrategy, vtkPassThroughLayoutStrategy, vtkCosmicTreeLayoutStrategy, vtkCircularLayoutStrategy, and vtkTreeOrbitLayoutStrategy.
|
inlinevirtual |
If your concrete class is iterative than you should overload IsLayoutComplete() otherwise it simply returns 1 by default;
Reimplemented in vtkForceDirectedLayoutStrategy, vtkSimple2DLayoutStrategy, vtkAttributeClustering2DLayoutStrategy, vtkConstrained2DLayoutStrategy, vtkFast2DLayoutStrategy, vtkCommunity2DLayoutStrategy, vtkClustering2DLayoutStrategy, and vtkPassThroughLayoutStrategy.
Definition at line 65 of file vtkGraphLayoutStrategy.h.
|
virtual |
Whether to use edge weights in the layout or not.
|
virtual |
Whether to use edge weights in the layout or not.
|
virtual |
Set/Get the field to use for the edge weights.
|
virtual |
Set/Get the field to use for the edge weights.
|
protected |
Definition at line 83 of file vtkGraphLayoutStrategy.h.
|
protected |
Definition at line 84 of file vtkGraphLayoutStrategy.h.
|
protected |
Definition at line 85 of file vtkGraphLayoutStrategy.h.