DATAKIT API  V2025.4
Dtk_RenderInfos Class Referenceabstract

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_RenderInfosDtkDynamicCast (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_ObjectClone ()
 
 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_
 

Detailed Description

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.
.

See also
Use Dtk_RenderInfosPtr class to handle it.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protectedinherited
Enumerator
_typeID 

◆ anonymous enum

anonymous enum
protected
Enumerator
_typeID 

◆ RenderMappingShaderTypeEnum

Enumerator
Unknown 
Default 
ArchitecturalAndDesign 
PolishedMetal 
SatinatedMetal 
BrushedMetal 
ClearGlass 
ColoredGlass 
FrostedGlass 
PolishedPlastic 
SoftPlastic 
Translucent 
MetallicPaint 
CarPaint 
SubsurfaceScattering 
Diffuse 

Constructor & Destructor Documentation

◆ Dtk_RenderInfos() [1/2]

Dtk_RenderInfos::Dtk_RenderInfos ( const Dtk_RenderInfos inToBeCopied)
protected

Copy constructor.

Parameters
inToBeCopiedObject to copy from.

◆ Dtk_RenderInfos() [2/2]

Dtk_RenderInfos::Dtk_RenderInfos ( const Dtk_string inName,
const Dtk_LightMapPtr inLigths,
const Dtk_TextureInfosPtr inTexture 
)
protected
See also
CreateDtk_LightMap

◆ ~Dtk_RenderInfos()

virtual Dtk_RenderInfos::~Dtk_RenderInfos ( )
protectedvirtual

Destructor.

Member Function Documentation

◆ _Copy()

void Dtk_RenderInfos::_Copy ( const Dtk_RenderInfos inToBeCopied)
protected

◆ _Init()

void Dtk_RenderInfos::_Init ( )
protected

◆ _Reset()

void Dtk_RenderInfos::_Reset ( )
protected

◆ AddShaderType()

void Dtk_RenderInfos::AddShaderType ( const RenderMappingShaderTypeEnum inShaderType)

Adds the shader type.

◆ Clone()

virtual Dtk_Object* Dtk_RenderInfos::Clone ( )
protectedvirtual

◆ Create() [1/2]

static Dtk_RenderInfosPtr Dtk_RenderInfos::Create ( const Dtk_string inName)
static

Create a Dtk_RenderInfosPtr.

Parameters
inNamename.
Returns
the constructed Dtk_RenderInfosPtr.

◆ Create() [2/2]

static Dtk_RenderInfosPtr Dtk_RenderInfos::Create ( const Dtk_string inName,
const Dtk_LightMapPtr inLights,
const Dtk_TextureInfosPtr inTexture 
)
static

Create a Dtk_RenderInfosPtr.

Parameters
inNamename.
inLightslight map.
inTexturetexture.
Returns
the constructed Dtk_RenderInfosPtr.

◆ DtkDynamicCast()

static Dtk_RenderInfos* Dtk_RenderInfos::DtkDynamicCast ( Dtk_Object s)
static

Performs a dynamic cast - doesn't need RTTI -.

◆ DtkDynamicType() [1/2]

Dtk_Int32 Dtk_RenderInfos::DtkDynamicType ( const Dtk_Int32 inId)

Retrieves the dynamic entity type.

◆ DtkDynamicType() [2/2]

◆ dump()

virtual void Dtk_Object::dump ( FILE *  file = stdout)
virtualinherited

◆ GetLightMap()

Dtk_LightMapPtr Dtk_RenderInfos::GetLightMap ( ) const

Returns Dtk_LightMap.

◆ GetName()

Dtk_string Dtk_RenderInfos::GetName ( ) const

Returns the texture name.

◆ GetRenderFilePath()

Dtk_string Dtk_RenderInfos::GetRenderFilePath ( ) const

Returns render file path.

◆ GetShaderType()

RenderMappingShaderTypeEnum Dtk_RenderInfos::GetShaderType ( ) const

Returns shader type.

◆ GetSize()

◆ GetTexture()

Dtk_TextureInfosPtr Dtk_RenderInfos::GetTexture ( ) const

Returns Dtk_Texture.

◆ SetLightMap()

void Dtk_RenderInfos::SetLightMap ( const Dtk_LightMapPtr inLights)

◆ SetName()

void Dtk_RenderInfos::SetName ( const Dtk_string inName)

Set the render name.

◆ SetRenderFilePath()

void Dtk_RenderInfos::SetRenderFilePath ( const Dtk_string inFilePath)

Sets render file path.

◆ SetTexture()

void Dtk_RenderInfos::SetTexture ( const Dtk_TextureInfosPtr inTexture)

Set Dtk_Texture.

Field Documentation

◆ _Private

Dtk_Handle* Dtk_RenderInfos::_Private
protected

◆ count_

unsigned long Dtk_Object::count_
protectedinherited