VisioMove SDK (Android)
2.1.22
|
Public Member Functions | |
double | computeDistance (VgPositionVector pPositions) |
double | computeDistance (VgPosition pPos1, VgPosition pPos2) |
double | computeHeadingAngle (VgPosition pPosPivot, VgPosition pPos1, VgPosition pPos2) |
double | computePitchAngle (VgPosition pPosPivot, VgPosition pPos1, VgPosition pPos2) |
VgPosition | computeMiddlePoint (VgPosition pPos1, VgPosition pPos2) |
VgPosition | offsetPosition (VgPosition pPosition, double pHeadingInDegrees, double pPitchInDegrees, double pDistanceInMeters) |
VgSRSRefPtr | editGeoReferencedSRS () |
VgSRSConstRefPtr | getGeoReferencedSRS () |
VgSRSRefPtr | editSceneSRS () |
VgSRSConstRefPtr | getSceneSRS () |
void | convert (VgPosition pPos, VgSRSConstRefPtr pSRS) |
void | geoConvert (VgPosition pPos, VgSRSConstRefPtr pSRS) |
VgPositionVector | simplifyLineForWidth (VgPositionVector pPositions, double pWidth) |
boolean | isInside2D (VgPosition pPosition, VgPositionVector pPolygon) |
Provides various utility methods for VgEngine::VgPosition
double VgPositionToolbox.computeDistance | ( | VgPositionVector | pPositions | ) |
Computes the distance in meters from an ordered sequence of positions.
pPositions | An ordered sequence of positions. |
double VgPositionToolbox.computeDistance | ( | VgPosition | pPos1, |
VgPosition | pPos2 | ||
) |
Computes the distance in meters between two positions.
pPos1 | Position one |
pPos2 | Position two |
double VgPositionToolbox.computeHeadingAngle | ( | VgPosition | pPosPivot, |
VgPosition | pPos1, | ||
VgPosition | pPos2 | ||
) |
Computes the heading angle, in degrees, between Pos1-Pivot and Pos2-Pivot.
pPosPivot | Pivot Position |
pPos1 | Position one |
pPos2 | Position two |
VgPosition VgPositionToolbox.computeMiddlePoint | ( | VgPosition | pPos1, |
VgPosition | pPos2 | ||
) |
Computes the middle point of two positions. The positions will be converted to scene SRS with geographic coherence before computing. The result position will be expressed in the georeferenced SRS.
pPos1 | The first position. |
pPos2 | The second position. |
double VgPositionToolbox.computePitchAngle | ( | VgPosition | pPosPivot, |
VgPosition | pPos1, | ||
VgPosition | pPos2 | ||
) |
Computes the pitch angle, in degrees, between Pos1-Pivot and Pos2-Pivot.
pPosPivot | Pivot Position |
pPos1 | Position 1 |
pPos2 | Position 2 |
void VgPositionToolbox.convert | ( | VgPosition | pPos, |
VgSRSConstRefPtr | pSRS | ||
) |
Utility method to convert a position to a given SRS.
pPos | The position to convert. |
pSRS | The spatial reference system in which to convert the position. If NULL it is assumed that WGS84 is wanted. |
VgSRSRefPtr VgPositionToolbox.editGeoReferencedSRS | ( | ) |
Returns the engine's main georeferenced SRS.
VgSRSRefPtr VgPositionToolbox.editSceneSRS | ( | ) |
Returns the scene's metric SRS.
void VgPositionToolbox.geoConvert | ( | VgPosition | pPos, |
VgSRSConstRefPtr | pSRS | ||
) |
Utility method to convert a position to a given SRS with geographic coherence.
pPos | The position to convert. |
pSRS | The spatial reference system in which to convert the position. If NULL it is assumed that WGS84 is wanted. |
VgSRSConstRefPtr VgPositionToolbox.getGeoReferencedSRS | ( | ) |
Returns the engine's main georeferenced SRS.
VgSRSConstRefPtr VgPositionToolbox.getSceneSRS | ( | ) |
Returns the scene's metric SRS.
boolean VgPositionToolbox.isInside2D | ( | VgPosition | pPosition, |
VgPositionVector | pPolygon | ||
) |
Utility to determine if a position is inside a polygon
pPosition | position to test |
pPolygon | vector of points, it assumes the VgSRS of all its points are the same, it should have at least 3 elements. |
VgPosition VgPositionToolbox.offsetPosition | ( | VgPosition | pPosition, |
double | pHeadingInDegrees, | ||
double | pPitchInDegrees, | ||
double | pDistanceInMeters | ||
) |
Offsets a position with a distance in meters given a direction.
pPosition | Start position |
pHeadingInDegrees | Heading in degrees [0,360] (0 for north, increasing value start to east). |
pPitchInDegrees | Pitch in degrees [-90,90] (0 to look "forward" towards the horizon, negative values to look down) |
pDistanceInMeters | Distance in meters |
VgPositionVector VgPositionToolbox.simplifyLineForWidth | ( | VgPositionVector | pPositions, |
double | pWidth | ||
) |
Utility to simplify a line (vector of positions) such that the resulting line is simpler and its turn's radius is wider than half the width. This function for advanced users is used for computing positions and subsequently creating lines to be seen at different distances.
pPositions | input vector of positions |
pWidth | The width of the line that is to be simplified. The larger the width, the greater the simplifiction of the line's position vector. |