|
Omnidome
Fulldome Mapping Software Toolkit
|
A cartesian grid with lining adapted to distance. More...
#include <Grid.h>


Public Member Functions | |
| Grid (CameraInterface const *) | |
| ~Grid () | |
| void | draw () const |
| Draw grid. More... | |
| void | draw (float _alpha) const |
| Draw grid with alpha value. More... | |
| void | update () |
| Update grid mesh. More... | |
| void | setResolution (QSize _resolution) |
| Resolution. More... | |
| QSize const & | resolution () const |
| Return resolution. More... | |
| QVector2D const & | size () const |
| void | setSize (QVector2D const &_size) |
| Set size of grid. More... | |
| void | setCamera (CameraInterface const *) |
| CameraInterface const * | camera () const |
Public Member Functions inherited from omni::visual::Interface | |
| virtual | ~Interface () |
Private Attributes | |
| QSize | resolution_ |
| CameraInterface const * | camera_ = nullptr |
| Plane | plane_ |
| QVector2D | size_ |
Static Private Attributes | |
| static ContextBoundPtr < QOpenGLShaderProgram > | shader_ |
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... | |
A cartesian grid with lining adapted to distance.
| omni::visual::Grid::Grid | ( | CameraInterface const * | _camera | ) |
| CameraInterface const * omni::visual::Grid::camera | ( | ) | const |
|
virtual |
| void omni::visual::Grid::draw | ( | float | _alpha | ) | const |
Draw grid with alpha value.
| QSize const & omni::visual::Grid::resolution | ( | ) | const |
Return resolution.
| void omni::visual::Grid::setCamera | ( | CameraInterface const * | _camera | ) |
| void omni::visual::Grid::setResolution | ( | QSize | _resolution | ) |
Resolution.
| void omni::visual::Grid::setSize | ( | QVector2D const & | _size | ) |
Set size of grid.
| QVector2D const & omni::visual::Grid::size | ( | ) | const |
|
virtual |
Update grid mesh.
Reimplemented from omni::visual::Interface.
|
private |
|
private |
|
private |
|
staticprivate |
|
private |
1.8.6