MicroImages::GRTOOL_MULTIPOINT Class Reference

GRTOOL_MULTIPOINT - Multi-Point tool. More...

#include <mi32/grtool.h>

Inheritance diagram for MicroImages::GRTOOL_MULTIPOINT:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual MGUI::CTRLCreateControlForm (MGUI::LAYOUT_PANE_BASE &ParentPane, CTRLOPT ctrlopt)
const DPOINT3DGetActivePoint () const
int GetNumPoints () const
const DPOINT3DGetPoint (int index) const
const DOUBLE_ARRAY< DPOINT3DGetPoints () const
 GRTOOL_MULTIPOINT (GRTOOLVIEW *view)
bool IsActiveValid () const
void SetMarker (MARKER marker, UINT16 size=0)
virtual ~GRTOOL_MULTIPOINT ()

Protected Member Functions

virtual void OnChangeActiveElem ()
virtual void OnClear ()

Private Types

enum  EDITMODE { EDITMODE_Automatic, EDITMODE_Add, EDITMODE_Move, EDITMODE_Select }
enum  ZONE { ZONE_NoFunction = 0, ZONE_Outside }

Private Member Functions

void ActivateClosestPoint (const DPOINT2D &)
void AddPoint (CDC *, const DPOINT2D &)
void AdjustTool (DPOINT2D &, MOVESEQ)
void ComputeCursorZone (const DPOINT2D &)
void DeletePoint ()
virtual void DoDraw (CDC *)
virtual void DoMove (double dx, double dy, ADJUSTFLAGS flags)
void DrawNeighborPoints (CDC *, const LRECT2D &) const
void DrawPoint (CDC *, int) const
void ErasePoint (CDC *, bool circleonly=false) const
int FindClosestPoint (const DPOINT2D &) const
virtual bool OnKey (UINT nChar, UINT nRepCnt, UINT nFlags)
virtual void OnLButtonDown (UINT nFlags, const CPoint &mpoint)
virtual void OnLButtonUp (UINT nFlags, const CPoint &mpoint)
virtual void OnMouseMove (UINT nFlags, const CPoint &mpoint)
void SetActiveIndex (int)
void UpdateCursor () const

Private Attributes

int m_ActiveIndex
ZONE m_CursorZone
EDITMODE m_EditMode
MARKER m_marker
UINT16 m_markersize
bool m_NotifyChangeElem
DOUBLE_ARRAY< DPOINT3Dm_Points
DPOINT2D m_prevpt

Detailed Description

GRTOOL_MULTIPOINT - Multi-Point tool.

Definition at line 745 of file grtool.h.


Member Enumeration Documentation

enum MicroImages::GRTOOL_MULTIPOINT::EDITMODE [private]
 

Enumeration values:
EDITMODE_Automatic  Auto select when near point, move if selected, add if not near point.
EDITMODE_Add  Always add new point.
EDITMODE_Move  Move selected point to cursor.
EDITMODE_Select  Select point by clicking.

Definition at line 805 of file grtool.h.

enum MicroImages::GRTOOL_MULTIPOINT::ZONE [private]
 

Enumeration values:
ZONE_NoFunction 
ZONE_Outside 

Definition at line 812 of file grtool.h.


Constructor & Destructor Documentation

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

Constructor.

virtual MicroImages::GRTOOL_MULTIPOINT::~GRTOOL_MULTIPOINT  )  [virtual]
 

Destructor.


Member Function Documentation

void MicroImages::GRTOOL_MULTIPOINT::ActivateClosestPoint const DPOINT2D  )  [private]
 

void MicroImages::GRTOOL_MULTIPOINT::AddPoint CDC *  ,
const DPOINT2D
[private]
 

void MicroImages::GRTOOL_MULTIPOINT::AdjustTool DPOINT2D ,
MOVESEQ 
[private]
 

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

virtual MGUI::CTRL* MicroImages::GRTOOL_MULTIPOINT::CreateControlForm MGUI::LAYOUT_PANE_BASE ParentPane,
CTRLOPT  ctrlopt
[virtual]
 

Create "form" with tool-specific controls.

Parameters:
ParentPane  Parent pane
ctrlopt  Control options

Reimplemented from MicroImages::GRTOOL.

void MicroImages::GRTOOL_MULTIPOINT::DeletePoint  )  [private]
 

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

