MicroImages::GRTOOL_SEGMENT Class Reference

GRTOOL_SEGMENT - Segment tool. More...

#include <mi32/grtool.h>

Inheritance diagram for MicroImages::GRTOOL_SEGMENT:

Inheritance graph
[legend]
List of all members.

Public Member Functions

const DPOINT2DGetEnd () const
const DPOINT2DGetStart () const
 GRTOOL_SEGMENT (GRTOOLVIEW *view)
void SetMarkers (MARKER startmarker, MARKER endmarker, UINT16 startmarkersize=0, UINT16 endmarkersize=0)
virtual ~GRTOOL_SEGMENT ()

Private Types

enum  ZONE {
  ZONE_NoFunction = 0, ZONE_Outside, ZONE_Inside, 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

Private Attributes

UINT8 m_AdjustMode
ZONE m_CursorZone
MARKER m_endmarker
UINT16 m_endmarkersize
DPOINT2D m_endpoint
DPOINT2D m_prevpt
MARKER m_startmarker
UINT16 m_startmarkersize
DPOINT2D m_startpoint

Detailed Description

GRTOOL_SEGMENT - Segment tool.

Definition at line 905 of file grtool.h.


Member Enumeration Documentation

enum MicroImages::GRTOOL_SEGMENT::ZONE [private]
 

Enumeration constants.

Enumeration values:
ZONE_NoFunction 
ZONE_Outside 
ZONE_Inside 
ZONE_Start 
ZONE_End 

Definition at line 934 of file grtool.h.


Constructor & Destructor Documentation

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

Constructor.

virtual MicroImages::GRTOOL_SEGMENT::~GRTOOL_SEGMENT  )  [virtual]
 

Destructor.


Member Function Documentation

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

Methods.

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

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

Methods called by the GRTOOL base class.

Implements MicroImages::GRTOOL.

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

Reimplemented from MicroImages::GRTOOL.

const DPOINT2D& MicroImages::GRTOOL_SEGMENT::GetEnd  )  const [inline]
 

Get segment end point coordinates.

Definition at line 917 of file grtool.h.

const DPOINT2D& MicroImages::GRTOOL_SEGMENT::GetStart  )  const [inline]
 

Get segment start point coordinates.

Definition at line 921 of file grtool.h.

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

Methods called directly by the equivalent GRTOOLVIEW method.

Implements MicroImages::GRTOOL.

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

Implements MicroImages::GRTOOL.

void MicroImages::GRTOOL_SEGMENT::SetMarkers MARKER  startmarker,
MARKER  endmarker,
UINT16  startmarkersize = 0,
UINT16  endmarkersize = 0
 

Set markers for start and end points.

Parameters:
startmarker  Starting point marker type
endmarker  Ending point marker type
startmarkersize  Starting point marker size, 0 to retain current size
endmarkersize  Ending point marker size, 0 to retain current size

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

void MicroImages::GRTOOL_SEGMENT::UpdateCursor  )  const [private]
 


Member Data Documentation

UINT8 MicroImages::GRTOOL_SEGMENT::m_AdjustMode [private]
 

Adjustment mode, 2=rotate, 1=everything else.

Definition at line 952 of file grtool.h.

ZONE MicroImages::GRTOOL_SEGMENT::m_CursorZone [private]
 

Current cursor zone.

Definition at line 950 of file grtool.h.

MARKER MicroImages::GRTOOL_SEGMENT::m_endmarker [private]
 

Definition at line 943 of file grtool.h.

UINT16 MicroImages::GRTOOL_SEGMENT::m_endmarkersize [private]
 

Definition at line 945 of file grtool.h.

DPOINT2D MicroImages::GRTOOL_SEGMENT::m_endpoint [private]
 

Tool position values.

Definition at line 947 of file grtool.h.

DPOINT2D MicroImages::GRTOOL_SEGMENT::m_prevpt [private]
 

Previous point during button-down.

Definition at line 951 of file grtool.h.

MARKER MicroImages::GRTOOL_SEGMENT::m_startmarker [private]
 

Tool settings.

Definition at line 942 of file grtool.h.

UINT16 MicroImages::GRTOOL_SEGMENT::m_startmarkersize [private]
 

Definition at line 944 of file grtool.h.

DPOINT2D MicroImages::GRTOOL_SEGMENT::m_startpoint [private]
 

Definition at line 948 of file grtool.h.


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