DATAKIT SDK  V2026.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 the render light map. More...
 
Dtk_string GetName () const
 Returns the texture name. More...
 
Dtk_string GetRenderFilePath () const
 Returns the render file path. More...
 
RenderMappingShaderTypeEnum GetShaderType () const
 Returns shader type. More...
 
virtual Dtk_Size_t GetSize () const
 
Dtk_TextureInfosPtr GetTexture () const
 Returns the render texture. More...
 
void SetLightMap (const Dtk_LightMapPtr &inLights)
 Sets the render light map. More...
 
void SetName (const Dtk_string &inName)
 Sets the render name. More...
 
void SetRenderFilePath (const Dtk_string &inFilePath)
 Sets the render file path. More...
 
void SetTexture (const Dtk_TextureInfosPtr &inTexture)
 Sets the render texture information. More...
 

Static Public Member Functions

static Dtk_RenderInfosPtr Create (const Dtk_string &inName)
 Creates a Dtk_RenderInfosPtr. More...
 
static Dtk_RenderInfosPtr Create (const Dtk_string &inName, const Dtk_LightMapPtr &inLights, const Dtk_TextureInfosPtr &inTexture)
 Creates a Dtk_RenderInfosPtr. More...
 
static Dtk_RenderInfosPtr Create (Dtk_RenderInfos const &in)
 Calls copy constructor to allocate a new object. 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

virtual Dtk_Object * Clone ()
 
 Dtk_RenderInfos (const Dtk_RenderInfos &)
 
 Dtk_RenderInfos (const Dtk_string &inName, const Dtk_LightMapPtr &inLigths, const Dtk_TextureInfosPtr &inTexture)
 
 Dtk_RenderInfos (Dtk_RenderInfos &&) DTK_NOEXCEPT
 
virtual ~Dtk_RenderInfos ()
 Destructor. More...
 

Protected Attributes

std::unique_ptr< 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 
301 { _typeID = DTK_TYPE_RENDER };

◆ RenderMappingShaderTypeEnum

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

Constructor & Destructor Documentation

◆ Dtk_RenderInfos() [1/3]

Dtk_RenderInfos::Dtk_RenderInfos ( const Dtk_RenderInfos &  )
protected

◆ Dtk_RenderInfos() [2/3]

Dtk_RenderInfos::Dtk_RenderInfos ( Dtk_RenderInfos &&  )
protected

◆ Dtk_RenderInfos() [3/3]

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

◆ AddShaderType()

void Dtk_RenderInfos::AddShaderType ( const RenderMappingShaderTypeEnum &  inShaderType)

Adds the shader type.

◆ Clone()

virtual Dtk_Object* Dtk_RenderInfos::Clone ( )
protectedvirtual
315 { return new Dtk_RenderInfos(*this); }

◆ Create() [1/3]

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

Creates a Dtk_RenderInfosPtr.

Parameters
[in]inNamename.
Returns
the constructed Dtk_RenderInfosPtr.

◆ Create() [2/3]

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

Creates a Dtk_RenderInfosPtr.

Parameters
[in]inNamename.
[in]inLightslight map.
[in]inTexturetexture.
Returns
the constructed Dtk_RenderInfosPtr.

◆ Create() [3/3]

static Dtk_RenderInfosPtr Dtk_RenderInfos::Create ( Dtk_RenderInfos const &  in)
static

Calls copy constructor to allocate a new object.

Parameters
inObject to copy from.

◆ DtkDynamicCast()

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

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

345  {
346  if (s->DtkDynamicType(_typeID)) return static_cast<Dtk_RenderInfos*>(s);
347  return NULL;
348  }

◆ DtkDynamicType() [1/2]

Dtk_Int32 Dtk_RenderInfos::DtkDynamicType ( const Dtk_Int32 &  inId)

Retrieves the dynamic entity type.

338  {
339  if (inId == _typeID) return 1;
340  return Dtk_Object::DtkDynamicType(inId);
341  }

◆ DtkDynamicType() [2/2]

◆ dump()

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

◆ GetLightMap()

Dtk_LightMapPtr Dtk_RenderInfos::GetLightMap ( ) const

Returns the render light map.

◆ GetName()

Dtk_string Dtk_RenderInfos::GetName ( ) const

Returns the texture name.

◆ GetRenderFilePath()

Dtk_string Dtk_RenderInfos::GetRenderFilePath ( ) const

Returns the render file path.

◆ GetShaderType()

RenderMappingShaderTypeEnum Dtk_RenderInfos::GetShaderType ( ) const

Returns shader type.

◆ GetSize()

◆ GetTexture()

Dtk_TextureInfosPtr Dtk_RenderInfos::GetTexture ( ) const

Returns the render texture.

◆ SetLightMap()

void Dtk_RenderInfos::SetLightMap ( const Dtk_LightMapPtr &  inLights)

Sets the render light map.

◆ SetName()

void Dtk_RenderInfos::SetName ( const Dtk_string &  inName)

Sets the render name.

◆ SetRenderFilePath()

void Dtk_RenderInfos::SetRenderFilePath ( const Dtk_string &  inFilePath)

Sets the render file path.

◆ SetTexture()

void Dtk_RenderInfos::SetTexture ( const Dtk_TextureInfosPtr &  inTexture)

Sets the render texture information.

Field Documentation

◆ _Private

std::unique_ptr<Dtk_Handle> Dtk_RenderInfos::_Private
protected

◆ count_

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