gramods
SphereSceneRenderer.hh
1 
2 #ifndef GRAMODS_GRAPHICS_SPHERESCENERENDERER
3 #define GRAMODS_GRAPHICS_SPHERESCENERENDERER
4 
5 // Required before gmCore/OFactory.hh for some compilers
6 #include <gmCore/io_eigen.hh>
7 
8 #include <gmGraphics/Renderer.hh>
9 
10 #include <gmCore/OFactory.hh>
11 
12 BEGIN_NAMESPACE_GMGRAPHICS;
13 
19  : public Renderer {
20 
21 public:
22 
24 
28  void render(const Camera &camera, const Eigen::Affine3f &Mm) override;
29 
36  void getNearFar(const Camera &camera,
37  const Eigen::Affine3f &Mm,
38  float &near,
39  float &far) override;
40 
46  void setSphereRadius(float r);
47 
53  void setSphereSetRadius(float r);
54 
61  void setFillRatio(float r);
62 
68  void setColor(Eigen::Vector3f c);
69 
70  GM_OFI_DECLARE;
71 
72 private:
73 
74  struct Impl;
75  std::unique_ptr<Impl> _impl;
76 
77 };
78 
79 END_NAMESPACE_GMGRAPHICS;
80 
81 #endif
The base of graphics Camera implementations.
Definition: Camera.hh:19
The base of graphics Renderer implementations.
Definition: Renderer.hh:17
A renderer that draws a set of spheres, for demonstration and testing purposes.
Definition: SphereSceneRenderer.hh:19
Definition: SphereSceneRenderer.cpp:26