gramods
RemapperView.hh
1 
2 #ifndef GRAMODS_GRAPHICS_REMAPPERVIEW
3 #define GRAMODS_GRAPHICS_REMAPPERVIEW
4 
5 // Required before gmCore/OFactory.hh for some compilers
6 #include <gmCore/io_float.hh>
7 #include <gmCore/io_angle.hh>
8 
9 #include <gmGraphics/View.hh>
10 #include <gmGraphics/CoordinatesMapper.hh>
11 
12 BEGIN_NAMESPACE_GMGRAPHICS;
13 
19 class RemapperView : public View {
20 
21 public:
22  RemapperView();
23  virtual ~RemapperView();
24 
29  void renderFullPipeline(ViewSettings settings) override;
30 
36  void traverse(Visitor *visitor) override;
37 
43  void addView(std::shared_ptr<View>);
44 
51  void setFrom(std::shared_ptr<CoordinatesMapper>);
52 
59  void setTo(std::shared_ptr<CoordinatesMapper>);
60 
69  void setViewOffset(float);
70 
79  void setSphereRadius(float);
80 
86  void setOrientation(gmCore::angle2);
87 
88  GM_OFI_DECLARE;
89 
90 private:
91  struct Impl;
92  std::unique_ptr<Impl> _impl;
93 };
94 
95 END_NAMESPACE_GMGRAPHICS;
96 
97 #endif
The RemapperView remaps another view from the mapping expressed by one CoordinatesMapper into the map...
Definition: RemapperView.hh:19
The base of graphics View implementations.
Definition: View.hh:13
std::array< angle, 2 > angle2
Array of 2 angle.
Definition: io_angle.hh:59
The visitor of a design pattern for automatic traversal.
Definition: Object.hh:75
Definition: RemapperView.cpp:22
Package of settings affecting the rendering.
Definition: ViewBase.hh:30