81 FROM_TentativePoint = 2,
111 DGNVIEW_EXPORT
int GetViewNum()
const;
117 DGNVIEW_EXPORT
bool IsControlKey ()
const;
119 DGNVIEW_EXPORT
bool IsShiftKey ()
const;
121 DGNVIEW_EXPORT
bool IsAltKey ()
const;
134 TOUCHFLAGS_Move = 0x0001,
135 TOUCHFLAGS_Down = 0x0002,
136 TOUCHFLAGS_Up = 0x0004,
137 TOUCHFLAGS_InRange = 0x0008,
138 TOUCHFLAGS_Primary = 0x0010,
139 TOUCHFLAGS_NoCoalesce = 0x0020,
140 TOUCHFLAGS_Pen = 0x0040,
141 TOUCHFLAGS_Palm = 0x0080,
189 GESTUREID_Rotate = 5,
190 GESTUREID_TwoFingerTap = 6,
191 GESTUREID_PressAndTap = 7,
192 GESTUREID_Rollover = GESTUREID_PressAndTap,
214 DGNVIEW_EXPORT
double GetDistance ()
const;
242 FLICKDIRECTION_Right = 0,
243 FLICKDIRECTION_UpRight = 1,
244 FLICKDIRECTION_Up = 2,
245 FLICKDIRECTION_UpLeft = 3,
246 FLICKDIRECTION_Left = 4,
247 FLICKDIRECTION_DownLeft = 5,
248 FLICKDIRECTION_Down = 6,
249 FLICKDIRECTION_DownRight = 7,
282 double m_rotMagnitude;
292 struct DgnPrimitiveTool;
295 struct MstnToolAdmin;
335 void SetCmdName (
int id,
int prompt) {SetToolId (
id); SetToolPrompt (prompt);}
353 virtual StatusInt _InstallToolImplementation () = 0;
373 virtual void _ExitTool () = 0;
490 virtual bool _OnKeyTransition (
bool wentDown,
int key,
bool shiftIsDown,
bool ctrlIsDown) {
return false; }
517 virtual bool _OnPreFilterButtonEvent (
ViewportP,
bool& testDefault) {
return false;}
518 virtual DgnDisplay::CursorP _GetCursorForInactiveView (
bool& allowDynamics,
ViewportP) {
return NULL;}
533 DGNVIEW_EXPORT DgnTool (
int toolId,
int toolPrompt);
571 void ResetCurrentQualifierMask (
UInt32 mask) {m_currentQualifierMask = mask; m_modifierKeyWentDown =
false; m_modifierKey = 0;}
578 DGNVIEW_EXPORT
void GetModifierKeyTransitionState (
int* modifierKeyP,
bool* modifierKeyWentDownP,
UInt32* currentQualifierMaskP);
585 DGNVIEW_EXPORT
void SetModifierKeyTransitionState (
int* modifierKeyP,
bool* modifierKeyWentDownP,
UInt32* currentQualifierMaskP);
593 DGNVIEW_EXPORT
static DgnViewTool* GetActiveViewTool ();
602 DGNVIEW_EXPORT
static DgnPrimitiveTool* GetActivePrimitiveTool ();
628 DGNVIEW_EXPORT
virtual StatusInt _InstallToolImplementation ()
override;
635 DGNVIEW_EXPORT
virtual void _ExitTool()
override;
668 PREFERRED_VIEW_None = (0),
669 PREFERRED_VIEW_Unparsed = (1<<0),
670 PREFERRED_VIEW_Selected = (1<<1),
671 PREFERRED_VIEW_Single = (1<<2),
687 DGNVIEW_EXPORT
static IndexedViewportP GetPreferredViewport (PreferredView* sourceFoundP,
WCharCP unparsedP, PreferredView sourceToSearch);
703 bool m_dynamicsStarted;
715 DGNVIEW_EXPORT
virtual StatusInt _InstallToolImplementation ()
override;
722 DGNVIEW_EXPORT
virtual void _ExitTool()
override;
733 virtual void _OnReinitialize ()
override {
if (!_CheckSingleShot ()) CallOnRestartTool ();}
745 virtual void _OnRestartTool () = 0;
752 DGNVIEW_EXPORT
virtual bool _IsSingleShot ();
760 DGNVIEW_EXPORT
virtual bool _CheckSingleShot ();
772 DGNVIEW_EXPORT
void EnableUndoPreviousStep ();
783 DGNVIEW_EXPORT
bool GetDynamicsStarted ();
790 DGNVIEW_EXPORT
virtual void _BeginDynamics ();
797 DGNVIEW_EXPORT
virtual void _EndDynamics ();
824 DGNVIEW_EXPORT
void CallOnRestartTool ();
Definition: Bentley.h:212
struct DPoint3d const * DPoint3dCP
Definition: msgeomstructs_typedefs.h:79
#define CDECL_ATTRIBUTE
Definition: Bentley.h:68
unsigned int UInt
Definition: Bentley.r.h:140
struct DgnPlatform::DgnTouchEvent const & DgnTouchEventCR
Definition: DgnPlatform.h:233
wchar_t const * WCharCP
Definition: Bentley.h:224
struct DgnPlatform::DgnGestureEvent const & DgnGestureEventCR
Definition: DgnPlatform.h:216
uint32_t UInt32
Definition: Bentley.r.h:128
#define NULL
Definition: Bentley.h:157
struct DgnPlatform::DgnButtonEvent const & DgnButtonEventCR
Definition: DgnPlatform.h:191
struct DgnPlatform::IndexedViewport & IndexedViewportR
Definition: DgnPlatform.h:352
3d point coordinates.
Definition: dpoint3d.h:19
unsigned long ULong
Definition: Bentley.r.h:134
uint64_t UInt64
Definition: Bentley.r.h:131
struct DgnPlatform::DgnFlickEvent const & DgnFlickEventCR
Definition: DgnPlatform.h:209
int StatusInt
Definition: Bentley.h:222
Concrete class that can be used to implement the reference-counting pattern.
Definition: RefCounted.h:109
struct DVec3d const & DVec3dCR
Definition: msgeomstructs_typedefs.h:89
Vector with x,y,z components.
Definition: dvec3d.h:110
A string class that has many of the same capabilities as std::string, plus additional functions such ...
Definition: WString.h:51