Orthogonal line shape. The class extends wxSFLineShape class and allows user to create connection line orthgonal to base axis.
More...
#include <OrthoShape.h>
List of all members.
Public Member Functions |
| | XS_DECLARE_CLONABLE_CLASS (wxSFOrthoLineShape) |
| | wxSFOrthoLineShape () |
| | Default constructor.
|
| | wxSFOrthoLineShape (long src, long trg, const wxXS::RealPointList &path, wxSFDiagramManager *manager) |
| | User constructor.
|
| | wxSFOrthoLineShape (const wxSFOrthoLineShape &obj) |
| | Copy constructor.
|
| virtual | ~wxSFOrthoLineShape () |
| | Destructor.
|
Protected Member Functions |
| virtual void | DrawCompleteLine (wxDC &dc) |
| | Internal function used for drawing of completed line shape.
|
| virtual int | GetHitLinesegment (const wxPoint &pos) |
| | Get index of the line segment intersecting the given point.
|
| virtual void | DrawLineSegment (wxDC &dc, const wxRealPoint &src, const wxRealPoint &trg) |
| | Draw one orthogonal line segment.
|
| void | GetFirstSubsegment (const wxRealPoint &src, const wxRealPoint &trg, wxRealPoint &subsrc, wxRealPoint &subtrg) |
| | Get first part of orthogonal line segment.
|
| void | GetMiddleSubsegment (const wxRealPoint &src, const wxRealPoint &trg, wxRealPoint &subsrc, wxRealPoint &subtrg) |
| | Get middle part of orthogonal line segment.
|
| void | GetLastSubsegment (const wxRealPoint &src, const wxRealPoint &trg, wxRealPoint &subsrc, wxRealPoint &subtrg) |
| | Get last part of orthogonal line segment.
|
Detailed Description
Orthogonal line shape. The class extends wxSFLineShape class and allows user to create connection line orthgonal to base axis.
Constructor & Destructor Documentation
User constructor.
- Parameters:
-
| 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.
- Parameters:
-
| obj | Reference to the source object |
Member Function Documentation
Internal function used for drawing of completed line shape.
- Parameters:
-
| dc | Refernce of the device context where the shape will be darwn to |
Reimplemented from wxSFLineShape.
Draw one orthogonal line segment.
- Parameters:
-
| dc | Device context |
| src | Starting point of the ortho line segment. |
| trg | Ending point of the ortho line segment. |
Reimplemented in wxSFRoundOrthoLineShape.
Get first part of orthogonal line segment.
- Parameters:
-
| src | Staring point of the ortho line segment |
| trg | Ending point of the ortho line segment |
| subsrc | Starting point of the first part of ortho line segment |
| subtrg | Ending point of the first part of ortho line segment |
Get index of the line segment intersecting the given point.
- Parameters:
-
- Returns:
- Zero-based index of line segment located under the given point
Reimplemented from wxSFLineShape.
Get last part of orthogonal line segment.
- Parameters:
-
| src | Staring point of the ortho line segment |
| trg | Ending point of the ortho line segment |
| subsrc | Starting point of the third part of ortho line segment |
| subtrg | Ending point of the third part of ortho line segment |
Get middle part of orthogonal line segment.
- Parameters:
-
| src | Staring point of the ortho line segment |
| trg | Ending point of the ortho line segment |
| subsrc | Starting point of the second part of ortho line segment |
| subtrg | Ending point of the second part of ortho line segment |
The documentation for this class was generated from the following file: