CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
FxHitTestInfo.h
Go to the documentation of this file.
1//
2// (C) Copyright 2005-2023 by Graebert GmbH.
3//
4// Permission to use, copy, modify, and distribute this software in
5// object code form for any purpose and without fee is hereby granted,
6// provided that the above copyright notice appears in all copies and
7// that both that copyright notice and the limited warranty and
8// restricted rights notice below appear in all supporting
9// documentation.
10//
11// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15// UNINTERRUPTED OR ERROR FREE.
16
17#pragma once
18
19#include "FxPragmaPush.h"
20
21#include "DDKERNEL.h"
22
23#include <DbObjectId.h>
24
25#include <Ge/GePoint2d.h>
26#include <Gs/GsDefs.h>
27
28class CFxString;
29class CFxDocument;
30
37{
38public:
42 typedef enum _GestureState
43 {
44 NoGesture = 0,
45 GestureStarted = 1,
46 GestureUpdated = 2,
47 GestureFinished = 3,
48 GestureCanceled = 4
49 } GestureState;
50
52 virtual ~CFxHitTestInfo();
53
54 //mouse events
58 virtual bool IsMouseEvent() const = 0;
62 virtual bool IsDragEvent() const = 0;
66 virtual bool IsKeyboardEvent() const = 0;
70 virtual bool IsKeyboardPressEvent() const = 0;
74 virtual bool IsKeyboardReleaseEvent() const = 0;
78 virtual bool IsMouseWheel() const = 0;
79
80 virtual bool IsGesture() const = 0;
81 virtual bool IsGesturePan() const = 0;
82 virtual bool IsGesturePinch() const = 0;
83
87 virtual GestureState GetGestureState() const = 0;
88
92 virtual bool IsFxEvent() const = 0;
96 virtual int GetFxEventType() const = 0;
99 virtual const OdGsDCPoint GetMousePosition() const = 0;
102 virtual const OdGePoint2d GetMousePositionF() const = 0;
106 virtual bool IsLeftMouseButtonPressed() const = 0;
110 virtual bool IsMiddleMouseButtonPressed() const = 0;
114 virtual bool IsRightMouseButtonPressed() const = 0;
118 virtual bool IsShiftPressed() const = 0;
122 virtual bool IsCtrlPressed() const = 0;
126 virtual bool IsAltPressed() const = 0;
130 virtual bool IsMouseMoved() const = 0;
134 virtual bool IsLeftButtonDown() const = 0;
138 virtual bool IsLeftButtonUp() const = 0;
142 virtual bool IsMiddleButtonDown() const = 0;
146 virtual bool IsMiddleButtonUp() const = 0;
150 virtual bool IsRightButtonDown() const = 0;
154 virtual bool IsRightButtonUp() const = 0;
158 virtual bool IsMouseOverActiveViewport() const = 0;
162 virtual int GetWheelDelta() const = 0;
168 virtual int GetWheelOrientation() const = 0;
172 virtual const OdGePoint2d & GetGesturePanOffset() const = 0;
176 virtual double GetGesturePinchScaleFactor() const = 0;
180 virtual const OdGsDCPoint & GetGesturePinchCenterPoint() const = 0;
184 virtual double GetGesturePinchRollAngle() const = 0;
188 virtual double GetGestureSwipeAngle() const = 0;
192 virtual bool IsRightButtonTrippleClick() const = 0;
196 virtual bool IsMiddleButtonTrippleClick() const = 0;
200 virtual bool IsLeftButtonTrippleClick() const = 0;
204 virtual bool IsRightButtonDoubleClick() const = 0;
208 virtual bool IsMiddleButtonDoubleClick() const = 0;
212 virtual bool IsLeftButtonDoubleClick() const = 0;
216 virtual bool IsRightButtonClick() const = 0;
220 virtual bool IsMiddleButtonClick() const = 0;
224 virtual bool IsLeftButtonClick() const = 0;
228 virtual bool IsInsideDragSelectSequence() const = 0;
232 virtual bool IsInsideDragDropSequence() const = 0;
233
234//keyboard events
238 virtual bool IsCancelPressed() const = 0;
242 virtual bool IsSpacePressed() const = 0;
246 virtual bool IsArrowUpPressed() const = 0;
250 virtual bool IsArrowDownPressed() const = 0;
254 virtual bool IsContinuousEvent() const = 0;
258 virtual bool IsInsideLISP() const = 0;
262 virtual bool IsInsideCommand() const = 0;
266 virtual bool IsInsideSelect() const = 0;
270 virtual int GetKey() const = 0;
274 virtual const CFxString& GetKeyText() const = 0;
278 virtual const CFxDocument* GetFxDocument() const = 0;
282 virtual void EnableSystemCursorGraphics() = 0;
286 virtual void DisableSystemCursorGraphics() = 0;
290 virtual int SystemCursorDisableCount() const = 0;
291
296
300 virtual void SkipKeyboardInput() = 0;
301
302 virtual const CFxEvent* GetEvent() const = 0;
303
304};
305
306#include "FxPragmaPop.h"
#define DDKERNEL_API
Definition: DDKERNEL.h:32
#define CFxEvent
virtual const CFxString & GetKeyText() const =0
virtual bool IsInsideLISP() const =0
virtual int GetFxEventType() const =0
virtual bool IsKeyboardReleaseEvent() const =0
virtual double GetGesturePinchRollAngle() const =0
virtual bool IsMiddleButtonDoubleClick() const =0
virtual bool IsMiddleButtonUp() const =0
virtual bool IsMouseEvent() const =0
virtual GestureState GetGestureState() const =0
virtual void EnableSystemCursorGraphics()=0
virtual bool IsAltPressed() const =0
virtual bool IsLeftButtonUp() const =0
virtual bool IsRightButtonClick() const =0
virtual int GetWheelOrientation() const =0
virtual bool IsMiddleButtonTrippleClick() const =0
virtual bool IsGesture() const =0
virtual bool IsKeyboardEvent() const =0
virtual bool IsMouseMoved() const =0
virtual bool IsSpacePressed() const =0
virtual bool IsLeftButtonClick() const =0
virtual bool IsCancelPressed() const =0
virtual bool IsLeftMouseButtonPressed() const =0
virtual bool IsGesturePinch() const =0
virtual double GetGesturePinchScaleFactor() const =0
virtual bool IsRightMouseButtonPressed() const =0
virtual const OdGsDCPoint GetMousePosition() const =0
virtual ~CFxHitTestInfo()
virtual bool IsShiftPressed() const =0
virtual bool IsKeyboardPressEvent() const =0
virtual bool IsLeftButtonDoubleClick() const =0
virtual bool IsRightButtonDoubleClick() const =0
virtual bool IsInsideDragSelectSequence() const =0
virtual bool IsMiddleButtonClick() const =0
virtual void SkipKeyboardInput()=0
virtual void SkipNextRightMouseButtonUpEvent()=0
virtual const OdGePoint2d GetMousePositionF() const =0
virtual int GetKey() const =0
virtual bool IsMiddleMouseButtonPressed() const =0
virtual bool IsRightButtonTrippleClick() const =0
virtual bool IsCtrlPressed() const =0
virtual const OdGsDCPoint & GetGesturePinchCenterPoint() const =0
virtual bool IsInsideSelect() const =0
virtual bool IsArrowDownPressed() const =0
virtual const CFxEvent * GetEvent() const =0
virtual bool IsLeftButtonTrippleClick() const =0
virtual bool IsGesturePan() const =0
virtual void DisableSystemCursorGraphics()=0
virtual bool IsInsideCommand() const =0
virtual bool IsMouseOverActiveViewport() const =0
virtual bool IsRightButtonDown() const =0
virtual bool IsFxEvent() const =0
virtual const OdGePoint2d & GetGesturePanOffset() const =0
virtual bool IsDragEvent() const =0
virtual bool IsRightButtonUp() const =0
virtual bool IsMiddleButtonDown() const =0
virtual bool IsInsideDragDropSequence() const =0
virtual double GetGestureSwipeAngle() const =0
virtual const CFxDocument * GetFxDocument() const =0
virtual bool IsMouseWheel() const =0
virtual bool IsArrowUpPressed() const =0
enum CFxHitTestInfo::_GestureState GestureState
virtual int SystemCursorDisableCount() const =0
virtual bool IsContinuousEvent() const =0
virtual bool IsLeftButtonDown() const =0
virtual int GetWheelDelta() const =0