34#include <NDEVR/QCustomStackedWidget.h>
35#include <NDEVR/ProgressWidget.h>
36#include <NDEVR/ImageView.h>
37#include <NDEVR/MercatorImageManager.h>
void resizeEvent(QResizeEvent *event) override
Handles resize events, potentially triggering an image refresh.
Bounds< 2, fltp08 > drawBoundsWGS84() const
Returns the current draw bounds converted to WGS84 coordinates.
void updateAerialImage()
Triggers a refresh of the aerial image based on current bounds and settings.
void setAerialImageMode(AerialImageMode mode)
Sets the aerial image rendering mode (e.g., satellite, hybrid, terrain).
ProgressWidget * m_download_progress
The progress indicator shown during image downloads.
Bounds< 3, fltp08 > m_draw_bounds
The 3D bounding region to render.
UUID m_projection_coordinate_space
The coordinate space used for projection.
void onImageLoadedSignal(FetchReturn success)
Emitted when an aerial image load operation completes.
bool previewBoundsTolerable(QSize size) const
Checks whether the preview bounds are acceptable for the given widget size.
AerialImageView(QWidget *parent=nullptr)
Constructs the AerialImageView widget.
void setCoordinateSpace(const UUID &id)
Sets the coordinate space used for projecting geographic coordinates.
void setLocalBounds(const Bounds< 3, fltp08 > &bounds)
Sets the local bounds defining the area of interest for the aerial image.
void setDrawBounds(const Bounds< 3, fltp08 > &draw_bounds)
Sets the 3D draw bounds for the aerial image region.
FetchReturn
Result codes returned when fetching an aerial image.
@ e_cache_change
The cache changed during the fetch, requiring a retry.
@ e_could_not_fetch
The image could not be retrieved from the service.
@ e_success
The image was fetched successfully.
@ e_invalid_size
The requested image size was invalid or zero.
@ e_no_preview
No preview is available for the current bounds.
AerialImageMode m_image_mode
The current aerial image rendering mode.
void onUserModifiedSignal()
Emitted when the user modifies the aerial image view settings.
void setToNoPreview()
Sets the view to display a "no preview available" placeholder.
AerialImageMode aerialImageMode() const
Returns the current aerial image rendering mode.
UUID m_request_id
The unique identifier for the current fetch request.
FetchReturn updatePreviewImageFromThread()
Fetches and updates the preview image from a background thread.
void showContextMenu(const QPoint &pos)
Displays a context menu at the specified position.
bool isLoaded() const
Checks whether an aerial image has been successfully loaded.
virtual void showEvent(QShowEvent *event) override
Handles show events, initiating an image load if needed.
QSize m_last_preview_size
The size of the last successfully rendered preview.
ImageView * m_image_view
The image view widget displaying the aerial image.
A thread that executes a user-provided callback function concurrently.
A specification of upper and lower bounds in N-dimensions.
A widget that shows a raster image or icon.
Serves as the primary program interface for processes to report issues and allows any number of LogSt...
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
The primary namespace for the NDEVR SDK.
AerialImageMode
enum specifying what type of image to fetch.