Package cz.fidentis.analyst.data.face
Interface HumanFaceEventBus
- All Known Subinterfaces:
HumanFace
- All Known Implementing Classes:
HumanFaceImpl
public interface HumanFaceEventBus
Changes in the human face and its data structures (e.g., mesh model, etc.)
can be monitored by listeners. Listeners have to implement the
HumanFaceListener
interface and they have to be
registered using the HumanFaceImpl.registerListener(cz.fidentis.analyst.data.face.HumanFaceListener)
method.
Then they are informed about changes in the human automatically via methods
prescribed by the interface.-
Method Summary
Modifier and TypeMethodDescriptionvoid
Broadcast event to registered listeners.void
registerListener
(HumanFaceListener listener) Registers listeners (objects concerned in the human face changes) to receive events.void
unregisterListener
(HumanFaceListener listener) Unregisters listeners from receiving events.
-
Method Details
-
registerListener
Registers listeners (objects concerned in the human face changes) to receive events. If listener isnull
, no exception is thrown and no action is taken.- Parameters:
listener
- Listener concerned in the human face changes.
-
unregisterListener
Unregisters listeners from receiving events.- Parameters:
listener
- Registered listener
-
announceEvent
Broadcast event to registered listeners.- Parameters:
evt
- Event to be triggered.
-