# vtkSimple3DCirclesStrategy Class Reference

`#include <vtkSimple3DCirclesStrategy.h>`

Inheritance diagram for vtkSimple3DCirclesStrategy:

[legend]
Collaboration diagram for vtkSimple3DCirclesStrategy:

[legend]

## Detailed Description

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.

Thanks:
Ferenc Nasztanovics, naszta@naszta.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 53 of file vtkSimple3DCirclesStrategy.h.

virtual void SetMethod (int)
virtual int GetMethod ()
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 vtkAbstractArrayGetMarkedStartVertices ()
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 SetMinimumDegree (double degree)
virtual double GetMinimumDegree (void)
virtual void SetHierarchicalLayers (vtkIntArray *_arg)
virtual vtkIntArrayGetHierarchicalLayers ()
virtual void SetHierarchicalOrder (vtkIdTypeArray *_arg)
virtual vtkIdTypeArrayGetHierarchicalOrder ()
virtual void Layout (void)
virtual void SetGraph (vtkGraph *graph)
vtkSimple3DCirclesStrategy (void)
virtual ~vtkSimple3DCirclesStrategy (void)

## 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)

## Static Public Member Functions

static vtkSimple3DCirclesStrategyNew ()
static int IsTypeOf (const char *type)
static vtkSimple3DCirclesStrategySafeDownCast (vtkObject *o)

## Protected Member Functions

void Transform (double Local[], double Global[])

## Protected Attributes

double Height
double Origin [3]
double Direction [3]
int Method
vtkAbstractArrayMarkedStartVertices
vtkVariant MarkedValue
int ForceToUseUniversalStartPointsFinder
int AutoHeight
vtkIntArrayHierarchicalLayers
vtkIdTypeArrayHierarchicalOrder

## Member Typedef Documentation

Reimplemented from vtkGraphLayoutStrategy.

Definition at line 57 of file vtkSimple3DCirclesStrategy.h.

## Member Enumeration Documentation

 anonymous enum

Enumerator:

Definition at line 61 of file vtkSimple3DCirclesStrategy.h.

## Constructor & Destructor Documentation

 vtkSimple3DCirclesStrategy::vtkSimple3DCirclesStrategy ( void ) ` [protected]`

 virtual vtkSimple3DCirclesStrategy::~vtkSimple3DCirclesStrategy ( void ) ` [protected, virtual]`

