wxShapeFramework
1.13.0 beta
|
Class encapsulating the circle shape. More...
#include <CircleShape.h>
Public Member Functions | |
XS_DECLARE_CLONABLE_CLASS (wxSFCircleShape) | |
wxSFCircleShape (void) | |
Default constructor. | |
wxSFCircleShape (const wxRealPoint &pos, double radius, wxSFDiagramManager *manager) | |
User constructor. | |
wxSFCircleShape (const wxSFCircleShape &obj) | |
Copy constructor. | |
virtual | ~wxSFCircleShape () |
Destructor. | |
virtual bool | Contains (const wxPoint &pos) |
Test whether the given point is inside the shape. The function can be overrided if neccessary. | |
virtual wxRealPoint | GetBorderPoint (const wxRealPoint &start, const wxRealPoint &end) |
Get intersection point of the shape border and a line leading from 'start' point to 'end' point. The function can be overrided if neccessary. | |
Protected Member Functions | |
virtual void | DrawNormal (wxDC &dc) |
Draw the shape in the normal way. The function can be overrided if neccessary. | |
virtual void | DrawHover (wxDC &dc) |
Draw the shape in the hower mode (the mouse cursor is above the shape). The function can be overrided if neccessary. | |
virtual void | DrawHighlighted (wxDC &dc) |
Draw the shape in the highlighted mode (another shape is dragged over this shape and this shape will accept the dragged one if it will be dropped on it). The function can be overrided if neccessary. | |
virtual void | DrawShadow (wxDC &dc) |
Draw shadow under the shape. The function can be overrided if neccessary. |
Class encapsulating the circle shape.
wxSFCircleShape::wxSFCircleShape | ( | void | ) |
Default constructor.
wxSFCircleShape::wxSFCircleShape | ( | const wxRealPoint & | pos, |
double | radius, | ||
wxSFDiagramManager * | manager | ||
) |
User constructor.
pos | Initial shape position |
radius | Circle radius |
manager | Pointer to parent manager |
wxSFCircleShape::wxSFCircleShape | ( | const wxSFCircleShape & | obj | ) |
Copy constructor.
obj | Reference to the source object |
virtual wxSFCircleShape::~wxSFCircleShape | ( | ) | [virtual] |
Destructor.
virtual bool wxSFCircleShape::Contains | ( | const wxPoint & | pos | ) | [virtual] |
Test whether the given point is inside the shape. The function can be overrided if neccessary.
pos | Examined point |
Reimplemented from wxSFShapeBase.
virtual void wxSFCircleShape::DrawHighlighted | ( | wxDC & | dc | ) | [protected, virtual] |
Draw the shape in the highlighted mode (another shape is dragged over this shape and this shape will accept the dragged one if it will be dropped on it). The function can be overrided if neccessary.
dc | Reference to device context where the shape will be drawn to |
Reimplemented from wxSFRectShape.
virtual void wxSFCircleShape::DrawHover | ( | wxDC & | dc | ) | [protected, virtual] |
Draw the shape in the hower mode (the mouse cursor is above the shape). The function can be overrided if neccessary.
dc | Reference to device context where the shape will be drawn to |
Reimplemented from wxSFRectShape.
virtual void wxSFCircleShape::DrawNormal | ( | wxDC & | dc | ) | [protected, virtual] |
Draw the shape in the normal way. The function can be overrided if neccessary.
dc | Reference to device context where the shape will be drawn to |
Reimplemented from wxSFRectShape.
virtual void wxSFCircleShape::DrawShadow | ( | wxDC & | dc | ) | [protected, virtual] |
Draw shadow under the shape. The function can be overrided if neccessary.
dc | Reference to device context where the shadow will be drawn to |
Reimplemented from wxSFRectShape.
virtual wxRealPoint wxSFCircleShape::GetBorderPoint | ( | const wxRealPoint & | start, |
const wxRealPoint & | end | ||
) | [virtual] |
Get intersection point of the shape border and a line leading from 'start' point to 'end' point. The function can be overrided if neccessary.
start | Starting point of the virtual intersection line |
end | Ending point of the virtual intersection line |
Reimplemented from wxSFRectShape.