VisioDevKit
v2.0
|
The VgPoint object can be associated with a layer within the 3D view. More...
Public Types | |
typedef VgPointDescriptor | Descriptor |
Public Member Functions | |
VgEngine::VgConstRefPtr < Descriptor > | getDescriptor () const |
Vg3DModule::VgIGeometryType | getType () const |
![]() | |
VgIGeometry () | |
Constructor. More... | |
virtual | ~VgIGeometry () |
Destructor. More... | |
virtual void | setLayer (VgEngine::VgRefPtr< VgEngine::VgLayer > pLayer, bool pHaveGeographicCoherence=true) |
Sets the associated layer. More... | |
virtual void | addListener (VgEngine::VgRefPtr< Vg3DModule::VgIGeometryCallback > pCallback) |
Adds a listener to the geometry object. More... | |
virtual void | removeListener (VgEngine::VgRefPtr< Vg3DModule::VgIGeometryCallback > pCallback) |
Removes a listener from the geometry object. More... | |
![]() | |
void | setAnimation (const std::string &pAnimationName, VgEngine::VgRefPtr< VgEngine::VgAnimation > &pAnimation) |
Sets an animation on this spatial. More... | |
void | setAnimation (VgEngine::VgRefPtr< VgEngine::VgAnimation > pAnimation) |
Sets an animation with an empty name on this spatial. More... | |
void | setLocalAnimation (VgEngine::VgRefPtr< VgEngine::VgAnimation > pAnimation) |
Sets an animation on this spatial. More... | |
VgConstRefPtr< VgAnimation > | getAnimation (const std::string &pName) const |
Gets an animation from the spatial's animation map. More... | |
VgRefPtr< VgAnimation > | editAnimation (const std::string &pName) |
Edits an animation from the spatial's animation map. More... | |
void | getAnimationNames (std::list< std::string > &pNameList) const |
Gets the list of the stored animation names. More... | |
VgEngine::VgPosition | getPosition () const |
Gets spatial's position. More... | |
void | setPosition (const VgEngine::VgPosition &pPosition, bool pHaveGeographicCoherence=true) |
Sets the spatial position. More... | |
VgEngine::VgOrientation | getOrientation () const |
Gets spatial's orientation. More... | |
void | setOrientation (const VgEngine::VgOrientation &pOrientation) |
Sets the spatial orientation. More... | |
void | setScale (float pScale) |
Sets the spatial's scale. More... | |
![]() | |
VgReferenced () | |
Constructor. More... | |
VgReferenced (const VgReferenced &pThis) | |
Copy constructor. More... | |
virtual | ~VgReferenced () |
Destructor. More... | |
VgReferenced & | operator= (const VgReferenced &pThis) |
Assignment operator. More... | |
void | ref () const |
This method is used to add a reference to this object. More... | |
void | unref () const |
This method is used to remove a reference to this object. More... | |
int | getNbReferences () const |
Retrieves the number of references to this object. More... | |
Protected Member Functions | |
VgPoint () | |
Constructor. More... | |
virtual | ~VgPoint () |
Destructor. More... | |
![]() | |
VgSpatial () | |
Default constructor. More... | |
virtual | ~VgSpatial () |
Destructor. More... | |
Friends | |
class | VgEngine::VgInstanceFactory |
class | VgEngine::VgObjectBridge |
Additional Inherited Members | |
![]() | |
Private * | mPrivate |
Private. More... | |
![]() | |
int | mNbReferences |
The number of references to this object. More... | |
The VgPoint object can be associated with a layer within the 3D view.
When the associated layer is visible, so to will the VgPoint. The VgPoint is located at a specified geographical position and is represented as a textured square.
To use a VgPoint, one must first create it (using Vg3DModule::VgInstanceFactory::instantiate) and then associate it with a layer (using setLayer).
It's possible to subclass VgPoint in order to add custom data. This is demonstrated by the following code snippet:
Once the Point is created, it can be wrapped by MyPoint and associated with a layer.
|
protected |
Constructor.
|
protectedvirtual |
Destructor.
VgEngine::VgConstRefPtr< Descriptor > Vg3DModule::VgPoint::getDescriptor | ( | ) | const |
|
virtual |
Reimplemented from Vg3DModule::VgIGeometry.
|
friend |
|
friend |