Terminus
|
The IndexTriple class is used as a temporary geometry data storage, while parsing .obj files in the resourcemanager class. More...
#include <indextriple.h>
Public Member Functions | |
IndexTriple (std::string positionSpec, std::string textureSpec, std::string normalSpec) | |
~IndexTriple () | |
int | positionIndex () const |
int | textureIndex () const |
int | normalIndex () const |
bool | validTexture () const |
bool | validNormal () const |
bool | operator< (const IndexTriple &compareTriple) const |
Returns true, if one of the attributes position, texture, or normal of the comparedTriple is larger, than the triple it is compared to. More... | |
bool | operator== (const IndexTriple &compareTriple) const |
Returns true, if the compared attributes position, texture and normal have the same value between the compared triples. More... | |
Protected Attributes | |
int | m_positionIndex |
int | m_textureIndex |
int | m_normalIndex |
bool | m_validTexture |
bool | m_validNormal |
The IndexTriple class is used as a temporary geometry data storage, while parsing .obj files in the resourcemanager class.
The important relational operators " < " and " == " are implemented in order to decide, whether this specific vertex data has already been stored.
terminus::IndexTriple::IndexTriple | ( | std::string | positionSpec, |
std::string | textureSpec, | ||
std::string | normalSpec | ||
) |
terminus::IndexTriple::~IndexTriple | ( | ) |
int terminus::IndexTriple::normalIndex | ( | ) | const |
bool terminus::IndexTriple::operator< | ( | const IndexTriple & | compareTriple | ) | const |
Returns true, if one of the attributes position, texture, or normal of the comparedTriple is larger, than the triple it is compared to.
compareTriple |
bool terminus::IndexTriple::operator== | ( | const IndexTriple & | compareTriple | ) | const |
Returns true, if the compared attributes position, texture and normal have the same value between the compared triples.
compareTriple |
int terminus::IndexTriple::positionIndex | ( | ) | const |
int terminus::IndexTriple::textureIndex | ( | ) | const |
bool terminus::IndexTriple::validNormal | ( | ) | const |
bool terminus::IndexTriple::validTexture | ( | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |