#include <ivf/IvfMaterial.h>
Inheritance diagram for CIvfMaterial:
Public Member Functions | |
bool | getColorMaterial () |
void | setColorMaterial (bool flag) |
CIvfMaterial () | |
virtual | ~CIvfMaterial () |
IvfClassInfo ("CIvfMaterial", CIvfObject) | |
void | setShininess (float shininess) |
void | getShininess (float &shininess) |
void | setEmissionColor (const float red, const float green, const float blue, const float alfa) |
void | getEmissionColor (float &red, float &green, float &blue, float &alfa) |
void | setDiffuseColor (const float red, const float green, const float blue, const float alfa) |
void | getDiffuseColor (float &red, float &green, float &blue, float &alfa) |
void | setSpecularColor (const float red, const float green, const float blue, const float alfa) |
void | getSpecularColor (float &red, float &green, float &blue, float &alfa) |
void | setAmbientColor (const float red, const float green, const float blue, const float alfa) |
void | getAmbientColor (float &red, float &green, float &blue, float &alfa) |
void | setAlphaValue (float alpha) |
void | multiplyColor (double factor) |
void | multiplyEmission (double factor) |
void | multiplyAmbient (double factor) |
void | multiplyDiffuse (double factor) |
void | multiplySpecular (double factor) |
void | assignFrom (CIvfMaterial *material) |
void | brightnessEmission (double factor) |
void | brightnessAmbient (double factor) |
void | brightnessDiffuse (double factor) |
void | brightnessSpecular (double factor) |
Protected Member Functions | |
virtual void | createMaterial () |
CIvfMateral contains a material definition as used in OpenGL. The class is used by classes derived from the CIvfShape class.
actionctl.cpp, advgeom.cpp, controllers.cpp, culling.cpp, extrusion.cpp, handlers.cpp, lighting.cpp, lod.cpp, manip.cpp, placement.cpp, robot.cpp, selection.cpp, and textures.cpp.
Definition at line 40 of file IvfMaterial.h.
|
CIvfMaterial constructor |
|
CIvfMaterial destructor |
|
Creates the material of the object. This method is called from the render() method when material rendering is to be done. Objects derived from CIvfObject should implement material routines from this method using OpenGL. Reimplemented from CIvfObject. |
|
Returns the ambient color components |
|
Returns the diffuse color components |
|
Returns the emissive color components |
|
Returns the shininess property |
|
Returns the specular color components |
|
Set material alpha value for all material properties |
|
Sets the ambient color components Sets the ambient color components using red, green and blue components. See OpenGL documentation.
|
|
Sets the diffuse color components Sets the diffuse color components using red, green and blue components. See OpenGL documentation.
|
|
Sets the emsissive color components Sets the emissive color components using red, green and blue components. See OpenGL documentation.
|
|
Sets the shininess property. See OpenGL documentation
|
|
Sets the specular color components Sets the specular color components using red, green and blue components. See OpenGL documentation.
|