This is the Dtk_RenderInfos Class.
The Dtk_RenderInfosPtr object is used to store any informations about rendering It contains lighting information and texture information.
.
More...
Inheritance diagram for Dtk_RenderInfos:Public Types | |
| enum | RenderMappingShaderTypeEnum { Unknown = 0, Default = 1, ArchitecturalAndDesign = 2, PolishedMetal = 3, SatinatedMetal = 4, BrushedMetal = 5, ClearGlass = 6, ColoredGlass = 7, FrostedGlass = 8, PolishedPlastic = 9, SoftPlastic = 10, Translucent = 11, MetallicPaint = 12, CarPaint = 13, SubsurfaceScattering = 14, Diffuse = 15 } |
Public Member Functions | |
| void | AddShaderType (const RenderMappingShaderTypeEnum &inShaderType) |
| Adds the shader type. 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_LightMapPtr | GetLightMap () const |
| Returns Dtk_LightMap. More... | |
| Dtk_string | GetName () const |
| Returns the texture name. More... | |
| Dtk_string | GetRenderFilePath () const |
| Returns render file path. More... | |
| RenderMappingShaderTypeEnum | GetShaderType () const |
| Returns shader type. More... | |
| virtual Dtk_Size_t | GetSize () const |
| Dtk_TextureInfosPtr | GetTexture () const |
| Returns Dtk_Texture. More... | |
| void | SetLightMap (const Dtk_LightMapPtr &inLights) |
| Set Dtk_LightMap. More... | |
| void | SetName (const Dtk_string &inName) |
| Set the render name. More... | |
| void | SetRenderFilePath (const Dtk_string &inFilePath) |
| Sets render file path. More... | |
| void | SetTexture (const Dtk_TextureInfosPtr &inTexture) |
| Set Dtk_Texture. More... | |
Static Public Member Functions | |
| static Dtk_RenderInfosPtr | Create (const Dtk_string &inName) |
| Create a Dtk_RenderInfosPtr. More... | |
| static Dtk_RenderInfosPtr | Create (const Dtk_string &inName, const Dtk_LightMapPtr &inLights, const Dtk_TextureInfosPtr &inTexture) |
| Create a Dtk_RenderInfosPtr. More... | |
| static Dtk_RenderInfos * | DtkDynamicCast (Dtk_Object *s) |
| Performs a dynamic cast - doesn't need RTTI -. More... | |
Protected Types | |
| enum | { _typeID = DTK_TYPE_OBJECT } |
| enum | { _typeID = DTK_TYPE_RENDER } |
Protected Member Functions | |
| void | _Copy (const Dtk_RenderInfos &inToBeCopied) |
| void | _Init () |
| void | _Reset () |
| virtual Dtk_Object * | Clone () |
| Dtk_RenderInfos (const Dtk_RenderInfos &inToBeCopied) | |
| Copy constructor. More... | |
| Dtk_RenderInfos (const Dtk_string &inName, const Dtk_LightMapPtr &inLigths, const Dtk_TextureInfosPtr &inTexture) | |
| virtual | ~Dtk_RenderInfos () |
| Destructor. More... | |
Protected Attributes | |
| Dtk_Handle * | _Private |
| unsigned long | count_ |
This is the Dtk_RenderInfos Class.
The Dtk_RenderInfosPtr object is used to store any informations about rendering It contains lighting information and texture information.
.
|
protected |
Copy constructor.
| inToBeCopied | Object to copy from. |
|
protected |
|
protectedvirtual |
Destructor.
|
protected |
|
protected |
|
protected |
| void Dtk_RenderInfos::AddShaderType | ( | const RenderMappingShaderTypeEnum & | inShaderType | ) |
Adds the shader type.
|
protectedvirtual |
|
static |
Create a Dtk_RenderInfosPtr.
| inName | name. |
|
static |
Create a Dtk_RenderInfosPtr.
| inName | name. |
| inLights | light map. |
| inTexture | texture. |
|
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_LightMapPtr Dtk_RenderInfos::GetLightMap | ( | ) | const |
Returns Dtk_LightMap.
| Dtk_string Dtk_RenderInfos::GetName | ( | ) | const |
Returns the texture name.
| Dtk_string Dtk_RenderInfos::GetRenderFilePath | ( | ) | const |
Returns render file path.
| RenderMappingShaderTypeEnum Dtk_RenderInfos::GetShaderType | ( | ) | const |
Returns shader type.
|
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_TextureInfosPtr Dtk_RenderInfos::GetTexture | ( | ) | const |
Returns Dtk_Texture.
| void Dtk_RenderInfos::SetLightMap | ( | const Dtk_LightMapPtr & | inLights | ) |
Set Dtk_LightMap.
| void Dtk_RenderInfos::SetName | ( | const Dtk_string & | inName | ) |
Set the render name.
| void Dtk_RenderInfos::SetRenderFilePath | ( | const Dtk_string & | inFilePath | ) |
Sets render file path.
| void Dtk_RenderInfos::SetTexture | ( | const Dtk_TextureInfosPtr & | inTexture | ) |
Set Dtk_Texture.
|
protected |
|
protectedinherited |