wxShapeFramework  1.13.0 beta
wxSFRoundOrthoLineShape Class Reference

Rounded orthogonal line shape. The class extends wxSFOrthoLineShape class and allows user to create connection line orthogonal to base axis with rounded corners. More...

#include <RoundOrthoShape.h>

Inheritance diagram for wxSFRoundOrthoLineShape:
Collaboration diagram for wxSFRoundOrthoLineShape:

List of all members.

Public Member Functions

 XS_DECLARE_CLONABLE_CLASS (wxSFRoundOrthoLineShape)
 wxSFRoundOrthoLineShape ()
 Default constructor.
 wxSFRoundOrthoLineShape (long src, long trg, const wxXS::RealPointList &path, wxSFDiagramManager *manager)
 User constructor.
 wxSFRoundOrthoLineShape (const wxSFRoundOrthoLineShape &obj)
 Copy constructor.
virtual ~wxSFRoundOrthoLineShape ()
 Destructor.
void SetMaxRadius (int maxr)
 Set maximal value of corner radius.
int GetMaxRadius () const
 Get current maximal value of corner radius.

Protected Member Functions

virtual void DrawLineSegment (wxDC &dc, const wxRealPoint &src, const wxRealPoint &trg)
 Draw one orthogonal line segment.

Protected Attributes

int m_nMaxRadius

Detailed Description

Rounded orthogonal line shape. The class extends wxSFOrthoLineShape class and allows user to create connection line orthogonal to base axis with rounded corners.


Constructor & Destructor Documentation

wxSFRoundOrthoLineShape::wxSFRoundOrthoLineShape ( long  src,
long  trg,
const wxXS::RealPointList &  path,
wxSFDiagramManager manager 
)

User constructor.

Parameters:
srcID of the source shape
trgID of the target shape
pathArray of line's control points
managerParent parent diagram manager

Copy constructor.

Parameters:
objReference to the source object

Destructor.


Member Function Documentation

virtual void wxSFRoundOrthoLineShape::DrawLineSegment ( wxDC &  dc,
const wxRealPoint &  src,
const wxRealPoint &  trg 
) [protected, virtual]

Draw one orthogonal line segment.

Parameters:
dcDevice context
srcStarting point of the ortho line segment.
trgEnding point of the ortho line segment.

Reimplemented from wxSFOrthoLineShape.

int wxSFRoundOrthoLineShape::GetMaxRadius ( ) const [inline]

Get current maximal value of corner radius.

Returns:
Current maximal corner radius
void wxSFRoundOrthoLineShape::SetMaxRadius ( int  maxr) [inline]

Set maximal value of corner radius.

Parameters:
maxrMaximal value of corner radius

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