|
Omnidome
Fulldome Mapping Software Toolkit
|
A vertex is a geometry entity with a position, normal and texture. More...
#include <Vertex.h>
Public Member Functions | |
| Vertex () | |
| Default constructor. More... | |
| Vertex (const QVector3D &_pos, const QVector3D &_normal, const QVector3D &_texCoord=QVector3D()) | |
| Construct from given position, normal and optional texture coordinates. More... | |
| void | setPos (QVector3D const &_pos) |
| Set new position. More... | |
| QVector3D & | pos () |
| Return reference to position. More... | |
| QVector3D const & | pos () const |
| Return const reference to position. More... | |
| void | setNormal (QVector3D const &_normal) |
| Sets new normal (is not normalized!) More... | |
| QVector3D & | normal () |
| Return reference to normal. More... | |
| QVector3D const & | normal () const |
| Return const reference to normal. More... | |
| void | setTexCoord (QVector3D const &_texCoord) |
| Set new texture coordinates. More... | |
| QVector3D & | texCoord () |
| Return reference to texture coordinates. More... | |
| QVector3D const & | texCoord () const |
| Return const reference to texture coordinates. More... | |
Static Public Member Functions | |
| static constexpr size_t | texCoordOffset () |
| static constexpr size_t | normalOffset () |
| static constexpr size_t | posOffset () |
Private Attributes | |
| QVector3D | texCoord_ |
| QVector3D | normal_ |
| QVector3D | pos_ |
A vertex is a geometry entity with a position, normal and texture.
| omni::geometry::Vertex::Vertex | ( | const QVector3D & | _pos, |
| const QVector3D & | _normal, | ||
| const QVector3D & | _texCoord = QVector3D() |
||
| ) |
Construct from given position, normal and optional texture coordinates.
| QVector3D & omni::geometry::Vertex::normal | ( | ) |
Return reference to normal.
| QVector3D const & omni::geometry::Vertex::normal | ( | ) | const |
Return const reference to normal.
|
inlinestatic |
| QVector3D & omni::geometry::Vertex::pos | ( | ) |
Return reference to position.
| QVector3D const & omni::geometry::Vertex::pos | ( | ) | const |
Return const reference to position.
|
inlinestatic |
| void omni::geometry::Vertex::setNormal | ( | QVector3D const & | _normal | ) |
Sets new normal (is not normalized!)
| void omni::geometry::Vertex::setPos | ( | QVector3D const & | _pos | ) |
Set new position.
| void omni::geometry::Vertex::setTexCoord | ( | QVector3D const & | _texCoord | ) |
Set new texture coordinates.
| QVector3D & omni::geometry::Vertex::texCoord | ( | ) |
Return reference to texture coordinates.
| QVector3D const & omni::geometry::Vertex::texCoord | ( | ) | const |
Return const reference to texture coordinates.
|
inlinestatic |
|
private |
|
private |
|
private |
1.8.6