3D Model specific access methods.
This class represents the access methods that are specific to a 3D Model. They also allow setting of the various attributes
- Deprecated
- Deprecated as of MapLink 11.1. Advised to use MapLink Earth SDK instead.
|
const TSL3DCoord & | centre () const |
|
void | centre (const TSL3DCoord &coord) |
|
bool | ENURotation () const |
|
void | ENURotation (bool newValue) |
|
double | xRotation () const |
|
void | xRotation (double newRotation) |
|
double | yRotation () const |
|
void | yRotation (double newRotation) |
|
double | zRotation () const |
|
void | zRotation (double newRotation) |
|
TSL3DBoundingBox | boundingBox (int surfaceID=-1) const |
|
void | boundingBox (TSL3DCoord &bottomLeft, TSL3DCoord &topRight, int surfaceID=-1) const |
|
TSL3DCoord | centroid () const |
|
TSL3DEntity * | clone () const |
|
double | distance (const TSL3DCoord &point, bool useRenderedExtent=true, int drawingSurfaceID=-1) const |
|
bool | equals (const TSL3DEntity *other) const |
|
void | move (const TSL3DCoord &location, const TSL3DCoord &reference) |
|
TSL3DEntitySet * | parent () |
|
const TSL3DEntitySet * | parent () const |
|
void | scale (double scaleParam, const TSL3DCoord *origin=0) |
|
void | scale (double scaleX, double scaleY, double scaleZ, const TSL3DCoord *origin=0) |
|
double | squareDistance (const TSL3DCoord &point, bool useRenderedExtent=true, int drawingSurfaceID=-1) const |
|
void | translate (double latitudeOffset, double longitudeOffset, double altitudeOffset) |
|
bool | addDataSet () |
|
bool | addDataSet (TSLDataHandler *toUseDataHandler) |
|
bool | clearRenderingAttributes () |
|
TSLDataSet * | dataSet () |
|
const TSLDataSet * | dataSet () const |
|
short | dataSourceID () const |
|
void | dataSourceID (short dataSourceID) |
|
bool | deleteDataSet () |
|
void | destroy () |
|
TSLEntityID | entityID () const |
|
void | entityID (TSLEntityID value) |
|
TSLFeatureID | featureID () const |
|
void | featureID (TSLFeatureID newValue) |
|
bool | getRendering (TSLRenderingAttributeInt attribute, int *result) const |
|
bool | getRendering (TSLRenderingAttributeDouble attribute, double *result) const |
|
bool | getRendering (TSLRenderingAttributeBool attribute, bool *result) const |
|
bool | getRendering (TSLRenderingAttributes &result) const |
|
TSL3DEntity * | is3DEntity () |
|
const TSL3DEntity * | is3DEntity () const |
|
TSLEntity * | isEntity () |
|
const TSLEntity * | isEntity () const |
|
bool | isOptimisedEntity () const |
|
void | name (const char *newValue) |
|
const char * | name () const |
|
void | releaseResources (int surfaceID) |
|
bool | setRendering (TSLRenderingAttributeInt attribute, int value) |
|
bool | setRendering (TSLRenderingAttributeDouble attribute, double value) |
|
bool | setRendering (TSLRenderingAttributeBool attribute, bool value) |
|
bool | setRendering (const TSLRenderingAttributes &attributes) |
|
void | sourceID (int value) |
|
int | sourceID () const |
|
TSLGeometryType | type () const |
|
void | version (TSLVersion value) |
|
TSLVersion | version () const |
|
bool TSL3DModel::ENURotation |
( |
| ) |
const |
Returns whether ENU rotation is used. ENU, standing for East, North and Up, determines how the rotation angles are interpreted.
If the ENURotation flag is set to true, then rotations are applied to the sensor once it has been translated so that its plane is tangental to the earth's surface. In this case the x-axis is in the east direction, the y-axis is in the north direction and the z-axis is up, or the vector from the centre of the earth to the center point of the ellipse.
If the ENURotation flag is set to false, then rotations are applied to the sensor in geocentric coordinate space. In this case the x-axis is the vector from the centre of the earth towards the geodetic location 0 degrees latitude and 0 degrees longitude, the y-axis is the vector from the centre of the earth towards the geodetic location 0 degrees latitude and 90 degrees longitude and the z-axis is the vector from the centre of the earth towards the north pole.
This value also determines how the azimuth and elevation angles are interpreted; set to false then the azimuth and elevation sweep in the unrotated z and y axes respectively, set to true then they sweep in the unrotated Up and Northing axes respectively.
void TSL3DModel::ENURotation |
( |
bool | newValue | ) |
|
Sets whether ENU rotation is used. ENU, standing for East, North and Up, determines how the rotation angles are interpreted.
If the ENURotation flag is set to true, then rotations are applied to the sensor once it has been translated so that its plane is tangental to the earth's surface. In this case the x-axis is in the east direction, the y-axis is in the north direction and the z-axis is up, or the vector from the centre of the earth to the center point of the sensor.
If the ENURotation flag is set to false, then rotations are applied to the sensor in geocentric coordinate space. In this case the x-axis is the vector from the centre of the earth towards the geodetic location 0 degrees latitude and 0 degrees longitude, the y-axis is the vector from the centre of the earth towards the geodetic location 0 degrees latitude and 90 degrees longitude and the z-axis is the vector from the centre of the earth towards the north pole.
This value also determines how the azimuth and elevation angles are interpreted; set to false then the azimuth and elevation sweep in the unrotated z and y axes respectively, set to true then they sweep in the unrotated Up and Northing axes respectively.
- Parameters
-
newValue | The new value for the ENURotation flag. |