wxShapeFramework  1.13.0 beta
wxSFLayoutCircle Class Reference

Class encapsulating algorithm which layouts all top-most shapes into circle registered under "Circle" name. The algorithm doesn't optimize connection lines crossing. More...

#include <AutoLayout.h>

Inheritance diagram for wxSFLayoutCircle:
Collaboration diagram for wxSFLayoutCircle:

List of all members.

Public Member Functions

 wxSFLayoutCircle ()
 Constructor.
virtual ~wxSFLayoutCircle ()
 Destructor.
virtual void DoLayout (ShapeList &shapes)
 Function performing the layout change.
void SetDistanceRatio (double DistanceRatio)
 Set ratio in which calculated distance between shapes will be reduced. Values less than 1 means that the distance will be smaller, values bigger than 1 means that the distance will be bigger.
double GetDistanceRatio () const
 Get distance ratio.

Protected Attributes

double m_DistanceRatio

Detailed Description

Class encapsulating algorithm which layouts all top-most shapes into circle registered under "Circle" name. The algorithm doesn't optimize connection lines crossing.


Constructor & Destructor Documentation

Constructor.

virtual wxSFLayoutCircle::~wxSFLayoutCircle ( ) [inline, virtual]

Destructor.


Member Function Documentation

virtual void wxSFLayoutCircle::DoLayout ( ShapeList &  shapes) [virtual]

Function performing the layout change.

Parameters:
shapesList of shapes which should be layouted

Implements wxSFLayoutAlgorithm.

double wxSFLayoutCircle::GetDistanceRatio ( ) const [inline]

Get distance ratio.

Returns:
Current distance ratio
void wxSFLayoutCircle::SetDistanceRatio ( double  DistanceRatio) [inline]

Set ratio in which calculated distance between shapes will be reduced. Values less than 1 means that the distance will be smaller, values bigger than 1 means that the distance will be bigger.

Parameters:
DistanceRatioDistance ratio

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines