DATAKIT API  V2025.1
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_Object &s)
 
void _Copy (const Dtk_RenderInfos &inToBeCopied)
 
void _init ()
 
void _Init ()
 
void _reset ()
 
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_
 

Friends

class Dtk_SmartPtr< Dtk_RenderInfos >
 

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
Please use the Dtk_RenderInfosPtr class to handle it.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protectedinherited
Enumerator
_typeID 

◆ anonymous enum

anonymous enum
protected
Enumerator
_typeID 
299 { _typeID = DTK_TYPE_RENDER };

◆ RenderMappingShaderTypeEnum

Enumerator
Unknown 
Default 
ArchitecturalAndDesign 
PolishedMetal 
SatinatedMetal 
BrushedMetal 
ClearGlass 
ColoredGlass 
FrostedGlass 
PolishedPlastic 
SoftPlastic 
Translucent 
MetallicPaint 
CarPaint 
SubsurfaceScattering 
Diffuse 
280  {
281  Unknown = 0,
282  Default = 1,
284  PolishedMetal = 3,
285  SatinatedMetal = 4,
286  BrushedMetal = 5,
287  ClearGlass = 6,
288  ColoredGlass = 7,
289  FrostedGlass = 8,
290  PolishedPlastic = 9,
291  SoftPlastic = 10,
292  Translucent = 11,
293  MetallicPaint = 12,
294  CarPaint = 13,
296  Diffuse = 15
297  };

Constructor & Destructor Documentation

◆ Dtk_RenderInfos() [1/2]

Dtk_RenderInfos::Dtk_RenderInfos ( const Dtk_RenderInfos inToBeCopied)
protected

Copy constructor.

Parameters
inToBeCopiedObject to copy.

◆ 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_Object::_copy ( const Dtk_Object s)
protectedinherited

◆ _Copy()

void Dtk_RenderInfos::_Copy ( const Dtk_RenderInfos inToBeCopied)
protected

◆ _init()

void Dtk_Object::_init ( )
protectedinherited

◆ _Init()

void Dtk_RenderInfos::_Init ( )
protected

◆ _reset()

void Dtk_Object::_reset ( )
protectedinherited

◆ _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
316 { return new Dtk_RenderInfos(*this); }

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

342  {
343  if (s->DtkDynamicType(_typeID)) return static_cast<Dtk_RenderInfos*>(s);
344  return NULL;
345  }

◆ DtkDynamicType() [1/2]

Dtk_Int32 Dtk_RenderInfos::DtkDynamicType ( const Dtk_Int32 inId)

Retrieves the dynamic entity type.

335  {
336  if (inId == _typeID) return 1;
337  return Dtk_Object::DtkDynamicType(inId);
338  }

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

Friends And Related Function Documentation

◆ Dtk_SmartPtr< Dtk_RenderInfos >

friend class Dtk_SmartPtr< Dtk_RenderInfos >
friend

Field Documentation

◆ _Private

Dtk_Handle* Dtk_RenderInfos::_Private
protected

◆ count_

unsigned long Dtk_Object::count_
protectedinherited
Dtk_RenderInfos::CarPaint
@ CarPaint
Definition: dtk_render.hpp:294
Dtk_RenderInfos::Diffuse
@ Diffuse
Definition: dtk_render.hpp:296
Dtk_RenderInfos::Translucent
@ Translucent
Definition: dtk_render.hpp:292
Dtk_RenderInfos::SubsurfaceScattering
@ SubsurfaceScattering
Definition: dtk_render.hpp:295
Dtk_RenderInfos::ArchitecturalAndDesign
@ ArchitecturalAndDesign
Definition: dtk_render.hpp:283
Dtk_RenderInfos::ClearGlass
@ ClearGlass
Definition: dtk_render.hpp:287
Dtk_RenderInfos::BrushedMetal
@ BrushedMetal
Definition: dtk_render.hpp:286
Dtk_RenderInfos::SoftPlastic
@ SoftPlastic
Definition: dtk_render.hpp:291
DTK_TYPE_OBJECT
@ DTK_TYPE_OBJECT
Definition: define.h:464
Dtk_RenderInfos::Unknown
@ Unknown
Definition: dtk_render.hpp:281
Dtk_RenderInfos
This is the Dtk_RenderInfos Class. The Dtk_RenderInfosPtr object is used to store any informations ab...
Definition: dtk_render.hpp:277
Dtk_RenderInfos::FrostedGlass
@ FrostedGlass
Definition: dtk_render.hpp:289
Dtk_RenderInfos::Dtk_RenderInfos
Dtk_RenderInfos(const Dtk_RenderInfos &inToBeCopied)
Copy constructor.
Dtk_RenderInfos::PolishedPlastic
@ PolishedPlastic
Definition: dtk_render.hpp:290
Dtk_RenderInfos::Default
@ Default
Definition: dtk_render.hpp:282
Dtk_RenderInfos::ColoredGlass
@ ColoredGlass
Definition: dtk_render.hpp:288
Dtk_RenderInfos::SatinatedMetal
@ SatinatedMetal
Definition: dtk_render.hpp:285
Dtk_RenderInfos::_typeID
@ _typeID
Definition: dtk_render.hpp:299
Dtk_RenderInfos::MetallicPaint
@ MetallicPaint
Definition: dtk_render.hpp:293
Dtk_Object::_typeID
@ _typeID
Definition: dtk_object.hpp:13
Dtk_Object::DtkDynamicType
virtual int DtkDynamicType(const int &inId)=0
DTK_TYPE_RENDER
@ DTK_TYPE_RENDER
Definition: define.h:570
Dtk_RenderInfos::PolishedMetal
@ PolishedMetal
Definition: dtk_render.hpp:284