Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes

vl::ObjMaterial Class Reference

Represents a Wavefront OBJ material as loaded from an MTL file. See also ObjLoader. More...

#include <vlOBJ.hpp>

Inheritance diagram for vl::ObjMaterial:
vl::Object

List of all members.

Public Member Functions

virtual const char * className ()
 Returns the name of the class.
 ObjMaterial ()
const fvec3ka () const
 Ka - ambient color.
const fvec3kd () const
 Kd - diffuse color.
const fvec3ks () const
 Ks - specular color.
const fvec3ke () const
 Ke - emissive color.
float tr () const
 Tr/d - transparency.
float ns () const
 Ns - specular exponent.
int illum () const
 illum - illumination model
float ni () const
 Ni - optical density / index of refraction.
const ObjTexturemap_Kd () const
 map_Kd - ambient diffuse
const ObjTexturemap_Ka () const
 map_Ka - ambient color map
const ObjTexturemap_Ks () const
 map_Ks - specular color map
const ObjTexturemap_Ns () const
 map_Ns - specular exponent map
const ObjTexturemap_d () const
 map_d - transparency map
const ObjTexturemap_Decal () const
 decal - decal map
const ObjTexturemap_Disp () const
 disp - displace map
const ObjTexturemap_Bump () const
 bump - bump map
void setKa (const fvec3 &ka)
 Ka - ambient color.
void setKd (const fvec3 &kd)
 Kd - diffuse color.
void setKs (const fvec3 &ks)
 Ks - specular color.
void setKe (const fvec3 &ke)
 Ke - emissive color.
void setTr (float tr)
 Tr/d - transparency.
void setNs (float ns)
 Ns - specular exponent.
void setIllum (int illum)
 illum - illumination model
void setNi (float ni)
 Ni - optical density / index of refraction.
void setMap_Kd (const ObjTexture &map_kd)
 map_Kd - ambient diffuse
void setMap_Ka (const ObjTexture &map_ka)
 map_Ka - ambient color map
void setMap_Ks (const ObjTexture &map_ks)
 map_Ks - specular color map
void setMap_Ns (const ObjTexture &map_ns)
 map_Ns - specular exponent map
void setMap_d (const ObjTexture &map_d)
 map_d - transparency map
void setMap_Decal (const ObjTexture &map_decal)
 decal - decal map
void setMap_Disp (const ObjTexture &map_disp)
 disp - displace map
void setMap_Bump (const ObjTexture &map_bump)
 bump - bump map

Protected Attributes

fvec3 mKa
 Ka - ambient color.
fvec3 mKd
 Kd - diffuse color.
fvec3 mKs
 Ks - specular color.
fvec3 mKe
 Ke - emissive color.
float mTr
 Tr/d - transparency.
float mNs
 Ns - specular exponent.
int mIllum
 illum - illumination model
float mNi
 Ni - optical density / index of refraction.
ObjTexture mMap_Kd
 map_Kd - ambient diffuse
ObjTexture mMap_Ka
 map_Ka - ambient color map
ObjTexture mMap_Ks
 map_Ks - specular color map
ObjTexture mMap_Ns
 map_Ns - specular exponent map
ObjTexture mMap_d
 map_d - transparency map
ObjTexture mMap_Decal
 decal - decal map
ObjTexture mMap_Disp
 disp - displace map
ObjTexture mMap_Bump
 bump - bump map

Detailed Description

Represents a Wavefront OBJ material as loaded from an MTL file. See also ObjLoader.

Definition at line 186 of file vlOBJ.hpp.


Constructor & Destructor Documentation

vl::ObjMaterial::ObjMaterial (  ) [inline]

Definition at line 191 of file vlOBJ.hpp.


Member Function Documentation

virtual const char* vl::ObjMaterial::className (  ) [inline, virtual]

Returns the name of the class.

Reimplemented from vl::Object.

Definition at line 189 of file vlOBJ.hpp.

const fvec3& vl::ObjMaterial::ka (  ) const [inline]

Ka - ambient color.

Definition at line 194 of file vlOBJ.hpp.

References mKa.

Referenced by setKa().

const fvec3& vl::ObjMaterial::kd (  ) const [inline]

Kd - diffuse color.

