|
Omnidome
Fulldome Mapping Software Toolkit
|
Draw Handler for visualizing a centered sphere. More...
#include <Sphere.h>


Public Types | |
| enum | TexCoordsMode { EQUIRECTANGULAR, FISHEYE } |
Public Member Functions | |
| Sphere (qreal _radius=1.0) | |
| ~Sphere () | |
| qreal | radius () const |
| Return radius of sphere. More... | |
| void | setRadius (qreal) |
| Set new sphere radius. More... | |
| int | stacks () const |
| Return number of stacks (in Z direction) More... | |
| void | setStacks (int _stacks) |
| Set number of stacks. More... | |
| int | slices () const |
| Return slices of sphere. More... | |
| void | setSlices (int _slices) |
| Set number of slices and update mesh. More... | |
| float | top () const |
| Return top position where to cut off sphere. More... | |
| void | setTop (float) |
| Set new top position where to cut off sphere. More... | |
| float | bottom () const |
| Return bottom position where to cut off sphere. More... | |
| void | setBottom (float) |
| Set new bottom position where to cut off sphere. More... | |
| TexCoordsMode | texCoordsMode () const |
| Return tex coords mode; fisheye or equirectangular. More... | |
| void | setTexCoordsMode (TexCoordsMode) |
| Set tex coords mode, fisheye or equirectangular. More... | |
| void | draw () const |
| Draws sphere from vertex buffer object. More... | |
| void | update () |
| Regenerates the mesh and updates the vertex buffer objects. More... | |
Public Member Functions inherited from omni::visual::Interface | |
| virtual | ~Interface () |
Private Member Functions | |
| void | generateStack (float _top, float _bottom, float _topRadius, float _bottomRadius) |
Private Attributes | |
| int | stacks_ = 64 |
| int | slices_ = 128 |
| float | top_ = 1.0 |
| float | bottom_ = -1.0 |
| qreal | radius_ = 1.0 |
| VertexVBO | vbo_ |
| VertexVBO::vertex_buffer_type | vertices_ |
| VertexVBO::index_buffer_type | indices_ |
| TexCoordsMode | texCoordsMode_ = EQUIRECTANGULAR |
Additional Inherited Members | |
Static Protected Member Functions inherited from omni::visual::Interface | |
| static void | vertex3 (QVector3D const &) |
| glVertex3f from QVector3D More... | |
| static void | visualLine (QVector3D const &_from, QVector3D const &_to) |
| Draws a line. More... | |
| static void | color (QColor _color, float _alpha=1.0) |
| glColor4f from QColor More... | |
Draw Handler for visualizing a centered sphere.
| omni::visual::Sphere::Sphere | ( | qreal | _radius = 1.0 | ) |
| float omni::visual::Sphere::bottom | ( | ) | const |
Return bottom position where to cut off sphere.
|
virtual |
Draws sphere from vertex buffer object.
Implements omni::visual::Interface.
|
private |
Generate vertices
Top triangle
Bottom triangle
| qreal omni::visual::Sphere::radius | ( | ) | const |
Return radius of sphere.
| void omni::visual::Sphere::setBottom | ( | float | _bottom | ) |
Set new bottom position where to cut off sphere.
| void omni::visual::Sphere::setRadius | ( | qreal | _radius | ) |
Set new sphere radius.
| void omni::visual::Sphere::setSlices | ( | int | _slices | ) |
Set number of slices and update mesh.
| void omni::visual::Sphere::setStacks | ( | int | _stacks | ) |
Set number of stacks.
| void omni::visual::Sphere::setTexCoordsMode | ( | TexCoordsMode | _texCoordsMode | ) |
Set tex coords mode, fisheye or equirectangular.
| void omni::visual::Sphere::setTop | ( | float | _top | ) |
Set new top position where to cut off sphere.
| int omni::visual::Sphere::slices | ( | ) | const |
Return slices of sphere.
| int omni::visual::Sphere::stacks | ( | ) | const |
Return number of stacks (in Z direction)
| Sphere::TexCoordsMode omni::visual::Sphere::texCoordsMode | ( | ) | const |
Return tex coords mode; fisheye or equirectangular.
| float omni::visual::Sphere::top | ( | ) | const |
Return top position where to cut off sphere.
|
virtual |
Regenerates the mesh and updates the vertex buffer objects.
Reimplemented from omni::visual::Interface.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.6