A KML track object. More...
Header: | #include <KmlTrack.h> |
Since: | Esri::ArcGISRuntime 200.6 |
Inherits: | Esri::ArcGISRuntime::KmlGeometry |
Public Functions
KmlTrack() | |
KmlTrack(const QList<Esri::ArcGISRuntime::KmlTrackElement *> &elements, Esri::ArcGISRuntime::KmlAltitudeMode altitudeMode) | |
KmlTrack(const QList<Esri::ArcGISRuntime::KmlTrackElement *> &elements, Esri::ArcGISRuntime::KmlAltitudeMode altitudeMode, bool isExtruded, bool isTessellated, const Esri::ArcGISRuntime::KmlModel &model) | |
KmlTrack(const Esri::ArcGISRuntime::KmlTrack &other) | |
KmlTrack(Esri::ArcGISRuntime::KmlTrack &&other) | |
KmlTrack(const Esri::ArcGISRuntime::KmlGeometry &other) | |
~KmlTrack() | |
QList<Esri::ArcGISRuntime::KmlTrackElement *> | elements() const |
Esri::ArcGISRuntime::KmlNonSchemaData * | extendedNonSchemaData(QObject *parent) const |
QList<Esri::ArcGISRuntime::KmlSchemaData *> | extendedSchemaData(QObject *parent) const |
bool | isValid() const |
Esri::ArcGISRuntime::KmlModel | model() const |
void | setExtendedNonSchemaData(Esri::ArcGISRuntime::KmlNonSchemaData *extendedNonSchemaData) |
Esri::ArcGISRuntime::KmlTrack & | operator=(const Esri::ArcGISRuntime::KmlTrack &other) |
Esri::ArcGISRuntime::KmlTrack & | operator=(Esri::ArcGISRuntime::KmlTrack &&other) |
Detailed Description
Note: KmlTrack only supports shallow copying. All copies will reference the same internal data and there is no way to detach/clone from it.
Member Function Documentation
KmlTrack::KmlTrack ()
Default constructor.
Note: This is provided for convenience only and will construct an unusable, empty object.
KmlTrack::KmlTrack (const QList<Esri::ArcGISRuntime::KmlTrackElement *> &elements, Esri::ArcGISRuntime::KmlAltitudeMode altitudeMode )
Creates a KmlTrack from an array of KmlTrackElement using a specified altitude mode.
- elements - The individual elements of the track.
- altitudeMode - Determines how altitude values are interpreted.
KmlTrack::KmlTrack (const QList<Esri::ArcGISRuntime::KmlTrackElement *> &elements, Esri::ArcGISRuntime::KmlAltitudeMode altitudeMode , bool isExtruded , bool isTessellated , const Esri::ArcGISRuntime::KmlModel &model)
Creates a KmlTrack from an array of KmlTrackElement using a specified altitude mode, extrusion, tessellation, and a KmlModel.
- elements - The individual elements of the track.
- altitudeMode - Determines how altitude values are interpreted.
- isExtruded -
true
if the track is extruded,false
otherwise. - isTessellated -
true
if the track is tessellated,false
otherwise. - model - The optional model used to represent the track's current position. Its geometry will be ignored.
KmlTrack::KmlTrack (const Esri::ArcGISRuntime::KmlTrack &other)
Copy constructor from other KmlTrack.
Note: This is a shallow copy.
KmlTrack::KmlTrack (Esri::ArcGISRuntime::KmlTrack &&other)
Move constructor from other KmlTrack.
[explicit]
KmlTrack::KmlTrack (const Esri::ArcGISRuntime::KmlGeometry &other)
Move constructor from other KmlGeometry.
See also Downcast helper functions.
KmlTrack::~KmlTrack ()
Destructor.
QList<Esri::ArcGISRuntime::KmlTrackElement *> KmlTrack::elements() const
Returns the individual elements of the KML track.
Esri::ArcGISRuntime::KmlNonSchemaData *KmlTrack::extendedNonSchemaData (QObject *parent) const
Returns the non-schema data present in extended data of a KML track.
Note: a parent is required. Since KmlTrack is a value object and not a QObject, the returned object cannot be a child of this object. If you wish to have no parent, pass nullptr
. The parent will only be applied if the returned object didn't already exist (existing parent will be preserved).
See also setExtendedNonSchemaData().
QList<Esri::ArcGISRuntime::KmlSchemaData *> KmlTrack::extendedSchemaData (QObject *parent) const
Returns an array of schema data present in extended data of a KML track.
Note: a parent is required. Since KmlTrack is a value object and not a QObject, the returned object cannot be a child of this object. If you wish to have no parent, pass nullptr
. The parent will only be applied if the returned objects didn't already exist (existing parents will be preserved).
bool KmlTrack::isValid () const
Gets whether this KmlTrack is valid.
A KmlTrack is valid if it is not empty and objectType is KmlGeometryObjectType::Track.
Returns true
if valid.
Esri::ArcGISRuntime::KmlModel KmlTrack::model() const
Returns the model used to represent the track's current position.
void KmlTrack::setExtendedNonSchemaData (Esri::ArcGISRuntime::KmlNonSchemaData *extendedNonSchemaData )
Sets the extendedNonSchemaData to extendedNonSchemaData.
See also extendedNonSchemaData.
Esri::ArcGISRuntime::KmlTrack &KmlTrack::operator=(const Esri::ArcGISRuntime::KmlTrack &other)
Assignment operator from other KmlTrack.
Note: This is a shallow copy.
Esri::ArcGISRuntime::KmlTrack &KmlTrack::operator=(Esri::ArcGISRuntime::KmlTrack &&other)
Move operator from other KmlTrack.