Definition at line 196 of file vlOBJ.hpp.

References mKd.

Referenced by setKd().

const fvec3& vl::ObjMaterial::ks (  ) const [inline]

Ks - specular color.

Definition at line 198 of file vlOBJ.hpp.

References mKs.

Referenced by setKs().

const fvec3& vl::ObjMaterial::ke (  ) const [inline]

Ke - emissive color.

Definition at line 200 of file vlOBJ.hpp.

References mKe.

Referenced by setKe().

float vl::ObjMaterial::tr (  ) const [inline]

Tr/d - transparency.

Definition at line 202 of file vlOBJ.hpp.

References mTr.

Referenced by setTr().

float vl::ObjMaterial::ns (  ) const [inline]

Ns - specular exponent.

Definition at line 204 of file vlOBJ.hpp.

References mNs.

Referenced by setNs().

int vl::ObjMaterial::illum (  ) const [inline]

illum - illumination model

Definition at line 206 of file vlOBJ.hpp.

References mIllum.

Referenced by setIllum().

float vl::ObjMaterial::ni (  ) const [inline]

Ni - optical density / index of refraction.

Definition at line 208 of file vlOBJ.hpp.

References mNi.

Referenced by setNi().

const ObjTexture& vl::ObjMaterial::map_Kd (  ) const [inline]

map_Kd - ambient diffuse

Definition at line 210 of file vlOBJ.hpp.

References mMap_Kd.

const ObjTexture& vl::ObjMaterial::map_Ka (  ) const [inline]

map_Ka - ambient color map

Definition at line 212 of file vlOBJ.hpp.

References mMap_Ka.

const ObjTexture& vl::ObjMaterial::map_Ks (  ) const [inline]

map_Ks - specular color map

Definition at line 214 of file vlOBJ.hpp.

References mMap_Ks.

const ObjTexture& vl::ObjMaterial::map_Ns (  ) const [inline]

map_Ns - specular exponent map

Definition at line 216 of file vlOBJ.hpp.

References mMap_Ns.

const ObjTexture& vl::ObjMaterial::map_d (  ) const [inline]

map_d - transparency map

Definition at line 218 of file vlOBJ.hpp.

References mMap_d.

Referenced by setMap_d().

const ObjTexture& vl::ObjMaterial::map_Decal (  ) const [inline]

decal - decal map

Definition at line 220 of file vlOBJ.hpp.

References mMap_Decal.

const ObjTexture& vl::ObjMaterial::map_Disp (  ) const [inline]

disp - displace map

Definition at line 222 of file vlOBJ.hpp.

References mMap_Disp.

const ObjTexture& vl::ObjMaterial::map_Bump (  ) const [inline]

bump - bump map

Definition at line 224 of file vlOBJ.hpp.

References mMap_Bump.

void vl::ObjMaterial::setKa ( const fvec3 ka ) [inline]

Ka - ambient color.

Definition at line 227 of file vlOBJ.hpp.

References ka(), and mKa.

void vl::ObjMaterial::setKd ( const fvec3 kd ) [inline]

Kd - diffuse color.

Definition at line 229 of file vlOBJ.hpp.

References kd(), and mKd.

void vl::ObjMaterial::setKs ( const fvec3 ks ) [inline]

Ks - specular color.

Definition at line 231 of file vlOBJ.hpp.

References ks(), and mKs.

void vl::ObjMaterial::setKe ( const fvec3 ke ) [inline]

Ke - emissive color.

Definition at line 233 of file vlOBJ.hpp.

References ke(), and mKe.

void vl::ObjMaterial::setTr ( float  tr ) [inline]

Tr/d - transparency.

Definition at line 235 of file vlOBJ.hpp.

References mTr, and tr().

void vl::ObjMaterial::setNs ( float  ns ) [inline]

Ns - specular exponent.

Definition at line 237 of file vlOBJ.hpp.

References mNs, and ns().

void vl::ObjMaterial::setIllum ( int  illum ) [inline]

illum - illumination model

Definition at line 239 of file vlOBJ.hpp.

References illum(), and mIllum.

void vl::ObjMaterial::setNi ( float  ni ) [inline]

Ni - optical density / index of refraction.

Definition at line 241 of file vlOBJ.hpp.

