class TopCVCurveCreateMouseProc : public Em3DDataEntryMouseProc { TopCVCurveCreateMouseProc() : Em3DDataEntryMouseProc() {} virtual BOOL OnPointSelected(); virtual void OnMouseMove(Point3& p); virtual BOOL AllowAnyViewport(); virtual void RemoveLastPoint(); virtual int OnMouseAbort(); virtual BOOL PerformRedraw() { return FALSE; } void SetObj(EditableCVCurve* o) { mpOb = o; } virtual BOOL StartNewCreation() { return mMouseClick == 0; } friend class EditableCVCurve; private: EditableCVCurve * mpOb; }; class EditableCVCurveCreateCallBack: public CreateMouseCallBack { EditableCVCurveCreateCallBack() {} virtual int proc( ViewExp* vpt,int msg, int point, int flags, IPoint2 m, Matrix3& mat ); friend class CVBackspaceUser; friend class EditableCVCurve; virtual BOOL StartNewCreation() { return mMouseProc.StartNewCreation(); } private: void RemoveLastPoint(); TopCVCurveCreateMouseProc mMouseProc; }; int EditableCVCurveCreateCallBack::proc(ViewExp* vpt,int msg, int point, int flags, IPoint2 m, Matrix3& mat) { spTransformMat = &mat; return mMouseProc.proc(vpt->GetHWnd(), msg, point, flags, m); } static EditableCVCurveCreateCallBack nsCreateCB; CreateMouseCallBack* EditableCVCurve::GetCreateMouseCallBack() { nsCreateCB.mMouseProc.SetObj(this); nsCreateCB.mMouseProc.SetParams(hInstance, mpEM, 0); return(&nsCreateCB); }
#include <mouseproc.h>
Public Member Functions |
|
CoreExport | DataEntryMouseProc (Object *pObj, int cursor, HINSTANCE hInst) |
CoreExport | DataEntryMouseProc () |
virtual CoreExport BOOL | OnPointSelected () |
virtual CoreExport void | OnMouseMove (Point3 &p) |
virtual CoreExport BOOL | AllowAnyViewport () |
virtual CoreExport void | RemoveLastPoint () |
virtual CoreExport int | OnMouseAbort () |
virtual CoreExport BOOL | PerformRedraw () |
virtual CoreExport void | SetUseConstructionLine (BOOL useLine)=0 |
virtual CoreExport void | SetConstructionLine (int i, Point3 p)=0 |
CoreExport int | proc (HWND hwnd, int msg, int point, int flags, IPoint2 m) |
CoreExport void | ClearCreationParams () |
CoreExport void | SetParams (HINSTANCE hInst, Object *pObj, int cursor) |
Protected Attributes |
|
Object * | mpObject |
int | mMouseClick |
Tab< Point3 > | mPoints |
Tab< IPoint2 > | mClickPoints |
BOOL | mLiftOffCP |
HWND | mHwnd |
IPoint2 | mLastMovePoint |
Friends |
|
class | DataEntryBackspaceUser |
CoreExport DataEntryMouseProc | ( | Object * | pObj, |
int | cursor, | ||
HINSTANCE | hInst | ||
) |
CoreExport DataEntryMouseProc | ( | ) |
virtual CoreExport BOOL OnPointSelected | ( | ) | [inline, virtual] |
{return TRUE; }
virtual CoreExport void OnMouseMove | ( | Point3 & | p | ) | [inline, virtual] |
{ UNUSED_PARAM(p); }
virtual CoreExport BOOL AllowAnyViewport | ( | ) | [inline, virtual] |
{ return TRUE; }
virtual CoreExport void RemoveLastPoint | ( | ) | [inline, virtual] |
{}
virtual CoreExport int OnMouseAbort | ( | ) | [inline, virtual] |
{ return CREATE_ABORT; }
virtual CoreExport BOOL PerformRedraw | ( | ) | [inline, virtual] |
{ return TRUE; }
virtual CoreExport void SetUseConstructionLine | ( | BOOL | useLine | ) | [pure virtual] |
virtual CoreExport void SetConstructionLine | ( | int | i, |
Point3 | p | ||
) | [pure virtual] |
CoreExport int proc | ( | HWND | hwnd, |
int | msg, | ||
int | point, | ||
int | flags, | ||
IPoint2 | m | ||
) | [virtual] |
Reimplemented from MouseCallBack.
CoreExport void ClearCreationParams | ( | ) |
CoreExport void SetParams | ( | HINSTANCE | hInst, |
Object * | pObj, | ||
int | cursor | ||
) |
friend class DataEntryBackspaceUser
[friend] |
int
mMouseClick [protected] |
Tab<IPoint2>
mClickPoints [protected] |
BOOL
mLiftOffCP [protected] |
HWND
mHwnd [protected] |
IPoint2
mLastMovePoint [protected] |