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
Vg3DModule::VgIGeometryCallback::VgIGeometryCallback |
( |
| ) |
|
|
inlineprotected |
virtual Vg3DModule::VgIGeometryCallback::~VgIGeometryCallback |
( |
| ) |
|
|
inlinevirtual |
virtual void Vg3DModule::VgIGeometryCallback::handleGeometryEvent |
( |
const VgIGeometryEvent & |
pEvent | ) |
|
|
pure virtual |
This method is invoked when an event is triggered on the related Geometry.
- Parameters
-
pEvent | The geometry event that just happened and triggered this callback. |
Referenced by ~VgIGeometryCallback().
The documentation for this interface was generated from the following file: