Visualization Library 2.0.0
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Represents a Wavefront OBJ material as loaded from an MTL file. See also ObjLoader. More...
#include <ioOBJ.hpp>
Public Member Functions | |
ObjMaterial () | |
const fvec3 & | ka () const |
Ka - ambient color. More... | |
const fvec3 & | kd () const |
Kd - diffuse color. More... | |
const fvec3 & | ks () const |
Ks - specular color. More... | |
const fvec3 & | ke () const |
Ke - emissive color. More... | |
float | tr () const |
Tr/d - transparency. More... | |
float | ns () const |
Ns - specular exponent. More... | |
int | illum () const |
illum - illumination model More... | |
float | ni () const |
Ni - optical density / index of refraction. More... | |
const ObjTexture & | map_Kd () const |
map_Kd - ambient diffuse More... | |
const ObjTexture & | map_Ka () const |
map_Ka - ambient color map More... | |
const ObjTexture & | map_Ks () const |
map_Ks - specular color map More... | |
const ObjTexture & | map_Ns () const |
map_Ns - specular exponent map More... | |
const ObjTexture & | map_d () const |
map_d - transparency map More... | |
const ObjTexture & | map_Decal () const |
decal - decal map More... | |
const ObjTexture & | map_Disp () const |
disp - displace map More... | |
const ObjTexture & | map_Bump () const |
bump - bump map More... | |
void | setKa (const fvec3 &ka) |
Ka - ambient color. More... | |
void | setKd (const fvec3 &kd) |
Kd - diffuse color. More... | |
void | setKs (const fvec3 &ks) |
Ks - specular color. More... | |
void | setKe (const fvec3 &ke) |
Ke - emissive color. More... | |
void | setTr (float tr) |
Tr/d - transparency. More... | |
void | setNs (float ns) |
Ns - specular exponent. More... | |
void | setIllum (int illum) |
illum - illumination model More... | |
void | setNi (float ni) |
Ni - optical density / index of refraction. More... | |
void | setMap_Kd (const ObjTexture &map_kd) |
map_Kd - ambient diffuse More... | |
void | setMap_Ka (const ObjTexture &map_ka) |
map_Ka - ambient color map More... | |
void | setMap_Ks (const ObjTexture &map_ks) |
map_Ks - specular color map More... | |
void | setMap_Ns (const ObjTexture &map_ns) |
map_Ns - specular exponent map More... | |
void | setMap_d (const ObjTexture &map_d) |
map_d - transparency map More... | |
void | setMap_Decal (const ObjTexture &map_decal) |
decal - decal map More... | |
void | setMap_Disp (const ObjTexture &map_disp) |
disp - displace map More... | |
void | setMap_Bump (const ObjTexture &map_bump) |
bump - bump map 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 | |
fvec3 | mKa |
Ka - ambient color. More... | |
fvec3 | mKd |
Kd - diffuse color. More... | |
fvec3 | mKs |
Ks - specular color. More... | |
fvec3 | mKe |
Ke - emissive color. More... | |
float | mTr |
Tr/d - transparency. More... | |
float | mNs |
Ns - specular exponent. More... | |
int | mIllum |
illum - illumination model More... | |
float | mNi |
Ni - optical density / index of refraction. More... | |
ObjTexture | mMap_Kd |
map_Kd - ambient diffuse More... | |
ObjTexture | mMap_Ka |
map_Ka - ambient color map More... | |
ObjTexture | mMap_Ks |
map_Ks - specular color map More... | |
ObjTexture | mMap_Ns |
map_Ns - specular exponent map More... | |
ObjTexture | mMap_d |
map_d - transparency map More... | |
ObjTexture | mMap_Decal |
decal - decal map More... | |
ObjTexture | mMap_Disp |
disp - displace map More... | |
ObjTexture | mMap_Bump |
bump - bump map More... | |
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 () |
Represents a Wavefront OBJ material as loaded from an MTL file. See also ObjLoader.
|
inline |
|
inline |
Ka - ambient color.
Definition at line 195 of file ioOBJ.hpp.
Referenced by vl::ObjLoader::loadOBJ().
|
inline |
Kd - diffuse color.
Definition at line 197 of file ioOBJ.hpp.
Referenced by vl::ObjLoader::loadOBJ().
|
inline |
Ke - emissive color.
Definition at line 201 of file ioOBJ.hpp.
Referenced by vl::ObjLoader::loadOBJ().
|
inline |
Ks - specular color.
Definition at line 199 of file ioOBJ.hpp.
Referenced by vl::ObjLoader::loadOBJ().
|
inline |
|
inline |
map_d - transparency map
Definition at line 219 of file ioOBJ.hpp.
Referenced by vl::ObjLoader::loadOBJ().
|
inline |
|
inline |
|
inline |
|
inline |
map_Kd - ambient diffuse
Definition at line 211 of file ioOBJ.hpp.
Referenced by vl::ObjLoader::loadOBJ().
|
inline |
|
inline |
|
inline |
|
inline |
Ns - specular exponent.
Definition at line 205 of file ioOBJ.hpp.
Referenced by vl::ObjLoader::loadOBJ().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Tr/d - transparency.
Definition at line 203 of file ioOBJ.hpp.
Referenced by vl::ObjLoader::loadOBJ().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Visualization Library 2.0.0 Reference Documentation
Updated on Wed Dec 23 2020 12:44:10.
© Copyright Michele Bosi. All rights reserved.