Represents a footprint of an OrientedImage drawn on the GeoView. More...
| Header | #include <Oriented |
| Since | Esri |
| Inherits | Esri |
Public Functions
| Oriented | |
| virtual | ~ |
| QColor | fill |
| Esri | oriented |
| QColor | outline |
| void | set |
| void | set |
| QFuture | update |
| QFuture | update |
Detailed Description
An OrientedImageFootprint references an OrientedImage returned from a search operation. The fill color and the outline color define the visual representation of footprint geometry drawn on the GeoView.
For 3D, if the feature representing the camera location does not have the Z value, it is recommended to first add the layer to a Scene before obtaining the OrientedImage. Associating the layer with a Scene allows elevation data from the Scene's base Surface to be used in calculations, resulting in improved footprint accuracy.
See also OrientedImageryLayer::searchImagesAsync(const Esri::ArcGISRuntime::Point&, Esri::ArcGISRuntime::OrientedImageSearchParameters*, QObject*) and OrientedImageryLayer::fetchImageForFeatureAsync(Esri::ArcGISRuntime::Feature*, QObject*).
Member Function Documentation
[explicit] OrientedImageFootprint::OrientedImageFootprint (Esri::ArcGISRuntime::OrientedImage *orientedImage , QObject *parent = nullptr)
Creates an object of type OrientedImageFootprint for the input OrientedImage instance.
- orientedImage - The oriented image associated with this footprint.
- parent - The optional parent QObject.
OrientedImageFootprint represents the visual footprint of an oriented image on the view. The footprint geometry refreshes automatically after the image is loaded or whenever the image's extent changes. The default fill color of the footprint is transparent red: RGBA(255, 102, 102, 102). The default outline color is fully transparent: RGBA(0, 0, 0, 0).
[override virtual noexcept] OrientedImageFootprint::~OrientedImageFootprint ()
Destructor.
QColor OrientedImageFootprint::fillColor () const
Returns the fill color of the footprint geometry.
Modifying the fill color is helpful when displaying multiple footprints simultaneously for side-by-side comparison, or when highlighting a footprint corresponding to a specific focused view.
See also setFillColor().
Esri::ArcGISRuntime::OrientedImage *OrientedImageFootprint::orientedImage () const
Returns the oriented image whose calculated footprint is to be rendered on the view.
QColor OrientedImageFootprint::outlineColor () const
Returns the outline color of the footprint geometry.
Modifying the outline color is helpful when differentiating footprints during side-by-side comparison, or when highlighting a footprint corresponding to a specific focused view.
See also setOutlineColor().
void OrientedImageFootprint::setFillColor (const QColor &fillColor )
Sets the fillColor to fillColor.
See also fillColor.
void OrientedImageFootprint::setOutlineColor (const QColor &outlineColor )
Sets the outlineColor to outlineColor.
See also outlineColor.
QFuture<void> OrientedImageFootprint::updateFootprintAsync (const QList<QPointF > &imageCoordinates )
Recomputes the footprint geometry based on the modified extent of the image and refreshes the existing footprint geometry if visible on the GeoView.
- imageCoordinates - An Array of image coordinates in pixels in clockwise order. The pixel coordinates represent the intersection points of the current image with its image display area.
This method uses the internal geometry transformation rules of the associated OrientedImage to map the 2D image coordinates back to geographic or projected map locations.
The coordinates intersecting the image display area must be provided in the clockwise order to ensure the resulting footprint polygon is generated correctly without self-intersection. If the footprint is not in the OrientedImageryLayer::visibleFootprints collection, this method only updates the internal geometry of the footprint without triggering a visual redraw. Note, If OrientedImage is not loaded, this method will not perform any computation to redraw the footprint.
Note, invoking this overload to update the footprint on a 360 image will result in a ErrorType::CommonInvalidCall.
This method returns a QFuture for the asynchronous operation. Use future.then() to continue processing when the operation completes. Use future.onFailed() to handle exceptions of type ErrorException.
See Working with QFuture for further details.
QFuture<void> OrientedImageFootprint::updateFootprintAsync (double yaw, double pitch, double horizontalFov , double verticalFov )
Recomputes the footprint geometry of a 360 image based on the modified extent of the image and refreshes the existing footprint geometry if visible on the GeoView.
- yaw - Yaw rotates your view left and right along the horizon. Yaw is zero degrees at the center of the image in a 360 image viewer. Valid range is 0 to 360 degrees.
- pitch - Pitch moves an image up or down in degrees. Pitch is 90 degrees at the center of 360 image displayed in a 360 image viewer. Valid range is 0 to 180 degrees.
- horizontalFov - The horizontal angle (in degrees) of the 360 image currently visible across the width of the image display area.
- verticalFov - The vertical angle (in degrees) of the 360 image currently visible across the height of the image display area.
This method updates 2D and/or 3D footprint geometries for a 360-degree oriented image displayed in the image display area based on updated camera orientation parameters. Note, invoking this overload to update the footprint on a non-360 image will result in a ErrorType::CommonInvalidCall error. The visible image footprint will remain unchanged.
If the footprint is not in the OrientedImageryLayer::visibleFootprints collection, this method only updates the internal geometry of the footprint without triggering a visual redraw. Note, If OrientedImage is not loaded, this method will not perform any computation to redraw the footprint.
This method returns a QFuture for the asynchronous operation. Use future.then() to continue processing when the operation completes. Use future.onFailed() to handle exceptions of type ErrorException.
See Working with QFuture for further details.