Gem Illuminator
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
Classes | Enumerations | Functions
abstractgem.h File Reference
#include <QObject>
#include <QQuaternion>
#include <QVector3D>

Go to the source code of this file.

Classes

class  AbstractGem
 The AbstractGem class is the base class of all gems. As base class all required information of a gem are stored. Also, useful algorithms for collision detection are provided. Furthermore, this class is supposed to be used within QML. More...
 

Enumerations

enum  GemType { GemType::Abstract, GemType::Cube, GemType::Tetrahedron }
 An enum describing current gem type. This enum is used for faster comparision of gems, because all gems of one type have same (objectspace) vertices. More...
 

Functions

uint qHash (GemType key, uint seed)
 Custom implementation of qHash. Providing hash calculation for GemType. In order to use GemType as key in QHash and QSet. More...
 

Enumeration Type Documentation

enum GemType
strong

An enum describing current gem type. This enum is used for faster comparision of gems, because all gems of one type have same (objectspace) vertices.

Enumerator
Abstract 
Cube 
Tetrahedron 

Function Documentation

uint qHash ( GemType  key,
uint  seed 
)

Custom implementation of qHash. Providing hash calculation for GemType. In order to use GemType as key in QHash and QSet.

Parameters
keyValue the hash value is calculated for
seed
Returns
Returns hash value.