Skip To Content ArcGIS for Developers Sign In Dashboard

KmlViewpoint Class

(Esri::ArcGISRuntime::KmlViewpoint)

Contains all information about the the KML camera and look at point. More...

Header: #include <KmlViewpoint>
Since: Esri::ArcGISRuntime 100.4

Public Functions

KmlViewpoint()
KmlViewpoint(const KmlViewpoint &other)
KmlViewpoint(KmlViewpoint &&other)
~KmlViewpoint()
KmlAltitudeMode altitudeMode() const
double heading() const
bool isEmpty() const
Point location() const
double pitch() const
double range() const
double roll() const
KmlViewpointType type() const
KmlViewpoint &operator=(const KmlViewpoint &other)
KmlViewpoint &operator=(KmlViewpoint &&other)

Static Public Members

KmlViewpoint createCameraViewpoint(const Point &cameraLocation, double heading, double pitch, double roll, KmlAltitudeMode altitudeMode)
KmlViewpoint createLookAtViewpoint(const Point &lookAtLocation, double heading, double pitch, double range, KmlAltitudeMode altitudeMode)
KmlViewpoint createWithViewpoint(const Viewpoint &viewpoint)

Detailed Description

Contains all information about the the KML camera and look at point.

Member Function Documentation

KmlViewpoint::KmlViewpoint()

Default constructor.

Note: This is provided for convenience only and will construct an empty object.

KmlViewpoint::KmlViewpoint(const KmlViewpoint &other)

Copy constructor from the other KmlViewpoint.

KmlViewpoint::KmlViewpoint(KmlViewpoint &&other)

Move constructor from the other KmlViewpoint.

KmlViewpoint::~KmlViewpoint()

Destructor.

KmlAltitudeMode KmlViewpoint::altitudeMode() const

Returns the KML viewpoint's altitude mode.

[static] KmlViewpoint KmlViewpoint::createCameraViewpoint(const Point &cameraLocation, double heading, double pitch, double roll, KmlAltitudeMode altitudeMode)

A static method that creates a KML viewpoint from the provided camera location.

  • cameraLocation - The location of the camera.
  • heading - The heading associated with this viewpoint. This is defined in terms of degrees from 0 (North) to 360, with 90 being East.
  • pitch - The pitch value (elevation angle) in degrees of the observer's view, values between 90 and 180 indicate the camera is looking towards the sky.
  • roll - The rotation in degrees of the viewpoint camera around the Z axis. Values range from -180 to 180 degrees.
  • altitudeMode - Enumeration of the KML altitude modes.

This function was introduced in Esri::ArcGISRuntime 100.6.

[static] KmlViewpoint KmlViewpoint::createLookAtViewpoint(const Point &lookAtLocation, double heading, double pitch, double range, KmlAltitudeMode altitudeMode)

A static method that creates a KML viewpoint from the provided look at location.

  • lookAtLocation - The observed location.
  • heading - The heading associated with this viewpoint. This is defined in terms of degrees from 0 (North) to 360, with 90 being East.
  • pitch - The pitch value (elevation angle) in degrees of the observer's view, 0 and 180 for Camera viewpoints. 0 means the camera is pointing straight down towards the Earth and 90 means the camera is looking from/towards the horizon.
  • range - The distance between the camera and the LookAt viewpoint's target location.
  • altitudeMode - Enumeration of the KML altitude modes.

This function was introduced in Esri::ArcGISRuntime 100.6.

[static] KmlViewpoint KmlViewpoint::createWithViewpoint(const Viewpoint &viewpoint)

A static method that creates a KML viewpoint from the provided viewpoint.

  • viewpoint - The viewpoint must always have a look at point, and optionally also have a camera.

This function was introduced in Esri::ArcGISRuntime 100.6.

double KmlViewpoint::heading() const

Returns the KML viewpoint's heading.

bool KmlViewpoint::isEmpty() const

Returns true if the object is empty, false otherwise.

Point KmlViewpoint::location() const

Returns the KML viewpoint's location.

double KmlViewpoint::pitch() const

Returns the KML viewpoint's pitch.

double KmlViewpoint::range() const

Returns the KML viewpoint's range.

double KmlViewpoint::roll() const

Returns the KML viewpoint's roll.

KmlViewpointType KmlViewpoint::type() const

Returns the KML viewpoint's type.

KmlViewpoint &KmlViewpoint::operator=(const KmlViewpoint &other)

Assignment operator from other KmlViewpoint.

KmlViewpoint &KmlViewpoint::operator=(KmlViewpoint &&other)

Move operator from other KmlViewpoint.


Feedback on this topic?