References mNi, and ni().

void vl::ObjMaterial::setMap_Kd ( const ObjTexture map_kd ) [inline]

map_Kd - ambient diffuse

Definition at line 243 of file vlOBJ.hpp.

References mMap_Kd.

void vl::ObjMaterial::setMap_Ka ( const ObjTexture map_ka ) [inline]

map_Ka - ambient color map

Definition at line 245 of file vlOBJ.hpp.

References mMap_Ka.

void vl::ObjMaterial::setMap_Ks ( const ObjTexture map_ks ) [inline]

map_Ks - specular color map

Definition at line 247 of file vlOBJ.hpp.

References mMap_Ks.

void vl::ObjMaterial::setMap_Ns ( const ObjTexture map_ns ) [inline]

map_Ns - specular exponent map

Definition at line 249 of file vlOBJ.hpp.

References mMap_Ns.

void vl::ObjMaterial::setMap_d ( const ObjTexture map_d ) [inline]

map_d - transparency map

Definition at line 251 of file vlOBJ.hpp.

References map_d(), and mMap_d.

void vl::ObjMaterial::setMap_Decal ( const ObjTexture map_decal ) [inline]

decal - decal map

Definition at line 253 of file vlOBJ.hpp.

References mMap_Decal.

void vl::ObjMaterial::setMap_Disp ( const ObjTexture map_disp ) [inline]

disp - displace map

Definition at line 255 of file vlOBJ.hpp.

References mMap_Disp.

void vl::ObjMaterial::setMap_Bump ( const ObjTexture map_bump ) [inline]

bump - bump map

Definition at line 257 of file vlOBJ.hpp.

References mMap_Bump.


Member Data Documentation

Ka - ambient color.

Definition at line 261 of file vlOBJ.hpp.

Referenced by ka(), and setKa().

Kd - diffuse color.

Definition at line 263 of file vlOBJ.hpp.

Referenced by kd(), and setKd().

Ks - specular color.

Definition at line 265 of file vlOBJ.hpp.

Referenced by ks(), and setKs().

Ke - emissive color.

Definition at line 267 of file vlOBJ.hpp.

Referenced by ke(), and setKe().

float vl::ObjMaterial::mTr [protected]

Tr/d - transparency.

Definition at line 269 of file vlOBJ.hpp.

Referenced by setTr(), and tr().

float vl::ObjMaterial::mNs [protected]

Ns - specular exponent.

Definition at line 271 of file vlOBJ.hpp.

Referenced by ns(), and setNs().

int vl::ObjMaterial::mIllum [protected]

illum - illumination model

Definition at line 273 of file vlOBJ.hpp.

Referenced by illum(), and setIllum().

float vl::ObjMaterial::mNi [protected]

Ni - optical density / index of refraction.

Definition at line 275 of file vlOBJ.hpp.

Referenced by ni(), and setNi().

map_Kd - ambient diffuse

Definition at line 277 of file vlOBJ.hpp.

Referenced by map_Kd(), and setMap_Kd().

map_Ka - ambient color map

Definition at line 279 of file vlOBJ.hpp.

Referenced by map_Ka(), and setMap_Ka().

map_Ks - specular color map

Definition at line 281 of file vlOBJ.hpp.

Referenced by map_Ks(), and setMap_Ks().

map_Ns - specular exponent map

Definition at line 283 of file vlOBJ.hpp.

Referenced by map_Ns(), and setMap_Ns().

map_d - transparency map

Definition at line 285 of file vlOBJ.hpp.

Referenced by map_d(), and setMap_d().

decal - decal map

Definition at line 287 of file vlOBJ.hpp.

Referenced by map_Decal(), and setMap_Decal().

disp - displace map

Definition at line 289 of file vlOBJ.hpp.

Referenced by map_Disp(), and setMap_Disp().

bump - bump map

Definition at line 291 of file vlOBJ.hpp.

Referenced by map_Bump(), and setMap_Bump().


The documentation for this class was generated from the following file:

Visualization Library v2011.05.1142 Reference Documentation
Copyright 2005-2011 Michele Bosi. All rights reserved.
Updated on Thu May 26 2011 22:51:43.
Permission is granted to use this page to write and publish articles regarding Visualization Library.