## Member Function Documentation

 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]`

 virtual int vtkSimple3DCirclesStrategy::GetMethod ( ) ` [virtual]`

 virtual void vtkSimple3DCirclesStrategy::SetRadius ( double ) ` [virtual]`

 virtual double vtkSimple3DCirclesStrategy::GetRadius ( ) ` [virtual]`

 virtual void vtkSimple3DCirclesStrategy::SetHeight ( double ) ` [virtual]`

 virtual double vtkSimple3DCirclesStrategy::GetHeight ( ) ` [virtual]`

 virtual void vtkSimple3DCirclesStrategy::SetOrigin ( double , double , double ) ` [virtual]`

 virtual void vtkSimple3DCirclesStrategy::SetOrigin ( double [3] ) ` [virtual]`

 virtual double* vtkSimple3DCirclesStrategy::GetOrigin ( ) ` [virtual]`

 virtual void vtkSimple3DCirclesStrategy::GetOrigin ( double & , double & , double & ) ` [virtual]`

 virtual void vtkSimple3DCirclesStrategy::GetOrigin ( double [3] ) ` [virtual]`

 virtual void vtkSimple3DCirclesStrategy::SetDirection ( double dx, double dy, double dz ) ` [virtual]`

 virtual void vtkSimple3DCirclesStrategy::SetDirection ( double d[3] ) ` [virtual]`

 virtual double* vtkSimple3DCirclesStrategy::GetDirection ( ) ` [virtual]`

 virtual void vtkSimple3DCirclesStrategy::GetDirection ( double & , double & , double & ) ` [virtual]`

 virtual void vtkSimple3DCirclesStrategy::GetDirection ( double [3] ) ` [virtual]`

 virtual void vtkSimple3DCirclesStrategy::SetMarkedStartVertices ( vtkAbstractArray * _arg ) ` [virtual]`

 virtual vtkAbstractArray* vtkSimple3DCirclesStrategy::GetMarkedStartVertices ( ) ` [virtual]`

 virtual void vtkSimple3DCirclesStrategy::SetMarkedValue ( vtkVariant _arg ) ` [virtual]`

 virtual vtkVariant vtkSimple3DCirclesStrategy::GetMarkedValue ( void ) ` [virtual]`

 virtual void vtkSimple3DCirclesStrategy::SetForceToUseUniversalStartPointsFinder ( int ) ` [virtual]`

 virtual int vtkSimple3DCirclesStrategy::GetForceToUseUniversalStartPointsFinder ( ) ` [virtual]`

 virtual void vtkSimple3DCirclesStrategy::ForceToUseUniversalStartPointsFinderOn ( ) ` [virtual]`

 virtual void vtkSimple3DCirclesStrategy::ForceToUseUniversalStartPointsFinderOff ( ) ` [virtual]`

 virtual void vtkSimple3DCirclesStrategy::SetAutoHeight ( int ) ` [virtual]`

 virtual int vtkSimple3DCirclesStrategy::GetAutoHeight ( ) ` [virtual]`

 virtual void vtkSimple3DCirclesStrategy::AutoHeightOn ( ) ` [virtual]`

 virtual void vtkSimple3DCirclesStrategy::AutoHeightOff ( ) ` [virtual]`

 virtual void vtkSimple3DCirclesStrategy::SetMinimumRadian ( double ) ` [virtual]`

 virtual double vtkSimple3DCirclesStrategy::GetMinimumRadian ( ) ` [virtual]`

 virtual void vtkSimple3DCirclesStrategy::SetMinimumDegree ( double degree ) ` [virtual]`

 virtual double vtkSimple3DCirclesStrategy::GetMinimumDegree ( void ) ` [virtual]`

 virtual void vtkSimple3DCirclesStrategy::SetHierarchicalLayers ( vtkIntArray * _arg ) ` [virtual]`

 virtual vtkIntArray* vtkSimple3DCirclesStrategy::GetHierarchicalLayers ( ) ` [virtual]`

 virtual void vtkSimple3DCirclesStrategy::SetHierarchicalOrder ( vtkIdTypeArray * _arg ) ` [virtual]`

 virtual vtkIdTypeArray* vtkSimple3DCirclesStrategy::GetHierarchicalOrder ( ) ` [virtual]`

 virtual void vtkSimple3DCirclesStrategy::Layout ( void ) ` [virtual]`

Implements vtkGraphLayoutStrategy.

 virtual void vtkSimple3DCirclesStrategy::SetGraph ( vtkGraph * graph ) ` [virtual]`

Reimplemented from vtkGraphLayoutStrategy.

 void vtkSimple3DCirclesStrategy::Transform ( double Local[], double Global[] ) ` [inline, protected]`

## Member Data Documentation

 double vtkSimple3DCirclesStrategy::Radius` [protected]`

Definition at line 147 of file vtkSimple3DCirclesStrategy.h.

 double vtkSimple3DCirclesStrategy::Height` [protected]`

Definition at line 148 of file vtkSimple3DCirclesStrategy.h.

 double vtkSimple3DCirclesStrategy::Origin[3]` [protected]`

Definition at line 149 of file vtkSimple3DCirclesStrategy.h.

 double vtkSimple3DCirclesStrategy::Direction[3]` [protected]`

Definition at line 150 of file vtkSimple3DCirclesStrategy.h.

 int vtkSimple3DCirclesStrategy::Method` [protected]`

Definition at line 151 of file vtkSimple3DCirclesStrategy.h.

 vtkAbstractArray* vtkSimple3DCirclesStrategy::MarkedStartVertices` [protected]`

Definition at line 152 of file vtkSimple3DCirclesStrategy.h.

 vtkVariant vtkSimple3DCirclesStrategy::MarkedValue` [protected]`

Definition at line 153 of file vtkSimple3DCirclesStrategy.h.

 int vtkSimple3DCirclesStrategy::ForceToUseUniversalStartPointsFinder` [protected]`

Definition at line 154 of file vtkSimple3DCirclesStrategy.h.

 int vtkSimple3DCirclesStrategy::AutoHeight` [protected]`

Definition at line 155 of file vtkSimple3DCirclesStrategy.h.

 double vtkSimple3DCirclesStrategy::MinimumRadian` [protected]`

Definition at line 156 of file vtkSimple3DCirclesStrategy.h.

 vtkIntArray* vtkSimple3DCirclesStrategy::HierarchicalLayers` [protected]`

Definition at line 158 of file vtkSimple3DCirclesStrategy.h.

 vtkIdTypeArray* vtkSimple3DCirclesStrategy::HierarchicalOrder` [protected]`

Definition at line 159 of file vtkSimple3DCirclesStrategy.h.

The documentation for this class was generated from the following file:

Generated on Wed Aug 24 12:06:07 2011 for VTK by  1.5.6