VisioMove SDK (Android)  2.1.22
 All Classes Functions Variables Pages
Geometry Events

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.

  1. What is a Geometry Event
  2. Adding Event Listeners
  3. Removing Event Listeners

What is a Geometry Event

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.

Adding Event Listeners

To add an event listener to a Vg3DModule::VgIGeometry object, use the Vg3DModule::VgIGeometry::addListener method.

Removing Event Listeners

To remove an event listener from a Vg3DModule::VgIGeometry object, use the Vg3DModule::VgIGeometry::removeListener method.

VisioMove 2.1.22, Visioglobe® 2016