CFx SDK Documentation  2020SP3
FxHitTestInfo.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2020 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 
28 class CFxString;
29 class CFxDocument;
30 
37 {
38 public:
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;
103  virtual bool IsLeftMouseButtonPressed() const = 0;
107  virtual bool IsMiddleMouseButtonPressed() const = 0;
111  virtual bool IsRightMouseButtonPressed() const = 0;
115  virtual bool IsShiftPressed() const = 0;
119  virtual bool IsCtrlPressed() const = 0;
123  virtual bool IsAltPressed() const = 0;
127  virtual bool IsMouseMoved() const = 0;
131  virtual bool IsLeftButtonDown() const = 0;
135  virtual bool IsLeftButtonUp() const = 0;
139  virtual bool IsMiddleButtonDown() const = 0;
143  virtual bool IsMiddleButtonUp() const = 0;
147  virtual bool IsRightButtonDown() const = 0;
151  virtual bool IsRightButtonUp() const = 0;
155  virtual bool IsMouseOverActiveViewport() const = 0;
159  virtual int GetWheelDelta() const = 0;
165  virtual int GetWheelOrientation() const = 0;
169  virtual const OdGePoint2d & GetGesturePanOffset() const = 0;
173  virtual double GetGesturePinchScaleFactor() const = 0;
177  virtual const OdGsDCPoint & GetGesturePinchCenterPoint() const = 0;
181  virtual double GetGesturePinchRollAngle() const = 0;
185  virtual double GetGestureSwipeAngle() const = 0;
189  virtual bool IsRightButtonTrippleClick() const = 0;
193  virtual bool IsMiddleButtonTrippleClick() const = 0;
197  virtual bool IsLeftButtonTrippleClick() const = 0;
201  virtual bool IsRightButtonDoubleClick() const = 0;
205  virtual bool IsMiddleButtonDoubleClick() const = 0;
209  virtual bool IsLeftButtonDoubleClick() const = 0;
213  virtual bool IsRightButtonClick() const = 0;
217  virtual bool IsMiddleButtonClick() const = 0;
221  virtual bool IsLeftButtonClick() const = 0;
225  virtual bool IsInsideDragSelectSequence() const = 0;
229  virtual bool IsInsideDragDropSequence() const = 0;
230 
231 //keyboard events
235  virtual bool IsCancelPressed() const = 0;
239  virtual bool IsSpacePressed() const = 0;
243  virtual bool IsArrowUpPressed() const = 0;
247  virtual bool IsArrowDownPressed() const = 0;
251  virtual bool IsContinuousEvent() const = 0;
255  virtual bool IsInsideLISP() const = 0;
259  virtual bool IsInsideCommand() const = 0;
263  virtual bool IsInsideSelect() const = 0;
267  virtual int GetKey() const = 0;
271  virtual const CFxString& GetKeyText() const = 0;
275  virtual const CFxDocument* GetFxDocument() const = 0;
279  virtual void EnableSystemCursorGraphics() = 0;
283  virtual void DisableSystemCursorGraphics() = 0;
287  virtual int SystemCursorDisableCount() const = 0;
288 
293 
297  virtual void SkipKeyboardInput() = 0;
298 
299  virtual const CFxEvent* GetEvent() const = 0;
300 
301 };
302 
303 #include "FxPragmaPop.h"
FxPragmaPop.h
CFxHitTestInfo::IsArrowUpPressed
virtual bool IsArrowUpPressed() const =0
CFxHitTestInfo::GetGesturePinchScaleFactor
virtual double GetGesturePinchScaleFactor() const =0
CFxHitTestInfo::IsRightButtonTrippleClick
virtual bool IsRightButtonTrippleClick() const =0
CFxHitTestInfo::IsLeftButtonDoubleClick
virtual bool IsLeftButtonDoubleClick() const =0
CFxHitTestInfo::IsAltPressed
virtual bool IsAltPressed() const =0
CFxHitTestInfo::IsRightButtonDoubleClick
virtual bool IsRightButtonDoubleClick() const =0
CFxHitTestInfo::IsRightButtonClick
virtual bool IsRightButtonClick() const =0
CFxHitTestInfo::GetGesturePanOffset
virtual const OdGePoint2d & GetGesturePanOffset() const =0
CFxHitTestInfo
Definition: FxHitTestInfo.h:37
CFxHitTestInfo::IsRightMouseButtonPressed
virtual bool IsRightMouseButtonPressed() const =0
CFxHitTestInfo::IsRightButtonDown
virtual bool IsRightButtonDown() const =0
CFxEvent
#define CFxEvent
Definition: FxPlatformSettings.h:90
CFxHitTestInfo::IsInsideCommand
virtual bool IsInsideCommand() const =0
CFxHitTestInfo::GetFxEventType
virtual int GetFxEventType() const =0
CFxHitTestInfo::GetMousePosition
virtual const OdGsDCPoint GetMousePosition() const =0
CFxHitTestInfo::IsGesturePan
virtual bool IsGesturePan() const =0
CFxHitTestInfo::IsLeftButtonTrippleClick
virtual bool IsLeftButtonTrippleClick() const =0
CFxHitTestInfo::IsArrowDownPressed
virtual bool IsArrowDownPressed() const =0
CFxHitTestInfo::IsDragEvent
virtual bool IsDragEvent() const =0
OdGsDCPoint
Definition: GsDefs.h:53
DDKERNEL.h
CFxHitTestInfo::GetGestureState
virtual GestureState GetGestureState() const =0
CFxHitTestInfo::IsMouseMoved
virtual bool IsMouseMoved() const =0
CFxHitTestInfo::CFxHitTestInfo
CFxHitTestInfo()
CFxHitTestInfo::IsMiddleButtonClick
virtual bool IsMiddleButtonClick() const =0
CFxHitTestInfo::GetEvent
virtual const CFxEvent * GetEvent() const =0
CFxHitTestInfo::IsFxEvent
virtual bool IsFxEvent() const =0
CFxHitTestInfo::IsSpacePressed
virtual bool IsSpacePressed() const =0
CFxHitTestInfo::IsContinuousEvent
virtual bool IsContinuousEvent() const =0
CFxHitTestInfo::IsMiddleMouseButtonPressed
virtual bool IsMiddleMouseButtonPressed() const =0
CFxHitTestInfo::IsKeyboardPressEvent
virtual bool IsKeyboardPressEvent() const =0
CFxHitTestInfo::GetKeyText
virtual const CFxString & GetKeyText() const =0
CFxHitTestInfo::IsMouseWheel
virtual bool IsMouseWheel() const =0
CFxHitTestInfo::GetGestureSwipeAngle
virtual double GetGestureSwipeAngle() const =0
CFxHitTestInfo::IsLeftButtonUp
virtual bool IsLeftButtonUp() const =0
CFxHitTestInfo::EnableSystemCursorGraphics
virtual void EnableSystemCursorGraphics()=0
CFxHitTestInfo::DisableSystemCursorGraphics
virtual void DisableSystemCursorGraphics()=0
CFxHitTestInfo::IsRightButtonUp
virtual bool IsRightButtonUp() const =0
CFxString
Definition: FxString.h:48
CFxHitTestInfo::GetWheelDelta
virtual int GetWheelDelta() const =0
CFxHitTestInfo::IsInsideLISP
virtual bool IsInsideLISP() const =0
CFxHitTestInfo::IsMiddleButtonTrippleClick
virtual bool IsMiddleButtonTrippleClick() const =0
CFxHitTestInfo::IsGesturePinch
virtual bool IsGesturePinch() const =0
DbObjectId.h
CFxHitTestInfo::IsKeyboardEvent
virtual bool IsKeyboardEvent() const =0
CFxHitTestInfo::IsInsideSelect
virtual bool IsInsideSelect() const =0
CFxHitTestInfo::~CFxHitTestInfo
virtual ~CFxHitTestInfo()
CFxHitTestInfo::IsMouseEvent
virtual bool IsMouseEvent() const =0
CFxHitTestInfo::IsCtrlPressed
virtual bool IsCtrlPressed() const =0
CFxDocument
Definition: FxDocument.h:47
CFxHitTestInfo::_GestureState
_GestureState
Definition: FxHitTestInfo.h:43
CFxHitTestInfo::IsKeyboardReleaseEvent
virtual bool IsKeyboardReleaseEvent() const =0
CFxHitTestInfo::IsMiddleButtonUp
virtual bool IsMiddleButtonUp() const =0
DDKERNEL_API
#define DDKERNEL_API
Definition: DDKERNEL.h:32
CFxHitTestInfo::GetWheelOrientation
virtual int GetWheelOrientation() const =0
CFxHitTestInfo::SystemCursorDisableCount
virtual int SystemCursorDisableCount() const =0
CFxHitTestInfo::IsLeftMouseButtonPressed
virtual bool IsLeftMouseButtonPressed() const =0
CFxHitTestInfo::IsInsideDragDropSequence
virtual bool IsInsideDragDropSequence() const =0
CFxHitTestInfo::GetFxDocument
virtual const CFxDocument * GetFxDocument() const =0
CFxHitTestInfo::IsMiddleButtonDoubleClick
virtual bool IsMiddleButtonDoubleClick() const =0
CFxHitTestInfo::GestureState
enum CFxHitTestInfo::_GestureState GestureState
CFxHitTestInfo::IsMiddleButtonDown
virtual bool IsMiddleButtonDown() const =0
CFxHitTestInfo::IsInsideDragSelectSequence
virtual bool IsInsideDragSelectSequence() const =0
GsDefs.h
CFxHitTestInfo::GetGesturePinchCenterPoint
virtual const OdGsDCPoint & GetGesturePinchCenterPoint() const =0
CFxHitTestInfo::GetGesturePinchRollAngle
virtual double GetGesturePinchRollAngle() const =0
CFxHitTestInfo::IsCancelPressed
virtual bool IsCancelPressed() const =0
CFxHitTestInfo::GetKey
virtual int GetKey() const =0
FxPragmaPush.h
CFxHitTestInfo::SkipNextRightMouseButtonUpEvent
virtual void SkipNextRightMouseButtonUpEvent()=0
CFxHitTestInfo::IsLeftButtonDown
virtual bool IsLeftButtonDown() const =0
GePoint2d.h
CFxHitTestInfo::IsGesture
virtual bool IsGesture() const =0
CFxHitTestInfo::IsShiftPressed
virtual bool IsShiftPressed() const =0
CFxHitTestInfo::IsMouseOverActiveViewport
virtual bool IsMouseOverActiveViewport() const =0
CFxHitTestInfo::IsLeftButtonClick
virtual bool IsLeftButtonClick() const =0
CFxHitTestInfo::SkipKeyboardInput
virtual void SkipKeyboardInput()=0
OdGePoint2d
Definition: GePoint2d.h:60