wxShapeFramework  1.13.0 beta
wxSFLayoutVerticalTree Class Reference

Class encapsulating algorithm which layouts all top-most shapes into vertical tree registered under "Vertical Tree" name. More...

#include <AutoLayout.h>

Inheritance diagram for wxSFLayoutVerticalTree:
Collaboration diagram for wxSFLayoutVerticalTree:

List of all members.

Public Member Functions

 wxSFLayoutVerticalTree ()
 Constructor.
virtual ~wxSFLayoutVerticalTree ()
 Destructor.
virtual void DoLayout (ShapeList &shapes)
 Function performing the layout change.
void SetHSpace (double HSpace)
 Set horizontal space between shapes.
void SetVSpace (double VSpace)
 Set vertical space between shapes.
double GetHSpace () const
 Get horizontal space.
double GetVSpace () const
 Get vertical space.

Protected Member Functions

void ProcessNode (wxSFShapeBase *node, double y)
 Process single shape.

Protected Attributes

double m_nMinX
int m_nCurrMaxWidth
double m_HSpace
double m_VSpace

Detailed Description

Class encapsulating algorithm which layouts all top-most shapes into vertical tree registered under "Vertical Tree" name.


Constructor & Destructor Documentation

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

Destructor.


Member Function Documentation

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

Function performing the layout change.

Parameters:
shapesList of shapes which should be layouted

Implements wxSFLayoutAlgorithm.

double wxSFLayoutVerticalTree::GetHSpace ( ) const [inline]

Get horizontal space.

Returns:
Horizontal space in pixels.
double wxSFLayoutVerticalTree::GetVSpace ( ) const [inline]

Get vertical space.

Returns:
Vertical space in pixels.
void wxSFLayoutVerticalTree::ProcessNode ( wxSFShapeBase node,
double  y 
) [protected]

Process single shape.

Parameters:
nodePointer to processed shape.
yVertical position of the shape.
void wxSFLayoutVerticalTree::SetHSpace ( double  HSpace) [inline]

Set horizontal space between shapes.

Parameters:
HSpaceHorizontal space in pixels.
void wxSFLayoutVerticalTree::SetVSpace ( double  VSpace) [inline]

Set vertical space between shapes.

Parameters:
VSpaceVertical space in pixels.

Member Data Documentation

double wxSFLayoutVerticalTree::m_nMinX [protected]

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