Omnidome
Fulldome Mapping Software Toolkit
|
A Warp vertex is a geometry entity with a position, normal and texture. More...
#include <Vertex2D.h>
Public Member Functions | |
Vertex2D () | |
Default constructor. More... | |
Vertex2D (const QVector2D &_pos, const QVector2D &_texCoord) | |
Construct with position and texture coordinates. More... | |
void | setPos (QVector2D const &_pos) |
Set new position. More... | |
QVector2D & | pos () |
Return reference to position. More... | |
QVector2D const & | pos () const |
Return const reference to position. More... | |
void | setTexCoord (QVector2D const &_texCoord) |
Set new texture coordinates. More... | |
QVector2D & | texCoord () |
Return reference to texture coordinates. More... | |
QVector2D const & | texCoord () const |
Return const reference to texture coordinates. More... | |
Static Public Member Functions | |
static constexpr size_t | texCoordOffset () |
static constexpr size_t | posOffset () |
Private Attributes | |
QVector2D | texCoord_ |
QVector2D | pos_ |
A Warp vertex is a geometry entity with a position, normal and texture.
omni::geometry::Vertex2D::Vertex2D | ( | const QVector2D & | _pos, |
const QVector2D & | _texCoord | ||
) |
Construct with position and texture coordinates.
QVector2D & omni::geometry::Vertex2D::pos | ( | ) |
Return reference to position.
QVector2D const & omni::geometry::Vertex2D::pos | ( | ) | const |
Return const reference to position.
|
inlinestatic |
void omni::geometry::Vertex2D::setPos | ( | QVector2D const & | _pos | ) |
Set new position.
void omni::geometry::Vertex2D::setTexCoord | ( | QVector2D const & | _texCoord | ) |
Set new texture coordinates.
QVector2D & omni::geometry::Vertex2D::texCoord | ( | ) |
Return reference to texture coordinates.
QVector2D const & omni::geometry::Vertex2D::texCoord | ( | ) | const |
Return const reference to texture coordinates.
|
inlinestatic |
|
private |
|
private |