|
virtual vtkTypeBool | IsA (const char *type) |
| Return 1 if this class is the same type of (or a subclass of) the named class. More...
|
|
vtkSimple3DCirclesStrategy * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) override |
| Methods invoked by print to print information about the object including superclasses. More...
|
|
virtual void | SetMethod (int) |
| Set or get circle generating method (FixedRadiusMethod/FixedDistanceMethod). More...
|
|
virtual int | GetMethod () |
|
virtual void | SetRadius (double) |
| If Method is FixedRadiusMethod: Set or get the radius of the circles. More...
|
|
virtual double | GetRadius () |
|
virtual void | SetHeight (double) |
| Set or get the vertical (local z) distance between the circles. More...
|
|
virtual double | GetHeight () |
|
virtual void | SetOrigin (double, double, double) |
| Set or get the origin of the geometry. More...
|
|
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) |
| Set or get the normal vector of the circles plain. More...
|
|
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) |
| Set or get initial vertices. More...
|
|
virtual vtkAbstractArray * | GetMarkedStartVertices () |
|
virtual void | SetMarkedValue (vtkVariant _arg) |
| Set or get MarkedValue. More...
|
|
virtual vtkVariant | GetMarkedValue (void) |
|
virtual void | SetForceToUseUniversalStartPointsFinder (vtkTypeBool) |
| Set or get ForceToUseUniversalStartPointsFinder. More...
|
|
virtual vtkTypeBool | GetForceToUseUniversalStartPointsFinder () |
|
virtual void | ForceToUseUniversalStartPointsFinderOn () |
|
virtual void | ForceToUseUniversalStartPointsFinderOff () |
|
virtual void | SetAutoHeight (vtkTypeBool) |
| Set or get auto height (Default: false). More...
|
|
virtual vtkTypeBool | GetAutoHeight () |
|
virtual void | AutoHeightOn () |
|
virtual void | AutoHeightOff () |
|
virtual void | SetMinimumRadian (double) |
| Set or get minimum radian (used by auto height). More...
|
|
virtual double | GetMinimumRadian () |
|
virtual void | SetMinimumDegree (double degree) |
| Set or get minimum degree (used by auto height). More...
|
|
virtual double | GetMinimumDegree (void) |
|
virtual void | SetHierarchicalLayers (vtkIntArray *_arg) |
| Set or get hierarchical layers id by vertices (An usual vertex's layer id is greater or equal to zero. More...
|
|
virtual vtkIntArray * | GetHierarchicalLayers () |
|
virtual void | SetHierarchicalOrder (vtkIdTypeArray *_arg) |
| Set or get hierarchical ordering of vertices (The array starts from the first vertex's id. More...
|
|
virtual vtkIdTypeArray * | GetHierarchicalOrder () |
|
void | Layout (void) override |
| Standard layout method. More...
|
|
void | SetGraph (vtkGraph *graph) override |
| Set graph (warning: HierarchicalOrder and HierarchicalLayers will set to zero. More...
|
|
vtkGraphLayoutStrategy * | NewInstance () const |
|
virtual void | Initialize () |
| This method allows the layout strategy to do initialization of data structures or whatever else it might want to do. More...
|
|
virtual int | IsLayoutComplete () |
| If your concrete class is iterative than you should overload IsLayoutComplete() otherwise it simply returns 1 by default;. More...
|
|
virtual void | SetWeightEdges (bool state) |
| Whether to use edge weights in the layout or not. More...
|
|
virtual bool | GetWeightEdges () |
|
virtual void | SetEdgeWeightField (const char *field) |
| Set/Get the field to use for the edge weights. More...
|
|
virtual char * | GetEdgeWeightField () |
|
| vtkBaseTypeMacro (vtkObject, vtkObjectBase) |
|
virtual void | DebugOn () |
| Turn debugging output on. More...
|
|
virtual void | DebugOff () |
| Turn debugging output off. More...
|
|
bool | GetDebug () |
| Get the value of the debug flag. More...
|
|
void | SetDebug (bool debugFlag) |
| Set the value of the debug flag. More...
|
|
virtual void | Modified () |
| Update the modification time for this object. More...
|
|
virtual vtkMTimeType | GetMTime () |
| Return this object's modified time. More...
|
|
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
|
|
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 *) |
|
vtkTypeBool | HasObserver (unsigned long event, vtkCommand *) |
|
vtkTypeBool | HasObserver (const char *event, vtkCommand *) |
|
void | RemoveObserver (unsigned long tag) |
|
void | RemoveObservers (unsigned long event) |
|
void | RemoveObservers (const char *event) |
|
void | RemoveAllObservers () |
|
vtkTypeBool | HasObserver (unsigned long event) |
|
vtkTypeBool | HasObserver (const char *event) |
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
| Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More...
|
|
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) |
| Allow user to set the AbortFlagOn() with the return value of the callback method. More...
|
|
int | InvokeEvent (unsigned long event, void *callData) |
| This method invokes an event and return whether the event was aborted or not. More...
|
|
int | InvokeEvent (const char *event, void *callData) |
|
int | InvokeEvent (unsigned long event) |
|
int | InvokeEvent (const char *event) |
|
const char * | GetClassName () const |
| Return the class name as a string. More...
|
|
virtual void | Delete () |
| Delete a VTK object. More...
|
|
virtual void | FastDelete () |
| Delete a reference to this object. More...
|
|
void | InitializeObjectBase () |
|
void | Print (ostream &os) |
| Print an object to an ostream. More...
|
|
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
|
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
|
virtual void | Register (vtkObjectBase *o) |
| Increase the reference count (mark as used by another object). More...
|
|
virtual void | UnRegister (vtkObjectBase *o) |
| Decrease the reference count (release by another object). More...
|
|
int | GetReferenceCount () |
| Return the current reference count of this object. More...
|
|
void | SetReferenceCount (int) |
| Sets the reference count. More...
|
|
void | PrintRevisions (ostream &) |
| Legacy. More...
|
|
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 between 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.
- Thanks:
- Ferenc Nasztanovics, naszt.nosp@m.a@na.nosp@m.szta..nosp@m.hu, Budapest University of Technology and Economics, Department of Structural Mechanics
- References:
- in 3D rotation was used: http://en.citizendium.org/wiki/Rotation_matrix
- Tests:
- vtkSimple3DCirclesStrategy (Tests)
Definition at line 55 of file vtkSimple3DCirclesStrategy.h.