NDEVR
API Documentation
CoordinateSelector

Allows the user to select Coordinates using the CoordinateBoundsSelector selector. More...

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

Public Member Functions

 CoordinateSelector (QWidget *parent=nullptr)
 Constructs a CoordinateSelector widget.
Bounds< 2, fltp08currentBounds () const override
 Returns the current geographic bounds in WGS84 decimal degrees.
Bounds< 2, Angle< fltp08 > > currentBoundsAngle () const override
 Returns the current geographic bounds as angles.
String currentURL () const
 Returns the current URL loaded in the web view.
void initPage ()
 Initializes the embedded web page for coordinate selection.
virtual void setCurrentBounds (const Bounds< 2, Angle< fltp08 > > &wgs84_bounds) override
 Sets the current geographic bounds as angles.
virtual void setCurrentBounds (const Bounds< 2, fltp08 > &wgs84_bounds) override
 Sets the current geographic bounds in WGS84 decimal degrees.
Public Member Functions inherited from CoordinateBoundsSelector
void canceledSignal ()
 Emitted when the user cancels the bounds selection.
void finishedSignal ()
 Emitted when the user finishes selecting bounds.

Protected Attributes

QWebEngineView * m_web_view
 The embedded web engine view used for coordinate selection.

Additional Inherited Members

Static Public Member Functions inherited from CoordinateBoundsSelector
static bool CanCreateCoordinateSelector ()
 Returns whether a coordinate selector creator has been registered.
static CoordinateBoundsSelectorCreateCoordinateSelector (QWidget *parent=nullptr)
 Creates a new CoordinateBoundsSelector using the registered creator.
static void RegisterCreator (std::function< CoordinateBoundsSelector *(QWidget *parent)> creator)
 Registers a factory function for creating CoordinateBoundsSelector instances.
Static Protected Attributes inherited from CoordinateBoundsSelector
static std::function< CoordinateBoundsSelector *(QWidget *parent)> s_create_coordinate_selector
 Factory function for creating selector instances.

Detailed Description

Allows the user to select Coordinates using the CoordinateBoundsSelector selector.


Definition at line 11 of file CoordinateSelector.h.

Constructor & Destructor Documentation

◆ CoordinateSelector()

CoordinateSelector::CoordinateSelector ( QWidget * parent = nullptr)

Constructs a CoordinateSelector widget.

Parameters
[in]parentThe optional parent widget.

Member Function Documentation

◆ currentBounds()

Bounds< 2, fltp08 > CoordinateSelector::currentBounds ( ) const
overridevirtual

Returns the current geographic bounds in WGS84 decimal degrees.

Returns
The 2D bounding box.

Implements CoordinateBoundsSelector.

◆ currentBoundsAngle()

Bounds< 2, Angle< fltp08 > > CoordinateSelector::currentBoundsAngle ( ) const
overridevirtual

Returns the current geographic bounds as angles.

Returns
The 2D bounding box in Angle units.

Implements CoordinateBoundsSelector.

◆ currentURL()

String CoordinateSelector::currentURL ( ) const

Returns the current URL loaded in the web view.

Returns
The URL as a String.

◆ setCurrentBounds() [1/2]

virtual void CoordinateSelector::setCurrentBounds ( const Bounds< 2, Angle< fltp08 > > & wgs84_bounds)
overridevirtual

Sets the current geographic bounds as angles.

Parameters
[in]wgs84_boundsThe 2D bounding box in Angle units to set.

Implements CoordinateBoundsSelector.

◆ setCurrentBounds() [2/2]

virtual void CoordinateSelector::setCurrentBounds ( const Bounds< 2, fltp08 > & wgs84_bounds)
overridevirtual

Sets the current geographic bounds in WGS84 decimal degrees.

Parameters
[in]wgs84_boundsThe 2D bounding box to set.

Implements CoordinateBoundsSelector.


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