VisioMove
2.1.5
|
The Vg3DModule::VgIGeometry interface is used as an abstraction of geometric features that can be added to or removed from the scene. More...
Public Types | |
typedef std::vector < VgEngine::VgPosition > | PositionVector |
Public Member Functions | |
VgIGeometry () | |
Constructor. More... | |
virtual | ~VgIGeometry () |
Destructor. More... | |
virtual VgIGeometryType | getType () const |
Gets the geometry type. More... | |
virtual VgEngine::VgRefPtr < VgEngine::VgLayer > | getLayer () |
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... | |
virtual const VgEngine::VgVisibilityRamp | getVisibilityRamp () const |
virtual void | setVisibilityRamp (const VgEngine::VgVisibilityRamp &pRamp) |
Sets the visibility ramp. More... | |
virtual const std::string & | getID () const |
virtual bool | getNotifyPOISelectedOnClick () const |
virtual void | setNotifyPOISelectedOnClick (bool pValue) |
Sets the VgIGeometry to call the VgIMapModule::VgIPlaceListeners when the user clicks on the VgIGeometry. More... | |
virtual bool | getBoundingPositions (PositionVector &pResult) |
Returns a vector of points that can be used to determine a viewpoint where one is guaranteed that the whole object is visible. More... | |
Vg3DModule::VgIGeometry * | asGeometry () |
Casts this instance into a VgIGeometry. More... | |
virtual Vg3DModule::VgPoint * | asPoint () |
Casts this instance into a VgPoint. More... | |
virtual Vg3DModule::VgLine * | asLine () |
Casts this instance into a VgLine. 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... | |
virtual 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... | |
float | getScale () const |
void | setScale (float pScale) |
Sets the spatial's scale. More... | |
int | getZIndex () const |
void | setZIndex (int pZIndex) |
Sets the Z Index, an object with a smaller ZIndex will be drawn in front of another with a larger one. More... | |
bool | isDrawnOnTop () const |
void | setDrawOnTop (bool pEnable) |
Sets the drawOnTop flag. More... | |
virtual void | setVisible (bool pIsVisible) |
Sets the visibility. More... | |
virtual bool | isVisible () const |
![]() | |
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... | |
int | 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... | |
Friends | |
class | VgEngine::VgObjectBridge |
Additional Inherited Members | |
![]() | |
VgSpatial () | |
Default constructor. More... | |
virtual | ~VgSpatial () |
Destructor. More... | |
![]() | |
Private * | mPrivate |
Private. More... | |
![]() | |
int | mNbReferences |
The number of references to this object. More... | |
The Vg3DModule::VgIGeometry interface is used as an abstraction of geometric features that can be added to or removed from the scene.
typedef std::vector< VgEngine::VgPosition > Vg3DModule::VgIGeometry::PositionVector |
Vg3DModule::VgIGeometry::VgIGeometry | ( | ) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Adds a listener to the geometry object.
Alternatively you can use setNotifyPOISelectedOnClick with true and use the VgMapModule::VgIMapModule::addListener to receive the notifications in one place.
pCallback | The callback to associate with this geometry object. |
|
virtual |
Casts this instance into a VgIGeometry.
Reimplemented from VgEngine::VgSpatial.
|
virtual |
Casts this instance into a VgLine.
Reimplemented from VgEngine::VgSpatial.
Reimplemented in Vg3DModule::VgPoint, and Vg3DModule::VgLine.
|
virtual |
Casts this instance into a VgPoint.
Reimplemented from VgEngine::VgSpatial.
Reimplemented in Vg3DModule::VgPoint, and Vg3DModule::VgLine.
|
virtual |
Returns a vector of points that can be used to determine a viewpoint where one is guaranteed that the whole object is visible.
pResult | Vector reference where it will place the results. The VgSRS of all positions will not be geo-referenced. |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Gets the geometry type.
Reimplemented in Vg3DModule::VgPoint, and Vg3DModule::VgLine.
|
virtual |
|
virtual |
Removes a listener from the geometry object.
pCallback | The callback to disassociate from this geometry object. |
|
virtual |
Sets the associated layer.
pLayer | The VgLayer to associate with the geometry object. Pass pLayer as null to disassociate the geometry object from a layer. |
pHaveGeographicCoherence | An optional parameter who by default is true. Is used to determine the geographic coherence of the geometry. If set to false, then the geometry will be coherent with the scene. |
|
virtual |
Sets the VgIGeometry to call the VgIMapModule::VgIPlaceListeners when the user clicks on the VgIGeometry.
This is done after calling all the listeners added to the VgIGeometry directly.
|
virtual |
Sets the visibility ramp.
|
friend |