wxShapeFramework
1.13.0 beta
|
Class encapsulating the ellipse shape. It extends the basic rectangular shape. More...
#include <EllipseShape.h>
Public Member Functions | |
XS_DECLARE_CLONABLE_CLASS (wxSFEllipseShape) | |
wxSFEllipseShape (void) | |
Default constructor. | |
wxSFEllipseShape (const wxRealPoint &pos, const wxRealPoint &size, wxSFDiagramManager *manager) | |
User constructor. | |
wxSFEllipseShape (const wxSFEllipseShape &obj) | |
Copy constructor. | |
virtual | ~wxSFEllipseShape () |
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 ellipse shape. It extends the basic rectangular shape.
wxSFEllipseShape::wxSFEllipseShape | ( | void | ) |
Default constructor.
wxSFEllipseShape::wxSFEllipseShape | ( | const wxRealPoint & | pos, |
const wxRealPoint & | size, | ||
wxSFDiagramManager * | manager | ||
) |
User constructor.
pos | Initial position |
size | Initial size |
manager | Pointer to parent diagram manager |
wxSFEllipseShape::wxSFEllipseShape | ( | const wxSFEllipseShape & | obj | ) |
Copy constructor.
obj | Reference to the source shape |
virtual wxSFEllipseShape::~wxSFEllipseShape | ( | ) | [virtual] |
Destructor.
virtual bool wxSFEllipseShape::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 wxSFEllipseShape::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 wxSFEllipseShape::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 wxSFEllipseShape::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 wxSFEllipseShape::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 wxSFEllipseShape::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.