|
Omnidome
Fulldome Mapping Software Toolkit
|
A plane with n x m grid points Vertex data is not stored on host, it is copied to GPU directly. Plane has dimensions [-0.5,-0.5] - [0.5,0.5]. More...
#include <Plane.h>


Public Types | |
| typedef std::function< void(QVector2D &, size_t, size_t)> | texcoord_transform_functor_type |
Public Member Functions | |
| Plane () | |
| ~Plane () | |
| void | draw () const |
| Draw plane. More... | |
| void | update (texcoord_transform_functor_type _f) |
| Update mesh with texcoord transformation. More... | |
| void | update () |
| Update mesh (without transforming texture coordinates) More... | |
| size_t | horizontal () const |
| Return number of horizontal subdivisions. More... | |
| void | setHorizontal (size_t _horizontal) |
| Set horizontal subdivisions (does not regenerate the mesh) More... | |
| size_t | vertical () const |
| Return number of vertical subdivisions. More... | |
| void | setVertical (size_t _vertical) |
| Set vertical subdivisions (does not regenerate the mesh) More... | |
| void | resize (size_t _horizontal, size_t _vertical) |
| Set horizontal and vertical subdivisions (does not regenerate the. More... | |
Public Member Functions inherited from omni::visual::Interface | |
| virtual | ~Interface () |
Private Attributes | |
| size_t | horizontal_ = 10 |
| size_t | vertical_ = 10 |
| ContextBoundPtr< VertexVBO > | vbo_ |
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 plane with n x m grid points Vertex data is not stored on host, it is copied to GPU directly. Plane has dimensions [-0.5,-0.5] - [0.5,0.5].
| typedef std::function<void (QVector2D&, size_t, size_t)> omni::visual::Plane::texcoord_transform_functor_type |
|
virtual |
| size_t omni::visual::Plane::horizontal | ( | ) | const |
Return number of horizontal subdivisions.
| void omni::visual::Plane::resize | ( | size_t | _horizontal, |
| size_t | _vertical | ||
| ) |
Set horizontal and vertical subdivisions (does not regenerate the.
| void omni::visual::Plane::setHorizontal | ( | size_t | _horizontal | ) |
Set horizontal subdivisions (does not regenerate the mesh)
| void omni::visual::Plane::setVertical | ( | size_t | _vertical | ) |
Set vertical subdivisions (does not regenerate the mesh)
| void omni::visual::Plane::update | ( | texcoord_transform_functor_type | _f | ) |
Update mesh with texcoord transformation.
|
virtual |
Update mesh (without transforming texture coordinates)
Reimplemented from omni::visual::Interface.
| size_t omni::visual::Plane::vertical | ( | ) | const |
Return number of vertical subdivisions.
|
private |
|
private |
|
private |
1.8.6