API Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
CoordinateBoundsSelector.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/Bounds.h>
4#include <NDEVR/SoftwareService.h>
5#include <NDEVR/Angle.h>
6#include <QWidget>
7#include <functional>
8namespace NDEVR
9{
10 /**--------------------------------------------------------------------------------------------------
11 \brief A dedicated dialog for allowing the user to select bounds for a northing and easting.
12 Allows registration of a dedicated dialog for selecting coordinates.
13 **/
15 {
16 Q_OBJECT
17 public:
18 virtual void setCurrentBounds(const Bounds<2, fltp08>& wgs84_bounds) = 0;
19 virtual void setCurrentBounds(const Bounds<2, Angle<fltp08>>& wgs84_bounds) = 0;
20 virtual Bounds<2, fltp08> currentBounds() const = 0;
22 signals:
25 public:
26 static CoordinateBoundsSelector* CreateCoordinateSelector(QWidget* parent = nullptr);
28 static void RegisterCreator(std::function<CoordinateBoundsSelector* (QWidget* parent)> creator);
29 protected:
30 static std::function<CoordinateBoundsSelector*(QWidget* parent)> s_create_coordinate_selector;
31 };
32}
#define NDEVR_API
Definition DLLInfo.h:50
The primary angle storage class for this API. Stores an angle in an optimized format.
Definition StringStream.h:540
A specification of upper and lower bounds in N-dimensions.
Definition Bounds.hpp:52
A dedicated dialog for allowing the user to select bounds for a northing and easting....
Definition CoordinateBoundsSelector.h:15
virtual void setCurrentBounds(const Bounds< 2, Angle< fltp08 > > &wgs84_bounds)=0
static bool CanCreateCoordinateSelector()
virtual Bounds< 2, Angle< fltp08 > > currentBoundsAngle() const =0
virtual Bounds< 2, fltp08 > currentBounds() const =0
static void RegisterCreator(std::function< CoordinateBoundsSelector *(QWidget *parent)> creator)
virtual void setCurrentBounds(const Bounds< 2, fltp08 > &wgs84_bounds)=0
static CoordinateBoundsSelector * CreateCoordinateSelector(QWidget *parent=nullptr)
Software Services provide an interface for adding to or changing the software behavior via functional...
Definition SoftwareService.h:9
Software Service Managers take a Software service to modify the behavior of the software.
Definition SoftwareService.h:15
Definition ACIColor.h:37