#include <vtkSimple3DCirclesStrategy.h>
Places vertices on circles depending on the graph vertices hierarchy level. The source graph could be vtkDirectedAcyclicGraph or vtkDirectedGraph if MarkedStartPoints array was added. The algorithm collects the standalone points, too and take them to a separated circle. If method is FixedRadiusMethod, the radius of the circles will be equal. If method is FixedDistanceMethod, the distance beetwen the points on circles will be equal.
In first step initial points are searched. A point is initial, if its in degree equal zero and out degree is greater than zero (or marked by MarkedStartVertices and out degree is greater than zero). Independent vertices (in and out degree equal zero) are collected separatelly. In second step the hierarchical level is generated for every vertex. In third step the hierarchical order is generated. If a vertex has no hierarchical level and it is not independent, the graph has loop so the algorithm exit with error message. Finally the vertices positions are calculated by the hierarchical order and by the vertices hierarchy levels.
Definition at line 51 of file vtkSimple3DCirclesStrategy.h.
Public Types | |
enum | { FixedRadiusMethod = 0, FixedDistanceMethod = 1 } |
typedef vtkGraphLayoutStrategy | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetMethod (int) |
virtual int | GetMethod () |
virtual void | SetRadius (double) |
virtual double | GetRadius () |
virtual void | SetHeight (double) |
virtual double | GetHeight () |
virtual void | SetOrign (double, double, double) |
virtual void | SetOrign (double[3]) |
virtual double * | GetOrign () |
virtual void | GetOrign (double &, double &, double &) |
virtual void | GetOrign (double[3]) |
virtual void | SetDirection (double dx, double dy, double dz) |
virtual void | SetDirection (double d[3]) |
virtual double * | GetDirection () |
virtual void | GetDirection (double &, double &, double &) |
virtual void | GetDirection (double[3]) |
virtual void | SetMarkedStartVertices (vtkIntArray *_arg) |
virtual vtkIntArray * | GetMarkedStartVertices () |
virtual void | SetMarkedValue (int) |
virtual int | GetMarkedValue () |
virtual void | SetForceToUseUniversalStartPointsFinder (int) |
virtual int | GetForceToUseUniversalStartPointsFinder () |
virtual void | ForceToUseUniversalStartPointsFinderOn () |
virtual void | ForceToUseUniversalStartPointsFinderOff () |
virtual void | SetAutoHeight (int) |
virtual int | GetAutoHeight () |
virtual void | AutoHeightOn () |
virtual void | AutoHeightOff () |
virtual void | SetMinimumRadian (double) |
virtual double | GetMinimumRadian () |
virtual void | SetMinimumDegree (double degree) |
virtual double | GetMinimumDegree (void) |
virtual void | SetHierarchicalLayers (vtkIntArray *_arg) |
virtual vtkIntArray * | GetHierarchicalLayers () |
virtual void | SetHierarchicalOrder (vtkIdTypeArray *_arg) |
virtual vtkIdTypeArray * | GetHierarchicalOrder () |
virtual void | Layout (void) |
virtual void | SetGraph (vtkGraph *graph) |
Static Public Member Functions | |
static vtkSimple3DCirclesStrategy * | New () |
static int | IsTypeOf (const char *type) |
static vtkSimple3DCirclesStrategy * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkSimple3DCirclesStrategy (void) | |
virtual | ~vtkSimple3DCirclesStrategy (void) |
void | Transform (double Local[], double Global[]) |
Protected Attributes | |
double | Radius |
double | Height |
double | Orign [3] |
double | Direction [3] |
int | Method |
vtkIntArray * | MarkedStartVertices |
int | MarkedValue |
int | ForceToUseUniversalStartPointsFinder |
int | AutoHeight |
double | MinimumRadian |
vtkIntArray * | HierarchicalLayers |
vtkIdTypeArray * | HierarchicalOrder |
Reimplemented from vtkGraphLayoutStrategy.
Definition at line 55 of file vtkSimple3DCirclesStrategy.h.
anonymous enum |
Definition at line 59 of file vtkSimple3DCirclesStrategy.h.
vtkSimple3DCirclesStrategy::vtkSimple3DCirclesStrategy | ( | void | ) | [protected] |
virtual vtkSimple3DCirclesStrategy::~vtkSimple3DCirclesStrategy | ( | void | ) | [protected, virtual] |
static vtkSimple3DCirclesStrategy* vtkSimple3DCirclesStrategy::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkObject.
virtual const char* vtkSimple3DCirclesStrategy::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkGraphLayoutStrategy.
static int vtkSimple3DCirclesStrategy::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 vtkGraphLayoutStrategy.
virtual int vtkSimple3DCirclesStrategy::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 vtkGraphLayoutStrategy.
static vtkSimple3DCirclesStrategy* vtkSimple3DCirclesStrategy::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkGraphLayoutStrategy.
void vtkSimple3DCirclesStrategy::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 vtkGraphLayoutStrategy.
virtual void vtkSimple3DCirclesStrategy::SetMethod | ( | int | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual int vtkSimple3DCirclesStrategy::GetMethod | ( | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual void vtkSimple3DCirclesStrategy::SetRadius | ( | double | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual double vtkSimple3DCirclesStrategy::GetRadius | ( | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual void vtkSimple3DCirclesStrategy::SetHeight | ( | double | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual double vtkSimple3DCirclesStrategy::GetHeight | ( | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual void vtkSimple3DCirclesStrategy::SetOrign | ( | double | , | |
double | , | |||
double | ||||
) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual void vtkSimple3DCirclesStrategy::SetOrign | ( | double | [3] | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual double* vtkSimple3DCirclesStrategy::GetOrign | ( | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual void vtkSimple3DCirclesStrategy::GetOrign | ( | double & | , | |
double & | , | |||
double & | ||||
) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual void vtkSimple3DCirclesStrategy::GetOrign | ( | double | [3] | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual void vtkSimple3DCirclesStrategy::SetDirection | ( | double | dx, | |
double | dy, | |||
double | dz | |||
) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual void vtkSimple3DCirclesStrategy::SetDirection | ( | double | d[3] | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual double* vtkSimple3DCirclesStrategy::GetDirection | ( | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual void vtkSimple3DCirclesStrategy::GetDirection | ( | double & | , | |
double & | , | |||
double & | ||||
) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual void vtkSimple3DCirclesStrategy::GetDirection | ( | double | [3] | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual void vtkSimple3DCirclesStrategy::SetMarkedStartVertices | ( | vtkIntArray * | _arg | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual vtkIntArray* vtkSimple3DCirclesStrategy::GetMarkedStartVertices | ( | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual void vtkSimple3DCirclesStrategy::SetMarkedValue | ( | int | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual int vtkSimple3DCirclesStrategy::GetMarkedValue | ( | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual void vtkSimple3DCirclesStrategy::SetForceToUseUniversalStartPointsFinder | ( | int | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual int vtkSimple3DCirclesStrategy::GetForceToUseUniversalStartPointsFinder | ( | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual void vtkSimple3DCirclesStrategy::ForceToUseUniversalStartPointsFinderOn | ( | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual void vtkSimple3DCirclesStrategy::ForceToUseUniversalStartPointsFinderOff | ( | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual void vtkSimple3DCirclesStrategy::SetAutoHeight | ( | int | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual int vtkSimple3DCirclesStrategy::GetAutoHeight | ( | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual void vtkSimple3DCirclesStrategy::AutoHeightOn | ( | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual void vtkSimple3DCirclesStrategy::AutoHeightOff | ( | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual void vtkSimple3DCirclesStrategy::SetMinimumRadian | ( | double | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual double vtkSimple3DCirclesStrategy::GetMinimumRadian | ( | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual void vtkSimple3DCirclesStrategy::SetMinimumDegree | ( | double | degree | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual double vtkSimple3DCirclesStrategy::GetMinimumDegree | ( | void | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual void vtkSimple3DCirclesStrategy::SetHierarchicalLayers | ( | vtkIntArray * | _arg | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual vtkIntArray* vtkSimple3DCirclesStrategy::GetHierarchicalLayers | ( | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual void vtkSimple3DCirclesStrategy::SetHierarchicalOrder | ( | vtkIdTypeArray * | _arg | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual vtkIdTypeArray* vtkSimple3DCirclesStrategy::GetHierarchicalOrder | ( | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
virtual void vtkSimple3DCirclesStrategy::Layout | ( | void | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
Implements vtkGraphLayoutStrategy.
virtual void vtkSimple3DCirclesStrategy::SetGraph | ( | vtkGraph * | graph | ) | [virtual] |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
Reimplemented from vtkGraphLayoutStrategy.
void vtkSimple3DCirclesStrategy::Transform | ( | double | Local[], | |
double | Global[] | |||
) | [inline, protected] |
double vtkSimple3DCirclesStrategy::Radius [protected] |
Definition at line 145 of file vtkSimple3DCirclesStrategy.h.
double vtkSimple3DCirclesStrategy::Height [protected] |
Definition at line 146 of file vtkSimple3DCirclesStrategy.h.
double vtkSimple3DCirclesStrategy::Orign[3] [protected] |
Definition at line 147 of file vtkSimple3DCirclesStrategy.h.
double vtkSimple3DCirclesStrategy::Direction[3] [protected] |
Definition at line 148 of file vtkSimple3DCirclesStrategy.h.
int vtkSimple3DCirclesStrategy::Method [protected] |
Definition at line 149 of file vtkSimple3DCirclesStrategy.h.
Definition at line 150 of file vtkSimple3DCirclesStrategy.h.
int vtkSimple3DCirclesStrategy::MarkedValue [protected] |
Definition at line 151 of file vtkSimple3DCirclesStrategy.h.
int vtkSimple3DCirclesStrategy::ForceToUseUniversalStartPointsFinder [protected] |
Definition at line 152 of file vtkSimple3DCirclesStrategy.h.
int vtkSimple3DCirclesStrategy::AutoHeight [protected] |
Definition at line 153 of file vtkSimple3DCirclesStrategy.h.
double vtkSimple3DCirclesStrategy::MinimumRadian [protected] |
Definition at line 154 of file vtkSimple3DCirclesStrategy.h.
Definition at line 156 of file vtkSimple3DCirclesStrategy.h.
Definition at line 157 of file vtkSimple3DCirclesStrategy.h.