API Documentation
Loading...
Searching...
No Matches
AerialImageView Class Reference

A simple widget for showing an AerialImage or top down view rendered with a service like google earth. More...

#include <AerialImageView.h>

Inheritance diagram for AerialImageView:
[legend]
Collaboration diagram for AerialImageView:
[legend]

Public Types

enum  FetchReturn {
  e_success , e_invalid_size , e_could_not_fetch , e_no_preview ,
  e_cache_change
}
 
- Public Types inherited from QCustomStackedWidgetBase
enum  t_direction {
  LEFT2RIGHT , RIGHT2LEFT , TOP2BOTTOM , BOTTOM2TOP ,
  AUTOMATIC
}
 

Signals

void onUserModifiedSignal ()
 
void onImageLoadedSignal (FetchReturn success)
 
- Signals inherited from QCustomStackedWidgetBase
void animationFinished ()
 

Public Member Functions

 AerialImageView (QWidget *parent=nullptr)
 
void setCoordinateSpace (const UUID &id)
 
void setLocalBounds (const Bounds< 3, fltp08 > &bounds)
 
void updateAerialImage ()
 
bool previewBoundsTolerable (QSize size) const
 
void resizeEvent (QResizeEvent *event) override
 
virtual void showEvent (QShowEvent *event) override
 
void setAerialImageMode (AerialImageMode mode)
 
Bounds< 2, fltp08drawBoundsWGS84 () const
 
AerialImageMode aerialImageMode () const
 
void setDrawBounds (const Bounds< 3, fltp08 > &draw_bounds)
 
bool isLoaded () const
 
void setToNoPreview ()
 
- Public Member Functions inherited from QCustomStackedWidget
 QCustomStackedWidget (QWidget *parent=nullptr)
 
virtual uint04 addWidget (QWidget *w) override
 
virtual void slideInNext () override
 
virtual void slideInPrev () override
 
void setCurrentIndex (uint04 idx)
 
void slideInIdx (uint04 idx, PopupInfo origin_rect, int delay_time=0, enum t_direction direction=AUTOMATIC) override
 
void slideInIdx (uint04 idx, int delay_time=0, enum t_direction direction=AUTOMATIC) override
 
void slideInIdx (uint04 idx, enum t_direction direction) override
 
void slideInAnimation (PopupInfo origin_rect, enum t_direction direction=AUTOMATIC, bool cache_in_image=false) override
 
void slideInAnimation (enum t_direction direction=AUTOMATIC, bool cache_in_image=false) override
 
void slideInWgt (QWidget *widget, enum t_direction direction=AUTOMATIC, bool force_slide=false) override
 
void removeWidget (QWidget *widget)
 
uint04 activeIndex () const
 
QWidget * activeWidget () const
 
uint04 count () const
 
bool hasWidget (QWidget *widget) const
 
uint04 currentIndex () const
 
uint04 indexOf (QWidget *widget) const
 
QWidget * currentWidget () const
 
- Public Member Functions inherited from QCustomStackedWidgetBase
void setSpeed (int speed)
 
void setAnimation (enum QEasingCurve::Type animationtype)
 
void setVerticalMode (bool vertical=true)
 
void setWrap (bool wrap)
 
void setCustomPixmap (QPixmap *pixmap)
 

Protected Slots

void showContextMenu (const QPoint &pos)
 
- Protected Slots inherited from QCustomStackedWidgetBase
void childDestroyedSlot (QObject *widget)
 
void animationDoneSlot ()
 

Protected Member Functions

FetchReturn updatePreviewImageFromThread ()
 
- Protected Member Functions inherited from QCustomStackedWidgetBase
 QCustomStackedWidgetBase (QWidget *parent=nullptr)
 
virtual ~QCustomStackedWidgetBase ()
 
void resizeEvent (QResizeEvent *event) override
 
void showEvent (QShowEvent *event) override
 
void setAnimationPercent (double animation_percent)
 
double animationPercent () const
 
void paintEvent (QPaintEvent *) override
 
virtual void swapIndices (uint04 a, uint04 b)
 
virtual void moveContent (uint04 from, uint04 to)
 
void insertWidget (uint04 index, QWidget *w)
 
