Virtual Testbed
Ship dynamics simulator for extreme conditions
SliderAngle.hh
1 #ifndef VTESTBED_GUI_SLIDERANGLE_HH
2 #define VTESTBED_GUI_SLIDERANGLE_HH
3 
4 #include <string>
5 
6 namespace vtb {
7 
8  namespace gui {
9 
10  template <class T>
11  class SliderAngle {
12 
13  private:
14  T _value{};
15  T _degrees_min{0};
16  T _degrees_max{360};
17  std::string _name;
18 
19  public:
20 
21  inline void name(const std::string& rhs) { this->_name = rhs; }
22  inline const std::string& name() const { return this->_name; }
23  inline T value() const { return this->_value; }
24  inline void value(T rhs) { this->_value = rhs; }
25  inline void min(T rhs) { this->_degrees_min = rhs; }
26  inline void max(T rhs) { this->_degrees_max = rhs; }
27 
28  bool draw();
29 
30  };
31 
32  }
33 
34 }
35 
36 #endif // vim:filetype=cpp
Main namespace.
Definition: convert.hh:9