gramods
PlaneGeometry.hh
1 
2 #ifndef GRAMODS_GRAPHICS_PLANEGEOMETRY
3 #define GRAMODS_GRAPHICS_PLANEGEOMETRY
4 
5 // Required before gmCore/OFactory.hh for some compilers
6 #include <gmCore/io_eigen.hh>
7 
8 #include <gmGraphics/Geometry.hh>
9 
10 BEGIN_NAMESPACE_GMGRAPHICS;
11 
17  : public gmGraphics::Geometry {
18 
19 public:
20 
21  PlaneGeometry();
22  virtual ~PlaneGeometry();
23 
31  void setPosition(Eigen::Vector3f p);
32 
40  void setNormal(Eigen::Vector3f n);
41 
50  void setOrientation(Eigen::Quaternionf q);
51 
71  bool getCameraFromPosition(Camera vfrustum,
72  Eigen::Vector3f position,
73  Camera &rfrustum) override;
74 
86  std::string getIntersectionCode() override;
87 
92  void setMapperUniforms(GLuint program) override;
93 
94  GM_OFI_DECLARE;
95 
96 private:
97 
98  struct Impl;
99 
100 };
101 
102 END_NAMESPACE_GMGRAPHICS;
103 
104 #endif
The base of graphics Camera implementations.
Definition: Camera.hh:19
A Geometry contains information for projection of graphics on a geometrical shape,...
Definition: Geometry.hh:20
PlaneGeometry contains information for projection of graphics on a plane.
Definition: PlaneGeometry.hh:17
Definition: PlaneGeometry.cpp:15