VTK
|
places vertices on circles in 3D More...
#include <vtkSimple3DCirclesStrategy.h>
Public Types | |
enum | { FixedRadiusMethod = 0, FixedDistanceMethod = 1 } |
typedef vtkGraphLayoutStrategy | Superclass |
![]() | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkSimple3DCirclesStrategy * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Layout (void) |
virtual void | SetMethod (int) |
virtual int | GetMethod () |
virtual void | SetRadius (double) |
virtual double | GetRadius () |
virtual void | SetHeight (double) |
virtual double | GetHeight () |
virtual void | SetOrigin (double, double, double) |
virtual void | SetOrigin (double[3]) |
virtual double * | GetOrigin () |
virtual void | GetOrigin (double &, double &, double &) |
virtual void | GetOrigin (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 (vtkAbstractArray *_arg) |
virtual vtkAbstractArray * | GetMarkedStartVertices () |
virtual void | SetMarkedValue (vtkVariant _arg) |
virtual vtkVariant | GetMarkedValue (void) |
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 () |
![]() | |
vtkGraphLayoutStrategy * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Initialize () |
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 vtkSimple3DCirclesStrategy * | New () |
static int | IsTypeOf (const char *type) |
static vtkSimple3DCirclesStrategy * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkGraphLayoutStrategy * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
void | Transform (double Local[], double Global[]) |
![]() | |
vtkGraphLayoutStrategy () | |
~vtkGraphLayoutStrategy () | |
Protected Attributes | |
double | Radius |
double | Height |
double | Origin [3] |
double | Direction [3] |
int | Method |
vtkAbstractArray * | MarkedStartVertices |
vtkVariant | MarkedValue |
int | ForceToUseUniversalStartPointsFinder |
int | AutoHeight |
double | MinimumRadian |
vtkIntArray * | HierarchicalLayers |
vtkIdTypeArray * | HierarchicalOrder |
![]() | |
vtkGraph * | Graph |
char * | EdgeWeightField |
bool | WeightEdges |
virtual void | SetGraph (vtkGraph *graph) |
vtkSimple3DCirclesStrategy (void) | |
virtual | ~vtkSimple3DCirclesStrategy (void) |
places vertices on circles in 3D
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 54 of file vtkSimple3DCirclesStrategy.h.
Definition at line 58 of file vtkSimple3DCirclesStrategy.h.
anonymous enum |
Enumerator | |
---|---|
FixedRadiusMethod | |
FixedDistanceMethod |
Definition at line 62 of file vtkSimple3DCirclesStrategy.h.
|
protected |
Set graph (warning: HierarchicalOrder and HierarchicalLayers will set to zero. These reference counts will be decreased!)
|
protectedvirtual |
Set graph (warning: HierarchicalOrder and HierarchicalLayers will set to zero. These reference counts will be decreased!)
|
static |
|
static |
|
virtual |
Reimplemented from vtkGraphLayoutStrategy.
|
static |
|
protectedvirtual |
Reimplemented from vtkGraphLayoutStrategy.
vtkSimple3DCirclesStrategy* vtkSimple3DCirclesStrategy::NewInstance | ( | ) | const |
void vtkSimple3DCirclesStrategy::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
virtual |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
|
virtual |
Set or get cicrle generating method (FixedRadiusMethod/FixedDistanceMethod). Default is FixedRadiusMethod.
|
virtual |
If Method is FixedRadiusMethod: Set or get the radius of the circles. If Method is FixedDistanceMethod: Set or get the distance of the points in the circle.
|
virtual |
If Method is FixedRadiusMethod: Set or get the radius of the circles. If Method is FixedDistanceMethod: Set or get the distance of the points in the circle.
|
virtual |
Set or get the vertical (local z) distance between the circles. If AutoHeight is on, this is the minimal height between the circle layers
|
virtual |
Set or get the vertical (local z) distance between the circles. If AutoHeight is on, this is the minimal height between the circle layers
|
virtual |
Set or get the origin of the geometry. This is the center of the first circle. SetOrigin(x,y,z)
|
virtual |
Set or get the origin of the geometry. This is the center of the first circle. SetOrigin(x,y,z)
|
virtual |
Set or get the origin of the geometry. This is the center of the first circle. SetOrigin(x,y,z)
|
virtual |
Set or get the origin of the geometry. This is the center of the first circle. SetOrigin(x,y,z)
|
virtual |
Set or get the origin of the geometry. This is the center of the first circle. SetOrigin(x,y,z)
|
virtual |
Set or get the normal vector of the circles plain. The height is growing in this direction. The direction must not be zero vector. The default vector is (0.0,0.0,1.0)
|
virtual |
Set or get the normal vector of the circles plain. The height is growing in this direction. The direction must not be zero vector. The default vector is (0.0,0.0,1.0)
|
virtual |
Set or get the normal vector of the circles plain. The height is growing in this direction. The direction must not be zero vector. The default vector is (0.0,0.0,1.0)
|
virtual |
Set or get the normal vector of the circles plain. The height is growing in this direction. The direction must not be zero vector. The default vector is (0.0,0.0,1.0)
|
virtual |
Set or get the normal vector of the circles plain. The height is growing in this direction. The direction must not be zero vector. The default vector is (0.0,0.0,1.0)
|
virtual |
Set or get initial vertices. If MarkedStartVertices is added, loop is accepted in the graph. (If all of the loop start vertices are marked in MarkedStartVertices array.) MarkedStartVertices size must be equal with the number of the vertices in the graph. Start vertices must be marked by MarkedValue. (E.g.: if MarkedValue=3 and MarkedStartPoints is { 0, 3, 5, 3 }, the start points ids will be {1,3}.) )
|
virtual |
Set or get initial vertices. If MarkedStartVertices is added, loop is accepted in the graph. (If all of the loop start vertices are marked in MarkedStartVertices array.) MarkedStartVertices size must be equal with the number of the vertices in the graph. Start vertices must be marked by MarkedValue. (E.g.: if MarkedValue=3 and MarkedStartPoints is { 0, 3, 5, 3 }, the start points ids will be {1,3}.) )
|
virtual |
Set or get MarkedValue. See: MarkedStartVertices.
|
virtual |
Set or get MarkedValue. See: MarkedStartVertices.
|
virtual |
Set or get ForceToUseUniversalStartPointsFinder. If ForceToUseUniversalStartPointsFinder is true, MarkedStartVertices won't be used. In this case the input graph must be vtkDirectedAcyclicGraph (Defualt: false).
|
virtual |
Set or get ForceToUseUniversalStartPointsFinder. If ForceToUseUniversalStartPointsFinder is true, MarkedStartVertices won't be used. In this case the input graph must be vtkDirectedAcyclicGraph (Defualt: false).
|
virtual |
Set or get ForceToUseUniversalStartPointsFinder. If ForceToUseUniversalStartPointsFinder is true, MarkedStartVertices won't be used. In this case the input graph must be vtkDirectedAcyclicGraph (Defualt: false).
|
virtual |
Set or get ForceToUseUniversalStartPointsFinder. If ForceToUseUniversalStartPointsFinder is true, MarkedStartVertices won't be used. In this case the input graph must be vtkDirectedAcyclicGraph (Defualt: false).
|
virtual |
Set or get auto height (Default: false). If AutoHeight is true, (r(i+1) - r(i-1))/Height will be smaller than tan(MinimumRadian). If you want equal distances and parallel circles, you should turn off AutoHeight.
|
virtual |
Set or get auto height (Default: false). If AutoHeight is true, (r(i+1) - r(i-1))/Height will be smaller than tan(MinimumRadian). If you want equal distances and parallel circles, you should turn off AutoHeight.
|
virtual |
Set or get auto height (Default: false). If AutoHeight is true, (r(i+1) - r(i-1))/Height will be smaller than tan(MinimumRadian). If you want equal distances and parallel circles, you should turn off AutoHeight.
|
virtual |
Set or get auto height (Default: false). If AutoHeight is true, (r(i+1) - r(i-1))/Height will be smaller than tan(MinimumRadian). If you want equal distances and parallel circles, you should turn off AutoHeight.
|
virtual |
Set or get minimum radian (used by auto height).
|
virtual |
Set or get minimum radian (used by auto height).
|
virtual |
Set or get minimum degree (used by auto height). There is no separated minimum degree, so minimum radian will be changed.
|
virtual |
Set or get minimum degree (used by auto height). There is no separated minimum degree, so minimum radian will be changed.
|
virtual |
Set or get hierarchical layers id by vertices (An usual vertex's layer id is greater or equal to zero. If a vertex is standalone, its layer id is -2.) If no HierarchicalLayers array is defined, vtkSimple3DCirclesStrategy will generate it automatically (default).
|
virtual |
Set or get hierarchical layers id by vertices (An usual vertex's layer id is greater or equal to zero. If a vertex is standalone, its layer id is -2.) If no HierarchicalLayers array is defined, vtkSimple3DCirclesStrategy will generate it automatically (default).
|
virtual |
Set or get hierarchical ordering of vertices (The array starts from the first vertex's id. All id must be greater or equal to zero!) If no HierarchicalOrder is defined, vtkSimple3DCirclesStrategy will generate it automatically (default).
|
virtual |
Set or get hierarchical ordering of vertices (The array starts from the first vertex's id. All id must be greater or equal to zero!) If no HierarchicalOrder is defined, vtkSimple3DCirclesStrategy will generate it automatically (default).
|
virtual |
Standard layout method
Implements vtkGraphLayoutStrategy.
|
virtual |
Set graph (warning: HierarchicalOrder and HierarchicalLayers will set to zero. These reference counts will be decreased!)
Reimplemented from vtkGraphLayoutStrategy.
|
inlineprotected |
|
protected |
Definition at line 176 of file vtkSimple3DCirclesStrategy.h.
|
protected |
Definition at line 177 of file vtkSimple3DCirclesStrategy.h.
|
protected |
Definition at line 178 of file vtkSimple3DCirclesStrategy.h.
|
protected |
Definition at line 179 of file vtkSimple3DCirclesStrategy.h.
|
protected |
Definition at line 180 of file vtkSimple3DCirclesStrategy.h.
|
protected |
Definition at line 181 of file vtkSimple3DCirclesStrategy.h.
|
protected |
Definition at line 182 of file vtkSimple3DCirclesStrategy.h.
|
protected |
Definition at line 183 of file vtkSimple3DCirclesStrategy.h.
|
protected |
Definition at line 184 of file vtkSimple3DCirclesStrategy.h.
|
protected |
Definition at line 185 of file vtkSimple3DCirclesStrategy.h.
|
protected |
Definition at line 187 of file vtkSimple3DCirclesStrategy.h.
|
protected |
Definition at line 188 of file vtkSimple3DCirclesStrategy.h.