VisioMove SDK (iOS)
2.1.22
|
Public Types | |
typedef VgPointDescriptor | Descriptor |
Protected Member Functions | |
VgPoint () | |
virtual | ~VgPoint () |
Protected Member Functions inherited from VgEngine::VgSpatial | |
VgSpatial () | |
virtual | ~VgSpatial () |
Friends | |
class | VgEngine::VgInstanceFactory |
class | VgEngine::VgObjectBridge |
Additional Inherited Members | |
Protected Attributes inherited from VgEngine::VgSpatial | |
Private * | mPrivate |
Protected Attributes inherited from VgEngine::VgReferenced | |
int | mNbReferences |
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).
Subclassing
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 |
|
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 |
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.
pSizePolicy | size policy to use. |
|
friend |
|
friend |