wxShapeFramework
1.13.0 beta
|
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>
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 |
Rounded orthogonal line shape. The class extends wxSFOrthoLineShape class and allows user to create connection line orthogonal to base axis with rounded corners.
Default constructor.
wxSFRoundOrthoLineShape::wxSFRoundOrthoLineShape | ( | long | src, |
long | trg, | ||
const wxXS::RealPointList & | path, | ||
wxSFDiagramManager * | manager | ||
) |
User constructor.
src | ID of the source shape |
trg | ID of the target shape |
path | Array of line's control points |
manager | Parent parent diagram manager |
Copy constructor.
obj | Reference to the source object |
virtual wxSFRoundOrthoLineShape::~wxSFRoundOrthoLineShape | ( | ) | [virtual] |
Destructor.
virtual void wxSFRoundOrthoLineShape::DrawLineSegment | ( | wxDC & | dc, |
const wxRealPoint & | src, | ||
const wxRealPoint & | trg | ||
) | [protected, virtual] |
Draw one orthogonal line segment.
dc | Device context |
src | Starting point of the ortho line segment. |
trg | Ending point of the ortho line segment. |
Reimplemented from wxSFOrthoLineShape.
int wxSFRoundOrthoLineShape::GetMaxRadius | ( | ) | const [inline] |
Get current maximal value of corner radius.
void wxSFRoundOrthoLineShape::SetMaxRadius | ( | int | maxr | ) | [inline] |
Set maximal value of corner radius.
maxr | Maximal value of corner radius |
int wxSFRoundOrthoLineShape::m_nMaxRadius [protected] |