mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 00:37:46 +08:00
0.12.3: Increased Tango rendering performance, modified all handleEvent() with new interface (now returning bool)
This commit is contained in:
@@ -147,10 +147,15 @@ protected:
|
||||
* events are received. If a handling function
|
||||
* takes too much time, the events list can grow
|
||||
* faster than it is emptied. The event can be
|
||||
* modified but must not be deleted.
|
||||
* modified.
|
||||
* @return "true" to notify UEventsManager that this handler took ownership of the
|
||||
* event (meaning it must delete it). The event will
|
||||
* not be dispatched to next handlers.
|
||||
* @return "false" to let event be dispatched to next handlers (default behavior). UEventsManager
|
||||
* will take care of deleting the event.
|
||||
*
|
||||
*/
|
||||
virtual void handleEvent(UEvent * event) = 0;
|
||||
virtual bool handleEvent(UEvent * event) = 0;
|
||||
|
||||
protected:
|
||||
/**
|
||||
|
||||
@@ -175,7 +175,7 @@ private:
|
||||
/*
|
||||
* This method dispatches an event to all handlers.
|
||||
*/
|
||||
virtual void dispatchEvent(UEvent * event, const UEventsSender * sender);
|
||||
virtual bool dispatchEvent(UEvent * event, const UEventsSender * sender);
|
||||
|
||||
/*
|
||||
* This method is used to add an events
|
||||
|
||||
Reference in New Issue
Block a user