MGUI::TOOL_ELLIPSE Class Reference

Ellipse tool. More...

#include <mgui/toolellipse.h>

Inheritance diagram for MGUI::TOOL_ELLIPSE:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 TOOL_ELLIPSE (TOOLCANVAS *canvas)
virtual ~TOOL_ELLIPSE ()
double GetAngle () const
const DPOINT2DGetCenter () const
const DPOINT2DGetRadius () const
void SetAngle (double angle)
void SetAngleVisible (bool anglevisible=true)
void SetCenter (const DPOINT2D &center)
void SetMarker (MARKER marker, UINT16 size=0)
void SetRadius (const DPOINT2D &radius)
void SetRadiusRange (double minradius, double maxradius)

Detailed Description

Ellipse tool.


Constructor & Destructor Documentation

MGUI::TOOL_ELLIPSE::TOOL_ELLIPSE ( TOOLCANVAS canvas  )  [explicit]

Constructor.

virtual MGUI::TOOL_ELLIPSE::~TOOL_ELLIPSE (  )  [virtual]

Destructor.


Member Function Documentation

double MGUI::TOOL_ELLIPSE::GetAngle (  )  const [inline]

Get current rotation angle.

const DPOINT2D& MGUI::TOOL_ELLIPSE::GetCenter (  )  const [inline]

Get center position.

const DPOINT2D& MGUI::TOOL_ELLIPSE::GetRadius (  )  const [inline]

Get radius.

void MGUI::TOOL_ELLIPSE::SetAngle ( double  angle  ) 

Set rotation angle.

Parameters:
angle New rotation angle in RADIANS
void MGUI::TOOL_ELLIPSE::SetAngleVisible ( bool  anglevisible = true  ) 

Set whether rotation angle indicator is visible.

The rotation angle is indicated by a line from the center to the boundary.

void MGUI::TOOL_ELLIPSE::SetCenter ( const DPOINT2D center  ) 

Set center coordinates.

void MGUI::TOOL_ELLIPSE::SetMarker ( MARKER  marker,
UINT16  size = 0 
)

Set marker type and size.

The default marker is MARKER_Plus with a size of 9 pixels.

Parameters:
marker New marker type
size New marker size, 0 to retain current size
void MGUI::TOOL_ELLIPSE::SetRadius ( const DPOINT2D radius  ) 

Set radius.

void MGUI::TOOL_ELLIPSE::SetRadiusRange ( double  minradius,
double  maxradius 
)

Set allowed radius range.

Parameters:
minradius Minimum radius in tool units
maxradius Maximum radius, <= 0 for no maximum

The documentation for this class was generated from the following file:

Generated on Sun Oct 7 21:36:17 2012 for TNTsdk 2012 by  doxygen 1.6.1