API Documentation
Loading...
Searching...
No Matches
CoordinateBoundsSelector.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/Bounds.h>
4#include <NDEVR/Angle.h>
5#include <QWidget>
6#include <functional>
7namespace NDEVR
8{
9 class NDEVR_API CoordinateBoundsSelector : public QWidget
10 {
11 Q_OBJECT
12 public:
13 virtual void setCurrentBounds(const Bounds<2, fltp08>& wgs84_bounds) = 0;
14 virtual void setCurrentBounds(const Bounds<2, Angle<fltp08>>& wgs84_bounds) = 0;
15 virtual Bounds<2, fltp08> currentBounds() const = 0;
17 signals:
20 public:
21 static CoordinateBoundsSelector* CreateCoordinateSelector(QWidget* parent = nullptr);
23 static void RegisterCreator(std::function<CoordinateBoundsSelector* (QWidget* parent)> creator);
24 protected:
25 static std::function<CoordinateBoundsSelector*(QWidget* parent)> s_create_coordinate_selector;
26 };
27}
#define NDEVR_API
Definition DLLInfo.h:67
The primary angle storage class for this API. Stores an angle in an optimized format.
Definition StringStream.h:408
A specification of upper and lower bounds in N-dimensions.
Definition Bounds.hpp:52
Definition CoordinateBoundsSelector.h:10
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)
Definition ACIColor.h:37