DATAKIT API  V2025.1
dtk_render.hpp
Go to the documentation of this file.
1 #ifndef __UTIL_DTK_RENDER_HPP__
2 #define __UTIL_DTK_RENDER_HPP__
3 
4 class Dtk_TextureInfos ;
5 class Dtk_LightMap ;
6 class Dtk_RenderInfos ;
7 
11 
12 
20 
21 
22 
23 
25 {
26 public:
28  {
39  BuildingMapping = 10
40  };
41 
42 protected:
44  struct Dtk_Handle;
45  Dtk_Handle *_Private;
46 
48  Dtk_TextureInfos(const Dtk_TextureInfos& inToBeCopied);
49 
53 
55  virtual ~Dtk_TextureInfos();
56  friend class Dtk_SmartPtr<Dtk_TextureInfos>;
57 
58  void _Init();
59  void _Copy(const Dtk_TextureInfos& inToBeCopied);
60  void _Reset();
61  inline virtual Dtk_Object* Clone() { return new Dtk_TextureInfos(*this); }
62 
63 
64 
65 
66 public:
75 
77  inline Dtk_Int32 DtkDynamicType(const Dtk_Int32 &inId)
78  {
79  if (inId == _typeID) return 1;
80  return Dtk_Object::DtkDynamicType(inId);
81  }
82 
85  {
86  if (s->DtkDynamicType(_typeID)) return static_cast<Dtk_TextureInfos*>(s);
87  return NULL;
88  }
89 
92 
95 
98 
101 
104 
107 
110 
113 
116 
119 
122 
125 
128 
131 
133  void SetScale(Dtk_Double64 inUScale,Dtk_Double64 inVScale);
134 
136  void SetOffset(Dtk_Double64 inUOffset,Dtk_Double64 inVOffset);
137 
139  void SetFlipFlag(Dtk_bool inUFlip,Dtk_bool inVFlip);
140 
142  void SetRepeat(Dtk_bool inURepeat, Dtk_bool inVRepeat);
143 
146 
149 
151  void SetImagePath(Dtk_string inImagePath);
152 
154  void SetTextureImage(Dtk_picture *inImage);
155 
158 };
160 
161 
162 class Dtk_LightMap : public Dtk_Object
163 {
164 protected:
165  enum { _typeID = DTK_TYPE_LIGHT };
166  struct Dtk_Handle;
167  Dtk_Handle *_Private;
168 
170  Dtk_LightMap(const Dtk_LightMap& inToBeCopied);
171 
174 
175  Dtk_LightMap(Dtk_RGB inAmbient,Dtk_RGB inDiffuse, Dtk_RGB inSpecular);
176 
178  virtual ~Dtk_LightMap();
179  friend class Dtk_SmartPtr<Dtk_LightMap>;
180 
181  void _Init();
182  void _Copy(const Dtk_LightMap& inToBeCopied);
183  void _Reset();
184  inline virtual Dtk_Object* Clone() { return new Dtk_LightMap(*this); }
185 
186 
187 public:
193  static Dtk_LightMapPtr Create(Dtk_RGB inAmbiant,Dtk_RGB inDiffuse, Dtk_RGB inSpecular);
194 
195 
197  inline Dtk_Int32 DtkDynamicType(const Dtk_Int32 &inId)
198  {
199  if (inId == _typeID) return 1;
200  return Dtk_Object::DtkDynamicType(inId);
201  }
202 
205  {
206  if (s->DtkDynamicType(_typeID)) return static_cast<Dtk_LightMap*>(s);
207  return NULL;
208  }
209 
212 
216 
219 
223 
226 
230 
231 
234 
238 
241 
245 
248 
252 
255 
257  void SetShininessRatio(Dtk_Double64 inShininess);
258 
260  void AddReflectiveColor(const Dtk_RGB &inColor);
261 
263  void AddTransparentColor(const Dtk_RGB &inColor);
264 
267 
269  void AddEmissiveColor(const Dtk_RGB &inColor);
270 
271 };
273 
274 
275 
277 {
278 public:
280  {
281  Unknown = 0,
282  Default = 1,
294  CarPaint = 13,
296  Diffuse = 15
297  };
298 protected:
300  struct Dtk_Handle;
301  Dtk_Handle *_Private;
302 
304  Dtk_RenderInfos(const Dtk_RenderInfos& inToBeCopied);
305 
307  Dtk_RenderInfos(const Dtk_string &inName,const Dtk_LightMapPtr &inLigths,const Dtk_TextureInfosPtr &inTexture);
308 
310  virtual ~Dtk_RenderInfos();
311  friend class Dtk_SmartPtr<Dtk_RenderInfos>;
312 
313  void _Init();
314  void _Copy(const Dtk_RenderInfos& inToBeCopied);
315  void _Reset();
316  inline virtual Dtk_Object* Clone() { return new Dtk_RenderInfos(*this); }
317 
318 
319 public:
323  static Dtk_RenderInfosPtr Create(const Dtk_string &inName);
324 
330  static Dtk_RenderInfosPtr Create(const Dtk_string &inName,const Dtk_LightMapPtr &inLights,const Dtk_TextureInfosPtr &inTexture);
331 
332 
334  inline Dtk_Int32 DtkDynamicType(const Dtk_Int32 &inId)
335  {
336  if (inId == _typeID) return 1;
337  return Dtk_Object::DtkDynamicType(inId);
338  }
339 
342  {
343  if (s->DtkDynamicType(_typeID)) return static_cast<Dtk_RenderInfos*>(s);
344  return NULL;
345  }
346 
348  Dtk_string GetName() const;
349 
352 
354  void SetName(const Dtk_string& inName);
355 
357  void SetLightMap(const Dtk_LightMapPtr &inLights);
358 
360  void SetTexture(const Dtk_TextureInfosPtr &inTexture);
361 
364 
367 
369  void SetRenderFilePath(const Dtk_string& inFilePath);
370 
373 
375  void AddShaderType( const RenderMappingShaderTypeEnum & inShaderType );
376 
377 };
378 
379 
381 {
382 public:
383 
385  {
389  Orthotrope = 3
390  };
391 
392 protected:
394  struct Dtk_Handle;
395  Dtk_Handle *_Private;
396 
399 
402 
406 
407  void _Init();
408  void _Copy(const Dtk_PhysicalMaterialInfos& inToBeCopied);
409  void _Reset();
410  inline virtual Dtk_Object* Clone() { return new Dtk_PhysicalMaterialInfos(*this); }
411 
412 public:
413 
418 
419 
421  inline Dtk_Int32 DtkDynamicType(const Dtk_Int32 &inId)
422  {
423  if (inId == _typeID) return 1;
424  return Dtk_Object::DtkDynamicType(inId);
425  }
426 
429  {
430  if (s->DtkDynamicType(_typeID)) return static_cast<Dtk_PhysicalMaterialInfos*>(s);
431  return NULL;
432  }
433 
436 
439 
442 
443 
445  Dtk_ErrorStatus GetDensity(Dtk_Double64 &outValue, Dtk_string &outUnits) const;
448 
453 
458 
459 
464 
469 
474 
475 
477  Dtk_ErrorStatus GetYoungModulus(Dtk_Double64 outYoungModulus[3], Dtk_string &outUnits ) const;
479  Dtk_ErrorStatus SetYoungModulus(Dtk_Double64 inYoungModulus[3], const Dtk_string &inUnits );
480 
482  Dtk_ErrorStatus GetShearModulus(Dtk_Double64 outShearModulus[3], Dtk_string &outUnits) const;
484  Dtk_ErrorStatus SetShearModulus(Dtk_Double64 inShearModulus[3], const Dtk_string &inUnits);
485 
486 
488  Dtk_ErrorStatus GetPoissonRatio(Dtk_Double64 outPoissonRatio[3]) const;
491 
493  Dtk_ErrorStatus GetHardeningRatio(Dtk_Double64 ouHardeningRatio[3]) const;
496 
499 
502 
503 };
504 
505 
506 #endif
Dtk_RenderInfos::SetLightMap
void SetLightMap(const Dtk_LightMapPtr &inLights)
Set Dtk_LightMap.
Dtk_RenderInfos::CarPaint
@ CarPaint
Definition: dtk_render.hpp:294
Dtk_PhysicalMaterialInfos::GetDensity
Dtk_ErrorStatus GetDensity(Dtk_Double64 &outValue, Dtk_string &outUnits) const
Returns the material density.
Dtk_PhysicalMaterialInfos::DtkDynamicCast
static Dtk_PhysicalMaterialInfos * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
Definition: dtk_render.hpp:428
Dtk_TextureInfos::TextureMappingTypeEnum
TextureMappingTypeEnum
Definition: dtk_render.hpp:28
Dtk_RenderInfos::Diffuse
@ Diffuse
Definition: dtk_render.hpp:296
Dtk_LightMap::Dtk_LightMap
Dtk_LightMap()
Dtk_RenderInfos::GetLightMap
Dtk_LightMapPtr GetLightMap() const
Returns Dtk_LightMap.
Dtk_RenderInfos::Translucent
@ Translucent
Definition: dtk_render.hpp:292
Dtk_TextureInfos::SkyCylinderMapping
@ SkyCylinderMapping
Definition: dtk_render.hpp:35
Dtk_TextureInfos::GetMappingType
TextureMappingTypeEnum GetMappingType()
Returns mapping type.
Dtk_RenderInfos::DtkDynamicType
Dtk_Int32 DtkDynamicType(const Dtk_Int32 &inId)
Retrieves the dynamic entity type.
Definition: dtk_render.hpp:334
DTK_TYPE_MATERIAL_INFOS
@ DTK_TYPE_MATERIAL_INFOS
Definition: define.h:525
Dtk_PhysicalMaterialInfos::SetHardeningRatio
Dtk_ErrorStatus SetHardeningRatio(Dtk_Double64 inHardeningRatio[3])
Set the material Hardening Ratio.
Dtk_TextureInfos::Create
static Dtk_TextureInfosPtr Create(const TextureMappingTypeEnum &inType)
Create a Dtk_TextureInfosPtr.
Dtk_PhysicalMaterialInfos::GetCustomData
Dtk_tab< Dtk_MetaDataPtr > const & GetCustomData()
Returns the material Custom data.
Dtk_LightMap::GetShininessRatio
Dtk_Double64 GetShininessRatio() const
Returns the Shininess ratio.
Dtk_RenderInfos::_Copy
void _Copy(const Dtk_RenderInfos &inToBeCopied)
Dtk_PhysicalMaterialInfos::_Init
void _Init()
Dtk_RenderInfos::SubsurfaceScattering
@ SubsurfaceScattering
Definition: dtk_render.hpp:295
Dtk_TextureInfos::~Dtk_TextureInfos
virtual ~Dtk_TextureInfos()
Destructor.
Dtk_PhysicalMaterialInfos::SetYieldStrength
Dtk_ErrorStatus SetYieldStrength(Dtk_Double64 inValue, const Dtk_string &inUnits)
Set the material Yield Strength.
Dtk_TextureInfos::CylinderMapping
@ CylinderMapping
Definition: dtk_render.hpp:31
Dtk_TextureInfos::DtkDynamicCast
static Dtk_TextureInfos * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
Definition: dtk_render.hpp:84
Dtk_RenderInfos::ArchitecturalAndDesign
@ ArchitecturalAndDesign
Definition: dtk_render.hpp:283
Dtk_RenderInfos::ClearGlass
@ ClearGlass
Definition: dtk_render.hpp:287
Dtk_RenderInfos::GetShaderType
RenderMappingShaderTypeEnum GetShaderType() const
Returns shader type.
Dtk_TextureInfos::UVBRepMapping
@ UVBRepMapping
Definition: dtk_render.hpp:38
Dtk_RenderInfos::BrushedMetal
@ BrushedMetal
Definition: dtk_render.hpp:286
Dtk_PhysicalMaterialInfos::SetTensileStrength
Dtk_ErrorStatus SetTensileStrength(Dtk_Double64 inValue, const Dtk_string &inUnits)
Set the material Tensile Strength.
Dtk_LightMap::GetAmbientColor
Dtk_RGB GetAmbientColor() const
Returns the ambient light emitted from the surface.
Dtk_LightMap::SetTransparentRatio
void SetTransparentRatio(Dtk_Double64 inRatio)
Sets the ratio of transparency (0.0 : opaque, 1.0 : transparent)
Dtk_PhysicalMaterialInfos::GetShearModulus
Dtk_ErrorStatus GetShearModulus(Dtk_Double64 outShearModulus[3], Dtk_string &outUnits) const
Returns the material Shear Modulus.
Dtk_TextureInfos::_Reset
void _Reset()
Dtk_PhysicalMaterialInfos::_Copy
void _Copy(const Dtk_PhysicalMaterialInfos &inToBeCopied)
catiav5w::inTransfo
const Dtk_string const Dtk_transfo & inTransfo
Definition: catiav5w.hpp:619
Dtk_RenderInfos::SetName
void SetName(const Dtk_string &inName)
Set the render name.
DTK_TYPE_LIGHT
@ DTK_TYPE_LIGHT
Definition: define.h:569
Dtk_TextureInfos::Dtk_TextureInfos
Dtk_TextureInfos(const Dtk_TextureInfos &inToBeCopied)
Copy constructor.
Dtk_RenderInfos::SoftPlastic
@ SoftPlastic
Definition: dtk_render.hpp:291
Dtk_LightMap::GetTransparentRatio
Dtk_Double64 GetTransparentRatio() const
Returns the transparent ratio
Dtk_TextureInfos::GetUOffset
Dtk_Double64 GetUOffset()
Returns U offset.
Dtk_TextureInfos
Definition: dtk_render.hpp:25
Dtk_TextureInfos::SkyPlanarMapping
@ SkyPlanarMapping
Definition: dtk_render.hpp:34
Dtk_PhysicalMaterialInfos::GetSpecificHeat
Dtk_ErrorStatus GetSpecificHeat(Dtk_Double64 &outValue, Dtk_string &outUnits) const
Returns the material Specific Heat.
Dtk_LightMap::AddReflectiveColor
void AddReflectiveColor(const Dtk_RGB &inColor)
Adds the color and amount of a perfect mirror reflection.
Dtk_RenderInfos::Create
static Dtk_RenderInfosPtr Create(const Dtk_string &inName, const Dtk_LightMapPtr &inLights, const Dtk_TextureInfosPtr &inTexture)
Create a Dtk_RenderInfosPtr.
Dtk_LightMap::_Copy
void _Copy(const Dtk_LightMap &inToBeCopied)
Dtk_RenderInfos::GetTexture
Dtk_TextureInfosPtr GetTexture() const
Returns Dtk_Texture.
Dtk_string
This is a high level string class.
Definition: dtk_string.hpp:58
DTK_TYPE_TEXTURE
@ DTK_TYPE_TEXTURE
Definition: define.h:568
Dtk_PhysicalMaterialInfos::~Dtk_PhysicalMaterialInfos
virtual ~Dtk_PhysicalMaterialInfos()
Destructor.
Dtk_TextureInfos::SetTransfo
void SetTransfo(Dtk_transfoPtr inTransfo)
Sets image transfo.
Dtk_TextureInfos::_typeID
@ _typeID
Definition: dtk_render.hpp:43
Dtk_RenderInfos::Clone
virtual Dtk_Object * Clone()
Definition: dtk_render.hpp:316
Dtk_RenderInfos::Create
static Dtk_RenderInfosPtr Create(const Dtk_string &inName)
Create a Dtk_RenderInfosPtr.
Dtk_PhysicalMaterialInfos::SetCustomData
Dtk_ErrorStatus SetCustomData(Dtk_tab< Dtk_MetaDataPtr > const &inCustomData)
Set the material Custom data.
Dtk_RenderInfos::Dtk_RenderInfos
Dtk_RenderInfos(const Dtk_string &inName, const Dtk_LightMapPtr &inLigths, const Dtk_TextureInfosPtr &inTexture)
Dtk_TextureInfos::_Init
void _Init()
Dtk_RenderInfos::_Init
void _Init()
Dtk_LightMap::Create
static Dtk_LightMapPtr Create(Dtk_RGB inAmbiant, Dtk_RGB inDiffuse, Dtk_RGB inSpecular)
Create a Dtk_LightMapPtr.
Dtk_PhysicalMaterialInfos::DtkDynamicType
Dtk_Int32 DtkDynamicType(const Dtk_Int32 &inId)
Retrieves the dynamic entity type.
Definition: dtk_render.hpp:421
Dtk_bool
char Dtk_bool
Definition: define.h:725
Dtk_RenderInfos::SetTexture
void SetTexture(const Dtk_TextureInfosPtr &inTexture)
Set Dtk_Texture.
Dtk_TextureInfos::GetVOffset
Dtk_Double64 GetVOffset()
Returns V offset.
Dtk_RenderInfos::RenderMappingShaderTypeEnum
RenderMappingShaderTypeEnum
Definition: dtk_render.hpp:280
Dtk_PhysicalMaterialInfos::GetTensileStrength
Dtk_ErrorStatus GetTensileStrength(Dtk_Double64 &outValue, Dtk_string &outUnits) const
Returns the material Tensile Strength.
Dtk_RenderInfos::Unknown
@ Unknown
Definition: dtk_render.hpp:281
Dtk_Double64
double Dtk_Double64
Definition: define.h:699
Dtk_TextureInfos::SetOffset
void SetOffset(Dtk_Double64 inUOffset, Dtk_Double64 inVOffset)
Sets image U and V offset.
Dtk_TextureInfos::IsVRepeat
Dtk_bool IsVRepeat()
Returns if texture is V repeat.
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_LightMap::_Private
Dtk_Handle * _Private
Definition: dtk_render.hpp:166
Dtk_PhysicalMaterialInfos::GetHardeningRatio
Dtk_ErrorStatus GetHardeningRatio(Dtk_Double64 ouHardeningRatio[3]) const
Returns the material Hardening Ratio.
Dtk_TextureInfos::SphericalMapping
@ SphericalMapping
Definition: dtk_render.hpp:32
Dtk_TextureInfos::SetFlipFlag
void SetFlipFlag(Dtk_bool inUFlip, Dtk_bool inVFlip)
Sets image U and V flip.
Dtk_TextureInfos::PlanarMapping
@ PlanarMapping
Definition: dtk_render.hpp:30
Dtk_LightMap::_typeID
@ _typeID
Definition: dtk_render.hpp:165
Dtk_PhysicalMaterialInfos::Clone
virtual Dtk_Object * Clone()
Definition: dtk_render.hpp:410
Dtk_TextureInfos::GetVScale
Dtk_Double64 GetVScale()
Returns V scale factor.
Dtk_PhysicalMaterialInfos::SetYoungModulus
Dtk_ErrorStatus SetYoungModulus(Dtk_Double64 inYoungModulus[3], const Dtk_string &inUnits)
Set the material Young Modulus.
Dtk_RenderInfos::FrostedGlass
@ FrostedGlass
Definition: dtk_render.hpp:289
Dtk_TextureInfos::IsVFlipped
Dtk_bool IsVFlipped()
Returns if V flipped.
Dtk_LightMap::GetDiffuseColor
Dtk_RGB GetDiffuseColor() const
Returns the ambient light diffusely reflected from the surface of this object.
Dtk_PhysicalMaterialInfos::GetType
MaterialSymetryType GetType() const
Returns the material type.
Dtk_PhysicalMaterialInfos::GetThermalConductivity
Dtk_ErrorStatus GetThermalConductivity(Dtk_Double64 &outValue, Dtk_string &outUnits) const
Returns the material Thermal Conductivity.
Dtk_TextureInfos::IsUFlipped
Dtk_bool IsUFlipped()
Returns if U flipped.
Dtk_TextureInfos::GetRotateAngle
Dtk_Double64 GetRotateAngle()
Returns rotate angle.
Dtk_RenderInfos::Dtk_RenderInfos
Dtk_RenderInfos(const Dtk_RenderInfos &inToBeCopied)
Copy constructor.
Dtk_LightMap::GetSpecularRatio
Dtk_Double64 GetSpecularRatio() const
Returns the specular ratio
Dtk_PhysicalMaterialInfos::Dtk_PhysicalMaterialInfos
Dtk_PhysicalMaterialInfos(const Dtk_string &inName, MaterialSymetryType inType)
Dtk_TextureInfos::SetRotateAngle
void SetRotateAngle(Dtk_Double64 inAlpha)
Sets image rotate angle.
Dtk_picture
This class defines a picture.
Definition: dtk_picture.hpp:45
Dtk_LightMap::SetShininessRatio
void SetShininessRatio(Dtk_Double64 inShininess)
Set the Shininess ratio (0.0 - 1.0)
Dtk_TextureInfos::_Copy
void _Copy(const Dtk_TextureInfos &inToBeCopied)
Dtk_TextureInfos::GetTransfo
Dtk_transfoPtr GetTransfo()
Returns texture transfo.
Dtk_TextureInfos::StoredUVMapping
@ StoredUVMapping
Definition: dtk_render.hpp:29
Dtk_TextureInfos::DtkDynamicType
Dtk_Int32 DtkDynamicType(const Dtk_Int32 &inId)
Retrieves the dynamic entity type.
Definition: dtk_render.hpp:77
Dtk_Int32
int32_t Dtk_Int32
Definition: define.h:687
Dtk_TextureInfos::SetImageSize
void SetImageSize(Dtk_Double64 inSize)
Sets image size.
Dtk_TextureInfos::SetScale
void SetScale(Dtk_Double64 inUScale, Dtk_Double64 inVScale)
Sets image U and V scale.
Dtk_RenderInfos::PolishedPlastic
@ PolishedPlastic
Definition: dtk_render.hpp:290
Dtk_PhysicalMaterialInfos::MaterialSymetryType
MaterialSymetryType
Definition: dtk_render.hpp:385
Dtk_RenderInfosPtr
Dtk_SmartPtr< Dtk_RenderInfos > Dtk_RenderInfosPtr
Handles a Dtk_RenderInfos object.
Definition: dtk_render.hpp:10
Dtk_LightMap::Dtk_LightMap
Dtk_LightMap(Dtk_RGB inAmbient, Dtk_RGB inDiffuse, Dtk_RGB inSpecular)
Dtk_LightMap::Clone
virtual Dtk_Object * Clone()
Definition: dtk_render.hpp:184
Dtk_RenderInfos::Default
@ Default
Definition: dtk_render.hpp:282
Dtk_PhysicalMaterialInfos::Orthotrope
@ Orthotrope
Definition: dtk_render.hpp:389
Dtk_TextureInfos::Dtk_TextureInfos
Dtk_TextureInfos(const TextureMappingTypeEnum &inType)
Dtk_ErrorStatus
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
Dtk_LightMap::GetEmissiveRatio
Dtk_Double64 GetEmissiveRatio() const
Returns the emissive ratio.
Dtk_RenderInfos::_Private
Dtk_Handle * _Private
Definition: dtk_render.hpp:300
Dtk_TextureInfos::IsURepeat
Dtk_bool IsURepeat()
Returns if texture is U repeat.
Dtk_TextureInfosPtr
Dtk_SmartPtr< Dtk_TextureInfos > Dtk_TextureInfosPtr
Definition: dtk_render.hpp:6
Dtk_TextureInfos::SkyCubicalMapping
@ SkyCubicalMapping
Definition: dtk_render.hpp:37
Dtk_SmartPtr
Definition: util_ptr_dtk.hpp:37
Dtk_PhysicalMaterialInfos::UnknownType
@ UnknownType
Definition: dtk_render.hpp:386
Dtk_PhysicalMaterialInfos::SetPoissonRatio
Dtk_ErrorStatus SetPoissonRatio(Dtk_Double64 inPoissonRatio[3])
Set the material Poisson Ratio.
Dtk_TextureInfos::BuildingMapping
@ BuildingMapping
Definition: dtk_render.hpp:39
Dtk_PhysicalMaterialInfos::IsotropeTrans
@ IsotropeTrans
Definition: dtk_render.hpp:388
Dtk_RenderInfos::ColoredGlass
@ ColoredGlass
Definition: dtk_render.hpp:288
Dtk_PhysicalMaterialInfos::Create
static Dtk_PhysicalMaterialInfosPtr Create(const Dtk_string &inName, MaterialSymetryType inType)
Create a Dtk_MaterialInfosPtr.
Dtk_RenderInfos::SatinatedMetal
@ SatinatedMetal
Definition: dtk_render.hpp:285
Dtk_PhysicalMaterialInfos::_Private
Dtk_Handle * _Private
Definition: dtk_render.hpp:394
Dtk_LightMap::GetDiffuseRatio
Dtk_Double64 GetDiffuseRatio() const
Returns the diffuse ratio.
Dtk_PhysicalMaterialInfos::GetTypeAsString
Dtk_string GetTypeAsString() const
Returns the material type as string.
Dtk_PhysicalMaterialInfos::SetSpecificHeat
Dtk_ErrorStatus SetSpecificHeat(Dtk_Double64 inValue, const Dtk_string &inUnits)
Set the material Specific Heat.
Dtk_LightMap::Dtk_LightMap
Dtk_LightMap(const Dtk_LightMap &inToBeCopied)
Copy constructor.
Dtk_PhysicalMaterialInfos::SetShearModulus
Dtk_ErrorStatus SetShearModulus(Dtk_Double64 inShearModulus[3], const Dtk_string &inUnits)
Set the material Shear Modulus.
Dtk_TextureInfos::GetImageSize
Dtk_Double64 GetImageSize()
Returns image size.
Dtk_PhysicalMaterialInfos
Definition: dtk_render.hpp:381
Dtk_LightMap::DtkDynamicType
Dtk_Int32 DtkDynamicType(const Dtk_Int32 &inId)
Retrieves the dynamic entity type.
Definition: dtk_render.hpp:197
Dtk_LightMap::~Dtk_LightMap
virtual ~Dtk_LightMap()
Destructor.
Dtk_RenderInfos::SetRenderFilePath
void SetRenderFilePath(const Dtk_string &inFilePath)
Sets render file path.
Dtk_LightMap::GetEmissiveColor
Dtk_RGB GetEmissiveColor() const
Returns the color and amount of light emitted from the surface of this object.
Dtk_PhysicalMaterialInfos::GetPoissonRatio
Dtk_ErrorStatus GetPoissonRatio(Dtk_Double64 outPoissonRatio[3]) const
Returns the material Poisson Ratio.
Dtk_RenderInfos::_typeID
@ _typeID
Definition: dtk_render.hpp:299
Dtk_RenderInfos::_Reset
void _Reset()
Dtk_PhysicalMaterialInfos::GetYoungModulus
Dtk_ErrorStatus GetYoungModulus(Dtk_Double64 outYoungModulus[3], Dtk_string &outUnits) const
Returns the material Young Modulus.
Dtk_RenderInfos::MetallicPaint
@ MetallicPaint
Definition: dtk_render.hpp:293
Dtk_LightMapPtr
Dtk_SmartPtr< Dtk_LightMap > Dtk_LightMapPtr
Definition: dtk_render.hpp:9
Dtk_LightMap::_Init
void _Init()
Dtk_tab
This is a high level array class.
Definition: util_stl_dtk.hpp:85
Dtk_LightMap::GetSpecularColor
Dtk_RGB GetSpecularColor() const
Returns the ambient light specularly reflected from the surface of this object.
Dtk_LightMap::GetAmbientRatio
Dtk_Double64 GetAmbientRatio() const
Returns the ambient ratio.
Dtk_LightMap::_Reset
void _Reset()
Dtk_TextureInfos::_Private
Dtk_Handle * _Private
Definition: dtk_render.hpp:44
Dtk_TextureInfos::SkySphericalMapping
@ SkySphericalMapping
Definition: dtk_render.hpp:36
Dtk_RenderInfos::DtkDynamicCast
static Dtk_RenderInfos * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
Definition: dtk_render.hpp:341
Dtk_LightMap
Definition: dtk_render.hpp:163
Dtk_PhysicalMaterialInfos::SetThermalExpansion
Dtk_ErrorStatus SetThermalExpansion(Dtk_Double64 inValue, const Dtk_string &inUnits)
Set the material Thermal Expansion.
Dtk_RenderInfos::~Dtk_RenderInfos
virtual ~Dtk_RenderInfos()
Destructor.
Dtk_TextureInfos::GetUScale
Dtk_Double64 GetUScale()
Returns U scale factor.
Dtk_PhysicalMaterialInfos::GetName
Dtk_string GetName() const
Returns the material name.
Dtk_Object::DtkDynamicType
virtual int DtkDynamicType(const int &inId)=0
Dtk_PhysicalMaterialInfos::SetDensity
Dtk_ErrorStatus SetDensity(Dtk_Double64 inValue, const Dtk_string &inUnits)
Set the material density.
Dtk_RenderInfos::GetName
Dtk_string GetName() const
Returns the texture name.
Dtk_Object
Definition: dtk_object.hpp:8
Dtk_PhysicalMaterialInfos::_typeID
@ _typeID
Definition: dtk_render.hpp:393
Dtk_TextureInfos::GetTextureImage
Dtk_picture * GetTextureImage()
Returns Dtk_picture.
Dtk_LightMap::AddTransparentColor
void AddTransparentColor(const Dtk_RGB &inColor)
Adds the color and amount of perfectly refracted light.
Dtk_PhysicalMaterialInfos::GetThermalExpansion
Dtk_ErrorStatus GetThermalExpansion(Dtk_Double64 &outValue, Dtk_string &outUnits) const
Returns the material Thermal Expansion.
Dtk_RenderInfos::GetRenderFilePath
Dtk_string GetRenderFilePath() const
Returns render file path.
Dtk_TextureInfos::SetImagePath
void SetImagePath(Dtk_string inImagePath)
Sets image file path.
Dtk_RenderInfos::AddShaderType
void AddShaderType(const RenderMappingShaderTypeEnum &inShaderType)
Adds the shader type.
Dtk_LightMap::GetTransparentColor
Dtk_RGB GetTransparentColor() const
Returns the color and amount of perfectly refracted light.
Dtk_TextureInfos::CubicalMapping
@ CubicalMapping
Definition: dtk_render.hpp:33
Dtk_RGB
Definition: dtk_rgb.hpp:7
Dtk_TextureInfos::GetImagePath
Dtk_string GetImagePath()
Return image path.
Dtk_PhysicalMaterialInfos::GetYieldStrength
Dtk_ErrorStatus GetYieldStrength(Dtk_Double64 &outValue, Dtk_string &outUnits) const
Returns the material Yield Strength.
Dtk_LightMap::DtkDynamicCast
static Dtk_LightMap * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
Definition: dtk_render.hpp:204
Dtk_PhysicalMaterialInfos::Isotropic
@ Isotropic
Definition: dtk_render.hpp:387
Dtk_PhysicalMaterialInfos::Dtk_PhysicalMaterialInfos
Dtk_PhysicalMaterialInfos(const Dtk_PhysicalMaterialInfos &inToBeCopied)
\Copy Constructor{inToBeCopied}
DTK_TYPE_RENDER
@ DTK_TYPE_RENDER
Definition: define.h:570
Dtk_LightMap::GetReflectiveColor
Dtk_RGB GetReflectiveColor() const
Returns the color and amount of a perfect mirror reflection.
Dtk_LightMap::AddEmissiveColor
void AddEmissiveColor(const Dtk_RGB &inColor)
Adds the light emitted from the surface of this object.
Dtk_TextureInfos::SetRepeat
void SetRepeat(Dtk_bool inURepeat, Dtk_bool inVRepeat)
Sets image U and V flip.
Dtk_TextureInfos::Clone
virtual Dtk_Object * Clone()
Definition: dtk_render.hpp:61
Dtk_RenderInfos::PolishedMetal
@ PolishedMetal
Definition: dtk_render.hpp:284
Dtk_LightMap::GetReflectiveRatio
Dtk_Double64 GetReflectiveRatio() const
Returns the reflective ratio
Dtk_PhysicalMaterialInfos::_Reset
void _Reset()
Dtk_TextureInfos::SetTextureImage
void SetTextureImage(Dtk_picture *inImage)
Sets Dtk_picture.
Dtk_PhysicalMaterialInfos::SetThermalConductivity
Dtk_ErrorStatus SetThermalConductivity(Dtk_Double64 inValue, const Dtk_string &inUnits)
Set the material Thermal Conductivity.