Visualization Library 2.0.0
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Represents a Wavefront OBJ mesh. See also ObjLoader. More...
#include <ioOBJ.hpp>
Public Member Functions | |
void | setMaterial (ObjMaterial *mat) |
The material associated to this mesh. More... | |
const ObjMaterial * | material () const |
The material associated to this mesh. More... | |
const std::vector< int > & | facePositionIndex () const |
Index into ObjLoader::vertexArray() vector. More... | |
const std::vector< int > & | faceNormalIndex () const |
Index into ObjLoader::normalArray() vector. More... | |
const std::vector< int > & | faceTexCoordIndex () const |
Index into ObjLoader::texCoordsArray() vector. More... | |
const std::vector< int > & | face_type () const |
Each entry represents a face, the number represents how many vertices the face has. More... | |
ObjMaterial * | material () |
The material associated to this mesh. More... | |
std::vector< int > & | facePositionIndex () |
Index into ObjLoader::vertexArray() vector. More... | |
std::vector< int > & | faceNormalIndex () |
Index into ObjLoader::normalArray() vector. More... | |
std::vector< int > & | faceTexCoordIndex () |
Index into ObjLoader::texCoordsArray() vector. More... | |
std::vector< int > & | face_type () |
Each entry represents a face, the number represents how many vertices the face has. More... | |
Public Member Functions inherited from vl::Object | |
Object () | |
Constructor. More... | |
Object (const Object &other) | |
Copy constructor: copies the name, ref count mutex and user data. More... | |
Object & | operator= (const Object &other) |
Copy operator: copies the object's name, ref count mutex and user data. More... | |
const std::string & | objectName () const |
The name of the object, by default set to the object's class name. More... | |
void | setObjectName (const char *name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setObjectName (const std::string &name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setRefCountMutex (IMutex *mutex) |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
IMutex * | refCountMutex () |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
const IMutex * | refCountMutex () const |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
int | referenceCount () const |
Returns the number of references of an object. More... | |
void | incReference () const |
Increments the reference count of an object. More... | |
void | decReference () |
Decrements the reference count of an object and deletes it if both automaticDelete() is true the count reaches 0. More... | |
void | setAutomaticDelete (bool autodel_on) |
If set to true the Object is deleted when its reference count reaches 0. More... | |
bool | automaticDelete () const |
If set to true the Object is deleted when its reference count reaches 0. More... | |
template<class T > | |
T * | as () |
Casts an Object to the specified class. More... | |
template<class T > | |
const T * | as () const |
Casts an Object to the specified class. More... | |
Protected Attributes | |
ref< ObjMaterial > | mMaterial |
std::vector< int > | mFace_icoords |
std::vector< int > | mFace_inormals |
std::vector< int > | mFace_itexcoords |
std::vector< int > | mFace_type |
Protected Attributes inherited from vl::Object | |
std::string | mObjectName |
IMutex * | mRefCountMutex |
int | mReferenceCount |
bool | mAutomaticDelete |
Additional Inherited Members | |
Protected Member Functions inherited from vl::Object | |
virtual | ~Object () |
|
inline |
Each entry represents a face, the number represents how many vertices the face has.
The for each vertex of each face there is an index in facePositionIndex(), faceNormalIndex(), faceTexCoordIndex()
Definition at line 316 of file ioOBJ.hpp.
Referenced by vl::ObjLoader::loadOBJ().
|
inline |
Each entry represents a face, the number represents how many vertices the face has.
The for each vertex of each face there is an index in facePositionIndex(), faceNormalIndex(), faceTexCoordIndex()
|
inline |
Index into ObjLoader::normalArray() vector.
Definition at line 311 of file ioOBJ.hpp.
Referenced by vl::ObjLoader::loadOBJ().
|
inline |
Index into ObjLoader::normalArray() vector.
|
inline |
Index into ObjLoader::vertexArray() vector.
Definition at line 309 of file ioOBJ.hpp.
Referenced by vl::ObjLoader::loadOBJ().
|
inline |
Index into ObjLoader::vertexArray() vector.
|
inline |
Index into ObjLoader::texCoordsArray() vector.
Definition at line 313 of file ioOBJ.hpp.
Referenced by vl::ObjLoader::loadOBJ().
|
inline |
Index into ObjLoader::texCoordsArray() vector.
|
inline |
|
inline |
|
inline |
The material associated to this mesh.
Definition at line 304 of file ioOBJ.hpp.
Referenced by vl::ObjLoader::loadOBJ().
|
protected |
Visualization Library 2.0.0 Reference Documentation
Updated on Wed Dec 23 2020 12:44:10.
© Copyright Michele Bosi. All rights reserved.