void removeWidget (QWidget *widget)
 
void removeWidget (QWidget *widget, QWidget *slide_to_if_active)
 
bool eventFilter (QObject *object, QEvent *event) override
 
uint04 activeIndex () const
 
QWidget * activeWidget () const
 
QWidget * currentWidget () const
 
QSize sizeHint () const override
 
QSize minimumSizeHint () const override
 
QWidget * widget (uint04 index) const
 
uint04 indexOf (QWidget *widget) const
 
uint04 currentIndex () const
 
uint04 count () const
 
virtual void setCurrentIdx (uint04 current_index)
 

Protected Attributes

ImageViewm_image_view
 
ProgressWidgetm_download_progress
 
AerialImageMode m_image_mode
 
Bounds< 3, fltp08m_draw_bounds
 
UUID m_projection_coordinate_space
 
UUID m_request_id
 
QSize m_last_preview_size
 
- Protected Attributes inherited from QCustomStackedWidgetBase
int m_speed
 
enum QEasingCurve::Type m_animationtype
 
uint04 m_now
 
uint04 m_next
 
uint04 m_last
 
int m_last_animation_time
 
QPoint m_offset
 
PopupInfo m_popup_info
 
double m_animation_percent
 
uint04 m_current_index
 
Buffer< QWidget * > m_child_widgets
 
QPointer< QPropertyAnimation > m_move_animation
 
bool m_is_animating
 
bool m_vertical
 
bool m_wrap = false
 

Additional Inherited Members

- Static Public Attributes inherited from QCustomStackedWidgetBase
static ApplicationOption< sint04default_stack_animation_speed
 
- Properties inherited from QCustomStackedWidgetBase
double animation_percent
 

Detailed Description

A simple widget for showing an AerialImage or top down view rendered with a service like google earth.


Class: AerialImageView

A loading screen appears as images are loaded in

Member Enumeration Documentation

◆ FetchReturn

Enumerator
e_success 
e_invalid_size 
e_could_not_fetch 
e_no_preview 
e_cache_change 

Constructor & Destructor Documentation

◆ AerialImageView()

AerialImageView ( QWidget * parent = nullptr)

Member Function Documentation

◆ aerialImageMode()

AerialImageMode aerialImageMode ( ) const
inline

◆ drawBoundsWGS84()

Bounds< 2, fltp08 > drawBoundsWGS84 ( ) const

◆ isLoaded()

bool isLoaded ( ) const

◆ onImageLoadedSignal

void onImageLoadedSignal ( FetchReturn success)
signal

◆ onUserModifiedSignal

void onUserModifiedSignal ( )
signal

◆ previewBoundsTolerable()

bool previewBoundsTolerable ( QSize size) const

◆ resizeEvent()

void resizeEvent ( QResizeEvent * event)
override

◆ setAerialImageMode()

void setAerialImageMode ( AerialImageMode mode)

◆ setCoordinateSpace()

void setCoordinateSpace ( const UUID & id)

◆ setDrawBounds()

void setDrawBounds ( const Bounds< 3, fltp08 > & draw_bounds)
inline

◆ setLocalBounds()

void setLocalBounds ( const Bounds< 3, fltp08 > & bounds)

◆ setToNoPreview()

void setToNoPreview ( )

◆ showContextMenu

void showContextMenu ( const QPoint & pos)
protectedslot

◆ showEvent()

void showEvent ( QShowEvent * event)
overridevirtual

◆ updateAerialImage()

void updateAerialImage ( )

◆ updatePreviewImageFromThread()

AerialImageView::FetchReturn updatePreviewImageFromThread ( )
protected

Member Data Documentation

◆ m_download_progress

ProgressWidget* m_download_progress
protected

◆ m_draw_bounds

Bounds<3, fltp08> m_draw_bounds
protected

◆ m_image_mode

AerialImageMode m_image_mode
protected

◆ m_image_view

ImageView* m_image_view
protected

◆ m_last_preview_size

QSize m_last_preview_size
protected

◆ m_projection_coordinate_space

UUID m_projection_coordinate_space
protected

◆ m_request_id

UUID m_request_id
protected

The documentation for this class was generated from the following files: