GetPosition

This method returns the camera’s position and orientation.

                                  

JavaScript

 

GetPosition(

       AltitudeType)

 

C#

 

IPosition80 GetPosition(

       AltitudeTypeCode AltitudeType = AltitudeTypeCode.ATC_TERRAIN_RELATIVE)

 

C++

 

HRESULT GetPosition(

       AltitudeTypeCode AltitudeType,

       IPosition80 ** pVal) 

Parameters

AltitudeType

An enum determining how the altitude is interpreted. The following are the possible values:

·          ATC_TERRAIN_RELATIVE = 0
Places the object’s pivot point at a specified altitude above the ground.

·          ATC_TERRAIN_ABSOLUTE = 3
Places the object’s pivot point at a specified altitude above the terrain database vertical datum base ellipsoid.

·          ATC_3DML_RELATIVE = 4
Places the object’s pivot point at a specified altitude above the 3DML layer.

Note:    ATC_PIVOT_RELATIVE and ATC_ON_TERRAIN values apply only for 2D shapes and polygons. ATC_3DML_RELATIVE only applies to image and text labels.

Return Value

pVal

An IPosition80 representing the position of the camera, defined by its coordinates in the 3D World.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.