Public Member Functions | |
void | AddEmissiveColor (const Dtk_RGB &inColor) |
Adds the light emitted from the surface of this object. More... | |
void | AddReflectiveColor (const Dtk_RGB &inColor) |
Adds the color and amount of a perfect mirror reflection. More... | |
void | AddTransparentColor (const Dtk_RGB &inColor) |
Adds the color and amount of perfectly refracted light. More... | |
Dtk_Int32 | DtkDynamicType (const Dtk_Int32 &inId) |
Retrieves the dynamic entity type. More... | |
virtual int | DtkDynamicType (const int &inId)=0 |
virtual void | dump (FILE *file=stdout) |
Dtk_RGB | GetAmbientColor () const |
Returns the ambient light emitted from the surface. More... | |
Dtk_Double64 | GetAmbientRatio () const |
Returns the ambient ratio. More... | |
Dtk_RGB | GetDiffuseColor () const |
Returns the ambient light diffusely reflected from the surface of this object. More... | |
Dtk_Double64 | GetDiffuseRatio () const |
Returns the diffuse ratio. More... | |
Dtk_RGB | GetEmissiveColor () const |
Returns the color and amount of light emitted from the surface of this object. More... | |
Dtk_Double64 | GetEmissiveRatio () const |
Returns the emissive ratio. More... | |
Dtk_RGB | GetReflectiveColor () const |
Returns the color and amount of a perfect mirror reflection. More... | |
Dtk_Double64 | GetReflectiveRatio () const |
Returns the reflective ratio More... | |
Dtk_Double64 | GetShininessRatio () const |
Returns the Shininess ratio. More... | |
virtual Dtk_Size_t | GetSize () const |
Dtk_RGB | GetSpecularColor () const |
Returns the ambient light specularly reflected from the surface of this object. More... | |
Dtk_Double64 | GetSpecularRatio () const |
Returns the specular ratio More... | |
Dtk_RGB | GetTransparentColor () const |
Returns the color and amount of perfectly refracted light. More... | |
Dtk_Double64 | GetTransparentRatio () const |
Returns the transparent ratio More... | |
void | SetShininessRatio (Dtk_Double64 inShininess) |
Set the Shininess ratio (0.0 - 1.0) More... | |
void | SetTransparentRatio (Dtk_Double64 inRatio) |
Sets the ratio of transparency (0.0 : opaque, 1.0 : transparent) More... | |
Static Public Member Functions | |
static Dtk_LightMapPtr | Create (Dtk_RGB inAmbiant, Dtk_RGB inDiffuse, Dtk_RGB inSpecular) |
Create a Dtk_LightMapPtr. More... | |
static Dtk_LightMap * | DtkDynamicCast (Dtk_Object *s) |
Performs a dynamic cast - doesn't need RTTI -. More... | |
Protected Types | |
enum | { _typeID = DTK_TYPE_OBJECT } |
enum | { _typeID = DTK_TYPE_LIGHT } |
Protected Member Functions | |
void | _Copy (const Dtk_LightMap &inToBeCopied) |
void | _copy (const Dtk_Object &s) |
void | _init () |
void | _Init () |
void | _reset () |
void | _Reset () |
virtual Dtk_Object * | Clone () |
Dtk_LightMap () | |
Dtk_LightMap (const Dtk_LightMap &inToBeCopied) | |
Copy constructor. More... | |
Dtk_LightMap (Dtk_RGB inAmbient, Dtk_RGB inDiffuse, Dtk_RGB inSpecular) | |
virtual | ~Dtk_LightMap () |
Destructor. More... | |
Protected Attributes | |
Dtk_Handle * | _Private |
unsigned long | count_ |
Friends | |
class | Dtk_SmartPtr< Dtk_LightMap > |
|
protected |
Copy constructor.
inToBeCopied | Object to copy. |
|
protected |
|
protectedvirtual |
Destructor.
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protectedinherited |
|
protected |
void Dtk_LightMap::AddEmissiveColor | ( | const Dtk_RGB & | inColor | ) |
Adds the light emitted from the surface of this object.
void Dtk_LightMap::AddReflectiveColor | ( | const Dtk_RGB & | inColor | ) |
Adds the color and amount of a perfect mirror reflection.
void Dtk_LightMap::AddTransparentColor | ( | const Dtk_RGB & | inColor | ) |
Adds the color and amount of perfectly refracted light.
|
protectedvirtual |
|
static |
Create a Dtk_LightMapPtr.
Ambient | RGB color |
Diffuse | RGB color |
Specular | RGB color |
|
static |
Performs a dynamic cast - doesn't need RTTI -.
Retrieves the dynamic entity type.
|
pure virtualinherited |
Implemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, Dtk_TopologicalEntity, Dtk_MeshPolyline, Dtk_MeshSurface, Dtk_TransformedSurface, Dtk_FilletSurface, Dtk_OffsetSurface, Dtk_SphericalSurface, Dtk_ToroidalSurface, Dtk_ConicalSurface, Dtk_CylindricalSurface, Dtk_RuledSurface, Dtk_LinearExtrusionSurface, Dtk_StandardRevolutionSurface, Dtk_RevolutionSurface, Dtk_PlaneSurface, Dtk_NurbsSurface, Dtk_Surface, Dtk_Hyperbola, Dtk_Parabola, Dtk_Ellipse, Dtk_Conic, Dtk_Line, Dtk_Polyline, Dtk_NurbsCurve, Dtk_Curve, Dtk_Point, Dtk_Constraint, Dtk_ConstraintReference, Dtk_AxisSystem, Dtk_Preview, Dtk_Entity, Dtk_picture, Dtk_OverrideSet, Dtk_OverrideInfo, Dtk_MainDoc, Dtk_Component, Dtk_Node, Dtk_DocElement, Dtk_Log, and Dtk_Properties.
|
virtualinherited |
Dtk_RGB Dtk_LightMap::GetAmbientColor | ( | ) | const |
Returns the ambient light emitted from the surface.
Dtk_Double64 Dtk_LightMap::GetAmbientRatio | ( | ) | const |
Returns the ambient ratio.
Dtk_RGB Dtk_LightMap::GetDiffuseColor | ( | ) | const |
Returns the ambient light diffusely reflected from the surface of this object.
Dtk_Double64 Dtk_LightMap::GetDiffuseRatio | ( | ) | const |
Returns the diffuse ratio.
Dtk_RGB Dtk_LightMap::GetEmissiveColor | ( | ) | const |
Returns the color and amount of light emitted from the surface of this object.
Dtk_Double64 Dtk_LightMap::GetEmissiveRatio | ( | ) | const |
Returns the emissive ratio.
Dtk_RGB Dtk_LightMap::GetReflectiveColor | ( | ) | const |
Returns the color and amount of a perfect mirror reflection.
Dtk_Double64 Dtk_LightMap::GetReflectiveRatio | ( | ) | const |
Returns the reflective ratio
Dtk_Double64 Dtk_LightMap::GetShininessRatio | ( | ) | const |
Returns the Shininess ratio.
|
virtualinherited |
Reimplemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, Dtk_mesh_face, Dtk_mesh, Dtk_TransformedSurface, Dtk_FilletSurface, Dtk_OffsetSurface, Dtk_SphericalSurface, Dtk_ToroidalSurface, Dtk_ConicalSurface, Dtk_CylindricalSurface, Dtk_RuledSurface, Dtk_LinearExtrusionSurface, Dtk_StandardRevolutionSurface, Dtk_RevolutionSurface, Dtk_PlaneSurface, Dtk_NurbsSurface, Dtk_Surface, Dtk_Hyperbola, Dtk_Parabola, Dtk_Ellipse, Dtk_Conic, Dtk_Line, Dtk_Polyline, Dtk_NurbsCurve, Dtk_Curve, Dtk_Point, Dtk_Entity, and Dtk_Info.
Dtk_RGB Dtk_LightMap::GetSpecularColor | ( | ) | const |
Returns the ambient light specularly reflected from the surface of this object.
Dtk_Double64 Dtk_LightMap::GetSpecularRatio | ( | ) | const |
Returns the specular ratio
Dtk_RGB Dtk_LightMap::GetTransparentColor | ( | ) | const |
Returns the color and amount of perfectly refracted light.
Dtk_Double64 Dtk_LightMap::GetTransparentRatio | ( | ) | const |
Returns the transparent ratio
void Dtk_LightMap::SetShininessRatio | ( | Dtk_Double64 | inShininess | ) |
Set the Shininess ratio (0.0 - 1.0)
void Dtk_LightMap::SetTransparentRatio | ( | Dtk_Double64 | inRatio | ) |
Sets the ratio of transparency (0.0 : opaque, 1.0 : transparent)
|
friend |
|
protected |
|
protectedinherited |