VisioMove SDK (iOS)
2.1.22
|
Adding geometry objects to the 3D module is nice. And it's even nicer to be able to interact with those objects. This section will explain how to register a Vg3DModule::VgIGeometryCallback with a object derived from Vg3DModule::VgIGeometry. Once our callback object has been registered as a listener, we'll start to be notified of events occuring on that object.
At the lowest level, an event describes some user interaction with an object within the VisioMove 3D module. The various event types are described by Vg3DModule::VgIGeometryEvent and it's derived class VgApplication::VgIEvent.
An event is always associated with an object. When an object receives an event, it will forward it to all registered event listeners.
To add an event listener to a Vg3DModule::VgIGeometry object, use the Vg3DModule::VgIGeometry::addListener method.
To remove an event listener from a Vg3DModule::VgIGeometry object, use the Vg3DModule::VgIGeometry::removeListener method.