MGUI::TOOL_ARC Class Reference

Circular arc tool. More...

#include <mgui/toolarc.h>

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

List of all members.

Public Types

enum  CLOSURE { CLOSURE_None, CLOSURE_Chord, CLOSURE_Wedge }

Public Member Functions

 TOOL_ARC (TOOLCANVAS *canvas)
virtual ~TOOL_ARC ()
const DPOINT2DGetCenter () const
CLOSURE GetClosure () const
double GetRadius () const
double GetStartAngle () const
double GetSweepAngle () const
void SetCenter (const DPOINT2D &newcenter)
void SetClosure (CLOSURE closure)
void SetMarker (MARKER marker, UINT16 size=0)
void SetRadius (double newradius)
void SetRadiusRange (double newminradius, double newmaxradius)
void SetStartAngle (double startangle)
void SetSweepAngle (double sweepangle)

Detailed Description

Circular arc tool.


Member Enumeration Documentation

Enumerator:
CLOSURE_None 
CLOSURE_Chord 
CLOSURE_Wedge 

Constructor & Destructor Documentation

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

Constructor.

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

Destructor.


Member Function Documentation

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

Get center position.

CLOSURE MGUI::TOOL_ARC::GetClosure (  )  const [inline]

Get closure type.

double MGUI::TOOL_ARC::GetRadius (  )  const [inline]

Get radius.

double MGUI::TOOL_ARC::GetStartAngle (  )  const [inline]

Get starting angle.

Returns:
Starting angle in radians.
double MGUI::TOOL_ARC::GetSweepAngle (  )  const [inline]

Get sweep angle.

Returns:
Sweep angle in radians.
void MGUI::TOOL_ARC::SetCenter ( const DPOINT2D newcenter  ) 

Set center of arc.

void MGUI::TOOL_ARC::SetClosure ( CLOSURE  closure  ) 

Set closure type.

void MGUI::TOOL_ARC::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_ARC::SetRadius ( double  newradius  ) 
void MGUI::TOOL_ARC::SetRadiusRange ( double  newminradius,
double  newmaxradius 
)
void MGUI::TOOL_ARC::SetStartAngle ( double  startangle  ) 

Set starting angle.

Parameters:
startangle Starting angle in radians
void MGUI::TOOL_ARC::SetSweepAngle ( double  sweepangle  ) 

Set sweep angle.

Parameters:
sweepangle Sweep angle in radians

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

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