Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

M3DMaterial Class Reference

#include <3dsmodel.h>

Collaboration diagram for M3DMaterial:

Collaboration graph
List of all members.

Public Member Functions

M3DColor getAmbientColor () const
M3DColor getDiffuseColor () const
std::string getName () const
float getOpacity () const
float getShininess () const
M3DColor getSpecularColor () const
std::string getTextureMap () const
 M3DMaterial ()
void setAmbientColor (M3DColor)
void setDiffuseColor (M3DColor)
void setName (std::string)
void setOpacity (float)
void setShininess (float)
void setSpecularColor (M3DColor)
void setTextureMap (const std::string &)

Private Attributes

M3DColor ambient
M3DColor diffuse
std::string name
float opacity
float shininess
M3DColor specular
std::string texmap

Constructor & Destructor Documentation

M3DMaterial::M3DMaterial  ) 
 

Definition at line 26 of file 3dsmodel.cpp.

00026                          :
00027     ambient(0, 0, 0),
00028     diffuse(0, 0, 0),
00029     specular(0, 0, 0),
00030     shininess(1.0f)
00031 {
00032 }


Member Function Documentation

M3DColor M3DMaterial::getAmbientColor  )  const
 

Definition at line 54 of file 3dsmodel.cpp.

References ambient.

00055 {
00056     return ambient;
00057 }

M3DColor M3DMaterial::getDiffuseColor  )  const
 

Definition at line 44 of file 3dsmodel.cpp.

References diffuse.

Referenced by Convert3DSMesh(), ConvertToVertexList(), and convertToVertexList().

00045 {
00046     return diffuse;
00047 }

string M3DMaterial::getName  )  const
 

Definition at line 34 of file 3dsmodel.cpp.

References name.

Referenced by Convert3DSMesh(), ConvertToVertexList(), and convertToVertexList().

00035 {
00036     return name;
00037 }

float M3DMaterial::getOpacity  )  const
 

Definition at line 84 of file 3dsmodel.cpp.

References opacity.

Referenced by Convert3DSMesh(), ConvertToVertexList(), and convertToVertexList().

00085 {
00086     return opacity;
00087 }

float M3DMaterial::getShininess  )  const
 

Definition at line 74 of file 3dsmodel.cpp.

References shininess.

Referenced by Convert3DSMesh(), ConvertToVertexList(), and convertToVertexList().

00075 {
00076     return shininess;
00077 }

M3DColor M3DMaterial::getSpecularColor  )  const
 

Definition at line 64 of file 3dsmodel.cpp.

References specular.

Referenced by Convert3DSMesh(), ConvertToVertexList(), and convertToVertexList().

00065 {
00066     return specular;
00067 }

string M3DMaterial::getTextureMap  )  const
 

Definition at line 94 of file 3dsmodel.cpp.

References texmap.

Referenced by Convert3DSMesh(), ConvertToVertexList(), and convertToVertexList().

00095 {
00096     return texmap;
00097 }

void M3DMaterial::setAmbientColor M3DColor   ) 
 

Definition at line 59 of file 3dsmodel.cpp.

References ambient.

Referenced by processMaterialChunk().

00060 {
00061     ambient = color;
00062 }

void M3DMaterial::setDiffuseColor M3DColor   ) 
 

Definition at line 49 of file 3dsmodel.cpp.

References diffuse.

Referenced by processMaterialChunk().

00050 {
00051     diffuse = color;
00052 }

void M3DMaterial::setName std::string   ) 
 

Definition at line 39 of file 3dsmodel.cpp.

References name.

Referenced by processMaterialChunk().

00040 {
00041     name = _name;
00042 }

void M3DMaterial::setOpacity float   ) 
 

Definition at line 89 of file 3dsmodel.cpp.

References opacity.

Referenced by processMaterialChunk().

00090 {
00091     opacity = _opacity;
00092 }

void M3DMaterial::setShininess float   ) 
 

Definition at line 79 of file 3dsmodel.cpp.

References shininess.

Referenced by processMaterialChunk().

00080 {
00081     shininess = _shininess;
00082 }

void M3DMaterial::setSpecularColor M3DColor   ) 
 

Definition at line 69 of file 3dsmodel.cpp.

References specular.

Referenced by processMaterialChunk().

00070 {
00071     specular = color;
00072 }

void M3DMaterial::setTextureMap const std::string  ) 
 

Definition at line 99 of file 3dsmodel.cpp.

References texmap.

Referenced by processTexmapChunk().

00100 {
00101     texmap = _texmap;
00102 }


Member Data Documentation

M3DColor M3DMaterial::ambient [private]
 

Definition at line 52 of file 3dsmodel.h.

Referenced by getAmbientColor(), and setAmbientColor().

M3DColor M3DMaterial::diffuse [private]
 

Definition at line 53 of file 3dsmodel.h.

Referenced by getDiffuseColor(), and setDiffuseColor().

std::string M3DMaterial::name [private]
 

Definition at line 50 of file 3dsmodel.h.

Referenced by getName(), and setName().

float M3DMaterial::opacity [private]
 

Definition at line 56 of file 3dsmodel.h.

Referenced by getOpacity(), and setOpacity().

float M3DMaterial::shininess [private]
 

Definition at line 55 of file 3dsmodel.h.

Referenced by getShininess(), and setShininess().

M3DColor M3DMaterial::specular [private]
 

Definition at line 54 of file 3dsmodel.h.

Referenced by getSpecularColor(), and setSpecularColor().

std::string M3DMaterial::texmap [private]
 

Definition at line 51 of file 3dsmodel.h.

Referenced by getTextureMap(), and setTextureMap().


The documentation for this class was generated from the following files:
Generated on Sat Jan 14 22:33:27 2006 for Celestia by  doxygen 1.4.1