MGUI::TOOL_REGPOLYGON Class Reference

"Regular Polygon" tool More...

#include <mgui/toolregp.h>

Inheritance diagram for MGUI::TOOL_REGPOLYGON:

Inheritance graph
[legend]
List of all members.

Public Member Functions

double GetAngle () const
const DPOINT2DGetCenter () const
int GetNumSegments () const
double GetRadius () const
void SetAngle (double newangle)
void SetAngleVisible (bool anglevisible=true)
void SetCenter (const DPOINT2D &center)
void SetMarker (MARKER marker, UINT16 size=0)
void SetNumSegments (int NumSegments)
void SetRadius (double radius)
void SetRadiusRange (double minradius, double maxradius)
 TOOL_REGPOLYGON (TOOLCANVAS *canvas)
virtual ~TOOL_REGPOLYGON ()

Detailed Description

"Regular Polygon" tool

Definition at line 32 of file toolregp.h.


Constructor & Destructor Documentation

MGUI::TOOL_REGPOLYGON::TOOL_REGPOLYGON TOOLCANVAS canvas  )  [explicit]
 

Constructor.

virtual MGUI::TOOL_REGPOLYGON::~TOOL_REGPOLYGON  )  [virtual]
 

Destructor.


Member Function Documentation

double MGUI::TOOL_REGPOLYGON::GetAngle  )  const [inline]
 

Get current rotation angle.

Definition at line 44 of file toolregp.h.

const DPOINT2D& MGUI::TOOL_REGPOLYGON::GetCenter  )  const [inline]
 

Get center position.

Definition at line 48 of file toolregp.h.

int MGUI::TOOL_REGPOLYGON::GetNumSegments  )  const [inline]
 

Get number of segments.

Definition at line 52 of file toolregp.h.

double MGUI::TOOL_REGPOLYGON::GetRadius  )  const [inline]
 

Get radius.

Definition at line 56 of file toolregp.h.

void MGUI::TOOL_REGPOLYGON::SetAngle double  newangle  ) 
 

Set rotation angle.

void MGUI::TOOL_REGPOLYGON::SetAngleVisible bool  anglevisible = true  ) 
 

Set whether angle indicator is visible.

void MGUI::TOOL_REGPOLYGON::SetCenter const DPOINT2D center  ) 
 

Set center of polygon.

Parameters:
center  New center in tool coordinates

void MGUI::TOOL_REGPOLYGON::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_REGPOLYGON::SetNumSegments int  NumSegments  ) 
 

Set number of polygon segments.

Parameters:
NumSegments  Number of segments >= 3

void MGUI::TOOL_REGPOLYGON::SetRadius double  radius  ) 
 

Set polygon radius (distance from center to vertex).

Parameters:
radius  Radius is tool units

void MGUI::TOOL_REGPOLYGON::SetRadiusRange double  minradius,
double  maxradius
 

Set allowed radius range.

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


The documentation for this class was generated from the following file:
Generated on Tue Dec 14 13:21:02 2004 for TNTsdk by  doxygen 1.3.8-20040913