VTK
|
places vertices on circles in 3D More...
#include <vtkSimple3DCirclesStrategy.h>
Public Types | |
enum | { FixedRadiusMethod = 0, FixedDistanceMethod = 1 } |
typedef vtkGraphLayoutStrategy | Superclass |
![]() | |
typedef vtkObject | Superclass |
![]() | |
typedef vtkObjectBase | 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 |
virtual void | Initialize () |
virtual int | IsLayoutComplete () |
virtual void | SetWeightEdges (bool state) |
virtual bool | GetWeightEdges () |
virtual void | SetEdgeWeightField (const char *field) |
virtual char * | GetEdgeWeightField () |
![]() | |
vtkObject * | NewInstance () const |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
![]() | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
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) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObjectBase *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
![]() | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
void | Transform (double Local[], double Global[]) |
![]() | |
vtkGraphLayoutStrategy () | |
~vtkGraphLayoutStrategy () | |
![]() | |
vtkObject () | |
virtual | ~vtkObject () |
virtual void | RegisterInternal (vtkObjectBase *, int check) |
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
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 |
![]() | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
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 |
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 |
|
protectedvirtual |
Reimplemented from vtkGraphLayoutStrategy.
vtkSimple3DCirclesStrategy* vtkSimple3DCirclesStrategy::NewInstance | ( | ) | const |
|
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 |
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
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)
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)
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)
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.
|
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.