The GemData class stores all required information to describe an AbstractGem. The advantage of GemData is, that it is possible to assign, copy, compare and qHash() this class. Therefore, it is possible to store it in most Qt-containers.
More...
#include <gemdata.h>
The GemData class stores all required information to describe an AbstractGem. The advantage of GemData is, that it is possible to assign, copy, compare and qHash() this class. Therefore, it is possible to store it in most Qt-containers.
Creates a new GemData with all values initialized to zero.
GemData::GemData |
( |
const GemData & |
ohterGemData | ) |
|
Copy constructor.
- Parameters
-
ohterGemData | GemData that should be copied. |
void GemData::calculateModelMatrix |
( |
| ) |
const |
|
protected |
const QVector3D & GemData::color |
( |
| ) |
const |
void GemData::copyTriangles |
( |
const QList< Triangle * > & |
triangles | ) |
|
|
protected |
const QMatrix4x4 & GemData::model |
( |
| ) |
const |
Returns on demand the modelmatrix of current gemData.
- Returns
const QVector3D & GemData::position |
( |
| ) |
const |
const QQuaternion & GemData::rotation |
( |
| ) |
const |
float GemData::scale |
( |
| ) |
const |
void GemData::setColor |
( |
const QVector3D & |
color | ) |
|
void GemData::setPosition |
( |
const QVector3D & |
position | ) |
|
void GemData::setRotation |
( |
const QQuaternion & |
rotation | ) |
|
void GemData::setScale |
( |
float |
scale | ) |
|
void GemData::setTriangles |
( |
const QList< Triangle * > & |
triangles | ) |
|
void GemData::setType |
( |
GemType |
type | ) |
|
QVector3D* GemData::m_color |
|
protected |
bool GemData::m_isModelInvalid |
|
mutableprotected |
QMatrix4x4* GemData::m_model |
|
mutableprotected |
QVector3D* GemData::m_position |
|
protected |
QQuaternion* GemData::m_rotation |
|
protected |
The documentation for this class was generated from the following files: