ImFusion C++ SDK 4.4.0
ImFusion::Robotics::MouseEventsReceiver Class Reference
Inheritance diagram for ImFusion::Robotics::MouseEventsReceiver:

Public Slots

void trackMousePosition () const

Public Member Functions

 MouseEventsReceiver (QObject *parent=nullptr, int framerate=100, bool blockEventPropagation=false, uint64_t debouncingTimeoutMs=100)
int frameRate () const
void blockEventPropagation (bool val)

Public Attributes

Signal< vec2i > signalMousePosition
Signal< vec2 > signalScroll
Signal< Qt::MouseButton > signalButtonPressed
Signal< Qt::MouseButton > signalButtonReleased

Protected Member Functions

bool eventFilter (QObject *obj, QEvent *event) override

Protected Attributes

QTimer timer
int m_frameRate
std::atomic< bool > m_blockEventPropagation
std::map< QEvent::Type, uint64_t > m_lastEventReceived
uint64_t m_minEventTimeout

Constructor & Destructor Documentation

◆ MouseEventsReceiver()

ImFusion::Robotics::MouseEventsReceiver::MouseEventsReceiver ( QObject * parent = nullptr,
int framerate = 100,
bool blockEventPropagation = false,
uint64_t debouncingTimeoutMs = 100 )
Parameters
parentThe parent object of the qWidget
framerateThe framerate at which the mouse position is streamed
blockEventPropagationWhether the reception of the key press/released event should be propagated further or stopped. If stopped, eventual event filters installed before the current one will not receive any keyboard events.
debouncingTimeoutMsThe accepted timeout between events of the same type. Events occurring within the timeout time from the last event of the same type are not processed

The documentation for this class was generated from the following file:
  • RoboticsPlugin/Include/ImFusion/Robotics/IO/MouseEventsReceiver.h
Search Tab / S to search, Esc to close