Implements MicroImages::GRTOOL.

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

Reimplemented from MicroImages::GRTOOL.

void MicroImages::GRTOOL_MULTIPOINT::DrawNeighborPoints CDC *  ,
const LRECT2D
const [private]
 

void MicroImages::GRTOOL_MULTIPOINT::DrawPoint CDC *  ,
int 
const [private]
 

void MicroImages::GRTOOL_MULTIPOINT::ErasePoint CDC *  ,
bool  circleonly = false
const [private]
 

int MicroImages::GRTOOL_MULTIPOINT::FindClosestPoint const DPOINT2D  )  const [private]
 

const DPOINT3D& MicroImages::GRTOOL_MULTIPOINT::GetActivePoint  )  const [inline]
 

Get active point coordinates.

Definition at line 763 of file grtool.h.

int MicroImages::GRTOOL_MULTIPOINT::GetNumPoints  )  const [inline]
 

Get number of points.

Definition at line 767 of file grtool.h.

const DPOINT3D& MicroImages::GRTOOL_MULTIPOINT::GetPoint int  index  )  const [inline]
 

Get single point.

If the index is out of range the results are unpredictable.

Parameters:
index  Zero-based index of point to retrieve

Definition at line 772 of file grtool.h.

const DOUBLE_ARRAY<DPOINT3D> MicroImages::GRTOOL_MULTIPOINT::GetPoints  )  const [inline]
 

Get points.

Definition at line 777 of file grtool.h.

bool MicroImages::GRTOOL_MULTIPOINT::IsActiveValid  )  const [inline]
 

Determine if "active" point is valid.

Definition at line 781 of file grtool.h.

virtual void MicroImages::GRTOOL_MULTIPOINT::OnChangeActiveElem  )  [protected, virtual]
 

Called when "active element" changed.

Derived class must call superclass method BEFORE performing own processing.

virtual void MicroImages::GRTOOL_MULTIPOINT::OnClear  )  [protected, virtual]
 

Called when tool is "cleared" by user action, usually on control dialog.

Derived class must call superclass method BEFORE performing own processing.

Reimplemented from MicroImages::GRTOOL.

virtual bool MicroImages::GRTOOL_MULTIPOINT::OnKey UINT  nChar,
UINT  nRepCnt,
UINT  nFlags
[private, virtual]
 

Called when key pressed/released.

Returns:
'true' if key handled, 'false' if not.

Reimplemented from MicroImages::GRTOOL.

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

Implements MicroImages::GRTOOL.

virtual void MicroImages::GRTOOL_MULTIPOINT::OnLButtonUp UINT  nFlags,
const CPoint &  mpoint
[private, virtual]
 

Reimplemented from MicroImages::GRTOOL.

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

Implements MicroImages::GRTOOL.

void MicroImages::GRTOOL_MULTIPOINT::SetActiveIndex int   )  [private]
 

void MicroImages::GRTOOL_MULTIPOINT::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_MULTIPOINT::UpdateCursor  )  const [private]
 


Member Data Documentation

int MicroImages::GRTOOL_MULTIPOINT::m_ActiveIndex [private]
 

Index of active point.

Definition at line 823 of file grtool.h.

ZONE MicroImages::GRTOOL_MULTIPOINT::m_CursorZone [private]
 

Current cursor zone.

Definition at line 825 of file grtool.h.

EDITMODE MicroImages::GRTOOL_MULTIPOINT::m_EditMode [private]
 

Definition at line 820 of file grtool.h.

MARKER MicroImages::GRTOOL_MULTIPOINT::m_marker [private]
 

Tool settings.

Definition at line 818 of file grtool.h.

UINT16 MicroImages::GRTOOL_MULTIPOINT::m_markersize [private]
 

Definition at line 819 of file grtool.h.

bool MicroImages::GRTOOL_MULTIPOINT::m_NotifyChangeElem [private]
 

Definition at line 827 of file grtool.h.

DOUBLE_ARRAY<DPOINT3D> MicroImages::GRTOOL_MULTIPOINT::m_Points [private]
 

Points.

Definition at line 822 of file grtool.h.

DPOINT2D MicroImages::GRTOOL_MULTIPOINT::m_prevpt [private]
 

Definition at line 826 of file grtool.h.


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