20 #ifndef OMNI_VISUAL_SPHERE_H_
21 #define OMNI_VISUAL_SPHERE_H_
39 Sphere(qreal _radius = 1.0);
86 float _top,
float _bottom,
87 float _topRadius,
float _bottomRadius);
int stacks_
Definition: Sphere.h:89
TexCoordsMode texCoordsMode_
Definition: Sphere.h:100
float top_
Definition: Sphere.h:92
void setBottom(float)
Set new bottom position where to cut off sphere.
Definition: Sphere.cpp:84
float bottom_
Definition: Sphere.h:93
qreal radius() const
Return radius of sphere.
Definition: Sphere.cpp:36
float bottom() const
Return bottom position where to cut off sphere.
Definition: Sphere.cpp:79
int slices() const
Return slices of sphere.
Definition: Sphere.cpp:57
Basic visual interface.
Definition: Interface.h:28
VertexVBO::index_buffer_type indices_
Definition: Sphere.h:99
std::vector< uint32_t > index_buffer_type
Index buffer type.
Definition: VertexVBO.h:36
void setStacks(int _stacks)
Set number of stacks.
Definition: Sphere.cpp:51
void setRadius(qreal)
Set new sphere radius.
Definition: Sphere.cpp:41
TexCoordsMode
Definition: Sphere.h:34
VertexVBO::vertex_buffer_type vertices_
Definition: Sphere.h:98
qreal radius_
Definition: Sphere.h:95
VertexVBO vbo_
Definition: Sphere.h:97
int slices_
Definition: Sphere.h:90
void update()
Regenerates the mesh and updates the vertex buffer objects.
Definition: Sphere.cpp:110
void setTexCoordsMode(TexCoordsMode)
Set tex coords mode, fisheye or equirectangular.
Definition: Sphere.cpp:94
void setTop(float)
Set new top position where to cut off sphere.
Definition: Sphere.cpp:73
Utility class for storing and drawing VBO data.
Definition: VertexVBO.h:30
float top() const
Return top position where to cut off sphere.
Definition: Sphere.cpp:68
std::vector< Vertex > vertex_buffer_type
Vertex buffer type.
Definition: VertexVBO.h:33
int stacks() const
Return number of stacks (in Z direction)
Definition: Sphere.cpp:46
~Sphere()
Definition: Sphere.cpp:33
void generateStack(float _top, float _bottom, float _topRadius, float _bottomRadius)
Definition: Sphere.cpp:145
Draw Handler for visualizing a centered sphere.
Definition: Sphere.h:31
Sphere(qreal _radius=1.0)
Definition: Sphere.cpp:27
void setSlices(int _slices)
Set number of slices and update mesh.
Definition: Sphere.cpp:62
TexCoordsMode texCoordsMode() const
Return tex coords mode; fisheye or equirectangular.
Definition: Sphere.cpp:90
void draw() const
Draws sphere from vertex buffer object.
Definition: Sphere.cpp:98