VisioMove
2.1.5
|
The VgPoint object can be associated with a layer within the 3D view. More...
Public Types | |
typedef VgPointDescriptor | Descriptor |
![]() | |
typedef std::vector < VgEngine::VgPosition > | PositionVector |
Public Member Functions | |
Vg3DModule::VgIGeometryType | getType () const |
VgEngine::VgAltitudeMode | getAltitudeMode () const |
void | setAltitudeMode (const VgEngine::VgAltitudeMode &pAltitudeMode) |
Sets the altitude mode. More... | |
VgEngine::VgAnchorMode | getAnchorPosition () const |
void | setAnchorPosition (const VgEngine::VgAnchorMode &pAnchorMode) |
Sets the anchor position. More... | |
float | getGeometryConstantSizeDistance () const |
void | setGeometryConstantSizeDistance (float pDistanceInMeters) |
Sets the distance at which the VgPoint does not become bigger as you approach it. More... | |
bool | isForceFrontFaceEnabled () const |
Sets the scale of the VgPoint when viewed from a distance equal to mGeometryConstantSizeDistance. More... | |
void | setForceFrontFace (bool pEnable) |
Sets a flag to force the front face behavior. More... | |
VgEngine::VgOrientationConstraints | getOrientationConstraints () const |
void | setOrientationConstraints (const VgEngine::VgOrientationConstraints &pConstraints) |
Sets new orientation constraints. More... | |
unsigned int | getNbMarkers () const |
VgEngine::VgRefPtr< VgMarker > | editMarker (unsigned int pIndex) |
bool | insertMarker (const Vg3DModule::VgMarkerDescriptor *pMarkerDescriptor, int pMarkerPosition) |
Create and insert a new marker. More... | |
bool | removeMarker (int pMarkerPosition) |
Remove the marker at a given index. More... | |
Vg3DModule::VgPoint * | asPoint () |
Casts this instance into a VgPoint. More... | |
Vg3DModule::VgLine * | asLine () |
Casts this instance into a VgLine. More... | |
bool | setSizePolicy (VgEngine::VgSizePolicy pSizePolicy) |
Changes the size policy of the VgPoint: VgEngine::eVgSizePolicyFixedScale: the mScale Parameter determines the scale of the VgPoint. More... | |
VgEngine::VgSizePolicy | getSizePolicy () const |
Returns the current size policy of the VgPoint. More... | |
void | getBoundingRect (float &pRectangleWidth, float &pRectangleHeight) const |
Returns the current BoundingRect of the VgPoint. More... | |
void | setBoundingRect (float pRectangleWidth, float pRectangleHeight) |
Sets the current BoundingRect of the VgPoint. More... | |
![]() | |
VgIGeometry () | |
Constructor. More... | |
virtual | ~VgIGeometry () |
Destructor. 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... | |
![]() | |
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... | |
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 VgEngine::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.
|
virtual |
Casts this instance into a VgLine.
Reimplemented from Vg3DModule::VgIGeometry.
|
virtual |
Casts this instance into a VgPoint.
Reimplemented from Vg3DModule::VgIGeometry.
VgEngine::VgRefPtr< VgMarker > Vg3DModule::VgPoint::editMarker | ( | unsigned int | pIndex | ) |
pIndex | Index of marker to edit. |
VgEngine::VgAltitudeMode Vg3DModule::VgPoint::getAltitudeMode | ( | ) | const |
VgEngine::VgAnchorMode Vg3DModule::VgPoint::getAnchorPosition | ( | ) | const |
void Vg3DModule::VgPoint::getBoundingRect | ( | float & | pRectangleWidth, |
float & | pRectangleHeight | ||
) | const |
Returns the current BoundingRect of the VgPoint.
values of -1.0 means undefined.
pRectangleWidth | |
pRectangleHeight |
float Vg3DModule::VgPoint::getGeometryConstantSizeDistance | ( | ) | const |
unsigned int Vg3DModule::VgPoint::getNbMarkers | ( | ) | const |
VgEngine::VgOrientationConstraints Vg3DModule::VgPoint::getOrientationConstraints | ( | ) | const |
VgEngine::VgSizePolicy Vg3DModule::VgPoint::getSizePolicy | ( | ) | const |
Returns the current size policy of the VgPoint.
For labels from MapEditor, the default is VgEnging::eVgSizePolicyFitBoundingRectangle for user created VgPoints, the default for VgPointDescriptor is VgEngine::eVgSizePolicyFixedScale
|
virtual |
Reimplemented from Vg3DModule::VgIGeometry.
bool Vg3DModule::VgPoint::insertMarker | ( | const Vg3DModule::VgMarkerDescriptor * | pMarkerDescriptor, |
int | pMarkerPosition | ||
) |
Create and insert a new marker.
pMarkerDescriptor | Descriptor of new marker to create and insert |
pMarkerPosition | Position to insert the marker. Value of -1 means add at end. 0 means beginning. The markers shift on insertion. |
bool Vg3DModule::VgPoint::isForceFrontFaceEnabled | ( | ) | const |
Sets the scale of the VgPoint when viewed from a distance equal to mGeometryConstantSizeDistance.
The default value of this property is 1.0.
bool Vg3DModule::VgPoint::removeMarker | ( | int | pMarkerPosition | ) |
Remove the marker at a given index.
You cannot remove the last marker.
pMarkerPosition | Position of marker to remove. Value of -1 means remove from end. |
void Vg3DModule::VgPoint::setAltitudeMode | ( | const VgEngine::VgAltitudeMode & | pAltitudeMode | ) |
Sets the altitude mode.
void Vg3DModule::VgPoint::setAnchorPosition | ( | const VgEngine::VgAnchorMode & | pAnchorMode | ) |
Sets the anchor position.
void Vg3DModule::VgPoint::setBoundingRect | ( | float | pRectangleWidth, |
float | pRectangleHeight | ||
) |
Sets the current BoundingRect of the VgPoint.
values of -1.0 means undefined. Usually called before setSizePolicy(VgEnging::eVgSizePolicyFitBoundingRectangle)
pRectangleWidth | |
pRectangleHeight |
void Vg3DModule::VgPoint::setForceFrontFace | ( | bool | pEnable | ) |
Sets a flag to force the front face behavior.
In cases where the camera can view the poi from behind, our engine will not display the label. For example this will happen if the VgPoint has a fixed orientation (it will not happen if it is always camera facing). Default value is false. Setting this to true will allow to view fixed VgPoints from behind.
void Vg3DModule::VgPoint::setGeometryConstantSizeDistance | ( | float | pDistanceInMeters | ) |
Sets the distance at which the VgPoint does not become bigger as you approach it.
When the camera is within this distance of the VgPoint, the visible size of the VgPoint on the screen will be the same as what it looked like when it was mGeometryConstantSizeDistance meters away. If set to 0.0, the size of the POI will be determined by mScale, regardless of it's distance from the camera. The default value of this property is 700.0.
void Vg3DModule::VgPoint::setOrientationConstraints | ( | const VgEngine::VgOrientationConstraints & | pConstraints | ) |
Sets new orientation constraints.
bool Vg3DModule::VgPoint::setSizePolicy | ( | VgEngine::VgSizePolicy | pSizePolicy | ) |
Changes the size policy of the VgPoint: VgEngine::eVgSizePolicyFixedScale: the mScale Parameter determines the scale of the VgPoint.
VgEnging::eVgSizePolicyFitBoundingRectangle: the mScale of the VgPoint will be updated such that its markers will fit inside the BoundingRect.
pSizePolicy | size policy to use. If using VgEnging::eVgSizePolicyFitBoundingRectangle, make sure the mRectangleWidth and mRectangleHeight have correct values. |
|
friend |
|
friend |