gramods
Loading...
Searching...
No Matches
SphereGeometry.hh
1
2#ifndef GRAMODS_GRAPHICS_SPHEREGEOMETRY
3#define GRAMODS_GRAPHICS_SPHEREGEOMETRY
4
5// Required before gmCore/OFactory.hh for some compilers
6#include <gmCore/io_eigen.hh>
7
8#include <gmGraphics/Geometry.hh>
9
10BEGIN_NAMESPACE_GMGRAPHICS;
11
18 : public gmGraphics::Geometry {
19
20public:
21
23 virtual ~SphereGeometry();
24
32 void setPosition(Eigen::Vector3f p);
33
39 void setRadius(float);
40
50 void setFrustumSizeRatio(float);
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
96private:
97
98 struct Impl;
99
100};
101
102END_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
SphereGeometry contains information for projection of graphics on a sphere.
Definition SphereGeometry.hh:18
Definition SphereGeometry.cpp:18