The VgIGeometryCallback interface is used to notify the developer that an event has been triggered on a Geometry.
Please refer VgIGeometry::addListener and VgIGeometry via the VgIGeometry::removeListener to see how to add and remove a VgIGeometryCallback listener from a VgIGeometry object.
If you want to treat the VgIGeometry like any other geometry via the VgMapModule::VgIPlaceListener , then consider using a non empty mID for your Vg3DModule::VgPoint or Vg3DModule::VgLine . Given that Vg3DModule::VgGeometryDescriptor::mNotifyPOISelectedOnClick is true by default, you will receive notifications when the VgIGeometry is clicked via the VgMapModule::VgIPlaceListener
- Version
- 2.1.3 Updated documentation with information about alternatively using Vg3DModule::VgGeometryDescriptor::mNotifyPOISelectedOnClick and VgMapModule::VgIPlaceListener
- See also
- VgMapModule::VgIMapModule::addListener
-
VgMapModule::VgIPlaceListener
-
Vg3DModule::VgGeometryDescriptor