MicroImages::GRTOOL_ARC Class Reference

GRTOOL_ARC - Circular arc tool. More...

#include <mi32/grtool.h>

Inheritance diagram for MicroImages::GRTOOL_ARC:

Inheritance graph
[legend]
List of all members.

Public Types

enum  CLOSURE { CLOSURE_None, CLOSURE_Chord, CLOSURE_Wedge }

Public Member Functions

virtual int GenerateRegion (REGION2D &region) const
const DPOINT2DGetCenter () const
CLOSURE GetClosure () const
double GetRadius () const
double GetStartAngle () const
double GetSweepAngle () const
 GRTOOL_ARC (GRTOOLVIEW *view)
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)
virtual ~GRTOOL_ARC ()

Private Types

enum  ZONE {
  ZONE_NoFunction = 0, ZONE_Outside, ZONE_Inside, ZONE_Perimeter,
  ZONE_SetCenter, ZONE_Start, ZONE_End
}

Private Member Functions

void AdjustTool (const DPOINT2D &, bool firsttime=false)
void ComputeCursorZone (const DPOINT2D &)
virtual void DoDraw (CDC *)
virtual void DoMove (double dx, double dy, ADJUSTFLAGS flags)
virtual void OnLButtonDown (UINT nFlags, const CPoint &mpoint)
virtual void OnMouseMove (UINT nFlags, const CPoint &mpoint)
void StartTool (const DPOINT2D &)
void UpdateCursor (const DPOINT2D &) const

Private Attributes

DPOINT2D m_center
CLOSURE m_closure
ZONE m_CursorZone
MARKER m_marker
UINT16 m_markersize
double m_maxradius
double m_minradius
DPOINT2D m_prevpt
double m_radius
double m_StartAngle
double m_SweepAngle

Detailed Description

GRTOOL_ARC - Circular arc tool.

Definition at line 1186 of file grtool.h.


Member Enumeration Documentation

enum MicroImages::GRTOOL_ARC::CLOSURE
 

Enumeration values:
CLOSURE_None 
CLOSURE_Chord 
CLOSURE_Wedge 

Definition at line 1189 of file grtool.h.

enum MicroImages::GRTOOL_ARC::ZONE [private]
 

Enumeration constants.

Enumeration values:
ZONE_NoFunction 
ZONE_Outside 
ZONE_Inside 
ZONE_Perimeter 
ZONE_SetCenter 
ZONE_Start 
ZONE_End 

Definition at line 1269 of file grtool.h.


Constructor & Destructor Documentation

MicroImages::GRTOOL_ARC::GRTOOL_ARC GRTOOLVIEW view  )  [explicit]
 

Constructor.

virtual MicroImages::GRTOOL_ARC::~GRTOOL_ARC  )  [virtual]
 

Destructor.


Member Function Documentation

void MicroImages::GRTOOL_ARC::AdjustTool const DPOINT2D ,
bool  firsttime = false
[private]
 

Methods.

void MicroImages::GRTOOL_ARC::ComputeCursorZone const DPOINT2D  )  [private]
 

virtual void MicroImages::GRTOOL_ARC::DoDraw CDC *   )  [private, virtual]
 

Methods called by the GRTOOL base class.

Implements MicroImages::GRTOOL.

virtual void MicroImages::GRTOOL_ARC::DoMove double  dx,
double  dy,
ADJUSTFLAGS  flags
[private, virtual]
 

Reimplemented from MicroImages::GRTOOL.

virtual int MicroImages::GRTOOL_ARC::GenerateRegion REGION2D region  )  const [virtual]
 

Generate region from tool boundary.

Returns:
TRUE if region generated, FALSE if not, < 0 if error.

Reimplemented from MicroImages::GRTOOL.

const DPOINT2D& MicroImages::GRTOOL_ARC::GetCenter  )  const [inline]
 

Get center position.

Definition at line 1210 of file grtool.h.

CLOSURE MicroImages::GRTOOL_ARC::GetClosure  )  const [inline]
 

Get closure type.

Definition at line 1214 of file grtool.h.

double MicroImages::GRTOOL_ARC::GetRadius  )  const [inline]
 

Get radius.

Definition at line 1218 of file grtool.h.

double MicroImages::GRTOOL_ARC::GetStartAngle  )  const [inline]
 

Get starting angle.

Returns:
Starting angle in radians.

Definition at line 1223 of file grtool.h.

double MicroImages::GRTOOL_ARC::GetSweepAngle  )  const [inline]
 

Get sweep angle.

Returns:
Sweep angle in radians.

Definition at line 1228 of file grtool.h.

virtual void MicroImages::GRTOOL_ARC::OnLButtonDown UINT  nFlags,
const CPoint &  mpoint
[private, virtual]
 

Methods called directly by the equivalent GRTOOLVIEW method.

Implements MicroImages::GRTOOL.

virtual void MicroImages::GRTOOL_ARC::OnMouseMove UINT  nFlags,
const CPoint &  mpoint
[private, virtual]
 

Implements MicroImages::GRTOOL.

void MicroImages::GRTOOL_ARC::SetCenter const DPOINT2D newcenter  ) 
 

Set center of arc.

void MicroImages::GRTOOL_ARC::SetClosure CLOSURE  closure  ) 
 

Set closure type.

void MicroImages::GRTOOL_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 MicroImages::GRTOOL_ARC::SetRadius double  newradius  ) 
 

void MicroImages::GRTOOL_ARC::SetRadiusRange double  newminradius,
double  newmaxradius
 

void MicroImages::GRTOOL_ARC::SetStartAngle double  startangle  ) 
 

Set starting angle.

Parameters:
startangle  Starting angle in radians

void MicroImages::GRTOOL_ARC::SetSweepAngle double  sweepangle  ) 
 

Set sweep angle.

Parameters:
sweepangle  Sweep angle in radians

void MicroImages::GRTOOL_ARC::StartTool const DPOINT2D  )  [private]
 

void MicroImages::GRTOOL_ARC::UpdateCursor const DPOINT2D  )  const [private]
 


Member Data Documentation

DPOINT2D MicroImages::GRTOOL_ARC::m_center [private]
 

Center.

Definition at line 1285 of file grtool.h.

CLOSURE MicroImages::GRTOOL_ARC::m_closure [private]
 

Definition at line 1283 of file grtool.h.

ZONE MicroImages::GRTOOL_ARC::m_CursorZone [private]
 

Current cursor zone.

Definition at line 1290 of file grtool.h.

MARKER MicroImages::GRTOOL_ARC::m_marker [private]
 

Tool settings.

Definition at line 1279 of file grtool.h.

UINT16 MicroImages::GRTOOL_ARC::m_markersize [private]
 

Definition at line 1280 of file grtool.h.

double MicroImages::GRTOOL_ARC::m_maxradius [private]
 

Maximum radius, 0 if no maximum.

Definition at line 1282 of file grtool.h.

double MicroImages::GRTOOL_ARC::m_minradius [private]
 

Minimum radius.

Definition at line 1281 of file grtool.h.

DPOINT2D MicroImages::GRTOOL_ARC::m_prevpt [private]
 

Previous point during button-down.

Definition at line 1291 of file grtool.h.

double MicroImages::GRTOOL_ARC::m_radius [private]
 

Definition at line 1286 of file grtool.h.

double MicroImages::GRTOOL_ARC::m_StartAngle [private]
 

Definition at line 1287 of file grtool.h.

double MicroImages::GRTOOL_ARC::m_SweepAngle [private]
 

Definition at line 1288 of file grtool.h.


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