|
| enum | VertexOrder {
XYZ,
XZY,
YXZ,
YZX,
ZXY,
ZYX
} |
| | Possible vertex orderings with load()
|
| |
|
typedef QVector< MaterialGroup > | MaterialGroupList |
| |
|
typedef QVector< Vec3f > | V3Vec |
| |
|
typedef QVector< Vec2f > | V2Vec |
| |
|
typedef QVector< Vertex > | VertexList |
| |
|
typedef QVector< unsigned int > | IndexList |
| |
|
typedef QVector< unsigned short > | ShortIndexList |
| |
|
typedef QVector< Material > | MaterialList |
| |
|
typedef QMap< QString, int > | MaterialMap |
| |
|
typedef QVector< Object > | ObjectList |
| |
|
typedef QMap< QString, int > | ObjectMap |
| |
|
|
| StelOBJ () |
| | Constructs an empty StelOBJ. Use load() to load data from a .obj file.
|
| |
|
void | clear () |
| | Resets all data contained in this StelOBJ.
|
| |
| unsigned int | getFaceCount () const |
| | Returns the number of faces. More...
|
| |
|
const VertexList & | getVertexList () const |
| | Returns an vertex list, suitable for loading into OpenGL arrays.
|
| |
|
const IndexList & | getIndexList () const |
| | Returns an index list, suitable for use with OpenGL element arrays.
|
| |
|
const MaterialList & | getMaterialList () const |
| | Returns the list of materials.
|
| |
|
const ObjectList & | getObjectList () const |
| | Returns the list of objects.
|
| |
|
const ObjectMap & | getObjectMap () const |
| | Returns the object map (mapping the object names to their indices in the object list)
|
| |
|
const AABBox & | getAABBox () const |
| | Returns the global AABB of all vertices of the OBJ.
|
| |
| const Vec3f & | getCentroid () const |
| | Returns the global centroid of all vertices of the OBJ. More...
|
| |
| bool | load (const QString &filename, const VertexOrder vertexOrder=VertexOrder::XYZ) |
| | Loads an .obj file by name. More...
|
| |
| bool | load (QIODevice &device, const QString &basePath, const VertexOrder vertexOrder=VertexOrder::XYZ) |
| | Loads an .obj file from the specified device. More...
|
| |
|
bool | isLoaded () const |
| | Returns true if this object contains valid data from a load() method.
|
| |
|
void | rebuildNormals () |
| | Rebuilds vertex normals as the average of face normals.
|
| |
| bool | canUseShortIndices () const |
| | Returns if unsigned short indices can be used instead of unsigned int indices, to save some memory. More...
|
| |
| ShortIndexList | getShortIndexList () const |
| | Converts the index list (as returned by getIndexList()) to use unsigned short instead of integer. More...
|
| |
| void | scale (double factor) |
| | Scales the vertex positions according to the given factor. More...
|
| |
| void | transform (const QMatrix4x4 &mat, bool onlyPosition=false) |
| | Applies the given transformation matrix to the vertex data. More...
|
| |
| void | splitVertexData (V3Vec *position, V2Vec *texCoord=Q_NULLPTR, V3Vec *normal=Q_NULLPTR, V3Vec *tangent=Q_NULLPTR, V3Vec *bitangent=Q_NULLPTR) const |
| | Splits the vertex data into separate arrays. More...
|
| |
| void | clearVertexData () |
| | Clears the internal vertex list to save space, meaning getVertexList() returns an empty list! The other members are unaffected (indices, materials, objects etc. More...
|
| |