From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- .../nel/classNL3D_1_1CAnimatedMaterial.html | 1211 ++++++++++++++++++++ 1 file changed, 1211 insertions(+) create mode 100644 docs/doxygen/nel/classNL3D_1_1CAnimatedMaterial.html (limited to 'docs/doxygen/nel/classNL3D_1_1CAnimatedMaterial.html') diff --git a/docs/doxygen/nel/classNL3D_1_1CAnimatedMaterial.html b/docs/doxygen/nel/classNL3D_1_1CAnimatedMaterial.html new file mode 100644 index 00000000..3d8c84b0 --- /dev/null +++ b/docs/doxygen/nel/classNL3D_1_1CAnimatedMaterial.html @@ -0,0 +1,1211 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
+
+ + +
+ + +
+Docs + +
+  + + + + + +
Documentation 
+ +
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  
+

NL3D::CAnimatedMaterial Class Reference

An animated material Instance of CMaterialBase NB: formated for 3ds Max :). +More... +

+#include <animated_material.h> +

+

Inheritance diagram for NL3D::CAnimatedMaterial: +

+ +NL3D::IAnimatable + +List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Herited from IAnimatable

enum  TAnimValues {
+  OwnerBit = IAnimatable::AnimValueLast, +AmbientValue, +DiffuseValue, +SpecularValue, +
+  ShininessValue, +EmissiveValue, +OpacityValue, +TextureValue, +
+  TextureMatValues, +AnimValueLast = TextureMatValues + NumTexAnimatedValues * IDRV_MAT_MAXTEXTURES +
+ }
 Added values. More...

virtual IAnimatedValuegetValue (uint valueId)
 From IAnimatable. More...

virtual const char * getValueName (uint valueId) const
 From IAnimatable. More...

virtual ITrackgetDefaultTrack (uint valueId)
 From IAnimatable. More...

virtual void registerToChannelMixer (CChannelMixer *chanMixer, const std::string &prefix)
 From IAnimatable. More...


Public Types

enum  { NumTexAnimatedValues = CMaterialBase::CTexAnimTracks::NumTexAnimatedValues + }
 number of animated values for each animated texture, taken from CMaterialBase. More...


Public Methods

void update ()
 Check if The animated material is touched, and if necessary update the stored material (if any). More...

ctor / setup.
 CAnimatedMaterial (CMaterialBase *baseMat)
 Constructor. More...

void setMaterial (CMaterial *pMat)
 setup the material context for this animated material. More...

std::string getMaterialName () const
 Return the name of this material (stored in CMaterialBase). More...


Static Public Methods

Get some track name
const char * getAmbientValueName ()
const char * getDiffuseValueName ()
const char * getSpecularValueName ()
const char * getShininessValueName ()
const char * getEmissiveValueName ()
const char * getOpacityValueName ()
const char * getTextureValueName ()
const char * getTexMatUTransName (uint stage)
const char * getTexMatVTransName (uint stage)
const char * getTexMatUScaleName (uint stage)
const char * getTexMatVScaleName (uint stage)
const char * getTexMatWRotName (uint stage)

Private Attributes

CRefPtr< CMaterialBase_MaterialBase
CRefPtr< CMaterial_Material
CAnimatedValueRGBA _Ambient
CAnimatedValueRGBA _Diffuse
CAnimatedValueRGBA _Specular
CAnimatedValueFloat _Shininess
CAnimatedValueRGBA _Emissive
CAnimatedValueFloat _Opacity
CAnimatedValueInt _Texture
CTexAnimatedMatValues _TexAnimatedMatValues [IDRV_MAT_MAXTEXTURES]
+

Detailed Description

+An animated material Instance of CMaterialBase NB: formated for 3ds Max :). +

+Emissive anim is a float, with a constant RGB factor. Texture animation: see update().

+Author:
+Cyril 'Hulud' Corvazier , Nevrax France
+Date:
+2001
+

+ +

+Definition at line 159 of file animated_material.h.


Member Enumeration Documentation

+

+ + + + +
+ + +
anonymous enum +
+
+ + + + + +
+   + + +

+number of animated values for each animated texture, taken from CMaterialBase. +

+

+Enumeration values:
+ + +
NumTexAnimatedValues  +
+
+ +

+Definition at line 212 of file animated_material.h.

+

+ + + + +
+ + +
enum NL3D::CAnimatedMaterial::TAnimValues +
+
+ + + + + +
+   + + +

+Added values. +

+

+Enumeration values:
+ + + + + + + + + + + +
OwnerBit  +
AmbientValue  +
DiffuseValue  +
SpecularValue  +
ShininessValue  +
EmissiveValue  +
OpacityValue  +
TextureValue  +
TextureMatValues  +
AnimValueLast  +
+
+ +

+Reimplemented from NL3D::IAnimatable. +

+Definition at line 217 of file animated_material.h.

+


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + + + + + +
NL3D::CAnimatedMaterial::CAnimatedMaterial CMaterialBase  baseMat
+
+ + + + + +
+   + + +

+Constructor. +

+This ctor:

    +
  • store a RefPtr on the BaseMaterial (for getDefaultTracks() method).
  • copy the material default track value into Animated Values.
+ +

+Definition at line 159 of file animated_material.cpp. +

+References _Ambient, _Diffuse, _Emissive, _MaterialBase, _Opacity, _Shininess, _Specular, _TexAnimatedMatValues, NL3D::CAnimatedMaterial::CTexAnimatedMatValues::affect, AnimValueLast, NL3D::IDRV_MAT_MAXTEXTURES, and nlassert.

+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + +
const char* NL3D::CAnimatedMaterial::getAmbientValueName   [inline, static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 195 of file animated_material.h. +

+Referenced by getValueName.

+

+ + + + +
+ + + + + + + + + + +
ITrack * NL3D::CAnimatedMaterial::getDefaultTrack uint   valueId [virtual]
+
+ + + + + +
+   + + +

+From IAnimatable. +

+ +

+Implements NL3D::IAnimatable. +

+Definition at line 350 of file animated_material.cpp. +

+References _MaterialBase, AmbientValue, AnimValueLast, DiffuseValue, EmissiveValue, nlassert, nlstop, NumTexAnimatedValues, OpacityValue, ShininessValue, SpecularValue, TextureMatValues, and TextureValue.

+

+ + + + +
+ + + + + + + + + +
const char* NL3D::CAnimatedMaterial::getDiffuseValueName   [inline, static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 196 of file animated_material.h. +

+Referenced by getValueName.

+

+ + + + +
+ + + + + + + + + +
const char* NL3D::CAnimatedMaterial::getEmissiveValueName   [inline, static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 199 of file animated_material.h. +

+Referenced by getValueName.

+

+ + + + +
+ + + + + + + + + +
std::string NL3D::CAnimatedMaterial::getMaterialName   const
+
+ + + + + +
+   + + +

+Return the name of this material (stored in CMaterialBase). +

+ +

+Definition at line 189 of file animated_material.cpp. +

+References _MaterialBase, and nlassert.

+

+ + + + +
+ + + + + + + + + +
const char* NL3D::CAnimatedMaterial::getOpacityValueName   [inline, static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 200 of file animated_material.h. +

+Referenced by getValueName.

+

+ + + + +
+ + + + + + + + + +
const char* NL3D::CAnimatedMaterial::getShininessValueName   [inline, static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 198 of file animated_material.h. +

+Referenced by getValueName.

+

+ + + + +
+ + + + + + + + + +
const char* NL3D::CAnimatedMaterial::getSpecularValueName   [inline, static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 197 of file animated_material.h. +

+Referenced by getValueName.

+

+ + + + +
+ + + + + + + + + + +
const char * NL3D::CAnimatedMaterial::getTexMatUScaleName uint   stage [static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 442 of file animated_material.cpp. +

+References NL3D::IDRV_MAT_MAXTEXTURES, and nlassert. +

+Referenced by getValueName.

+

+ + + + +
+ + + + + + + + + + +
const char * NL3D::CAnimatedMaterial::getTexMatUTransName uint   stage [static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 406 of file animated_material.cpp. +

+References NL3D::IDRV_MAT_MAXTEXTURES, and nlassert. +

+Referenced by getValueName.

+

+ + + + +
+ + + + + + + + + + +
const char * NL3D::CAnimatedMaterial::getTexMatVScaleName uint   stage [static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 459 of file animated_material.cpp. +

+References NL3D::IDRV_MAT_MAXTEXTURES, and nlassert. +

+Referenced by getValueName.

+

+ + + + +
+ + + + + + + + + + +
const char * NL3D::CAnimatedMaterial::getTexMatVTransName uint   stage [static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 423 of file animated_material.cpp. +

+References NL3D::IDRV_MAT_MAXTEXTURES, and nlassert. +

+Referenced by getValueName.

+

+ + + + +
+ + + + + + + + + + +
const char * NL3D::CAnimatedMaterial::getTexMatWRotName uint   stage [static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 478 of file animated_material.cpp. +

+References NL3D::IDRV_MAT_MAXTEXTURES, and nlassert. +

+Referenced by getValueName.

+

+ + + + +
+ + + + + + + + + +
const char* NL3D::CAnimatedMaterial::getTextureValueName   [inline, static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 201 of file animated_material.h. +

+Referenced by getValueName.

+

+ + + + +
+ + + + + + + + + + +
IAnimatedValue * NL3D::CAnimatedMaterial::getValue uint   valueId [virtual]
+
+ + + + + +
+   + + +

+From IAnimatable. +

+ +

+Implements NL3D::IAnimatable. +

+Definition at line 282 of file animated_material.cpp. +

+References _Ambient, _Diffuse, _Emissive, _Opacity, _Shininess, _Specular, _TexAnimatedMatValues, _Texture, NL3D::CAnimatedMaterial::CTexAnimatedMatValues::_UScale, NL3D::CAnimatedMaterial::CTexAnimatedMatValues::_UTrans, NL3D::CAnimatedMaterial::CTexAnimatedMatValues::_VScale, NL3D::CAnimatedMaterial::CTexAnimatedMatValues::_VTrans, NL3D::CAnimatedMaterial::CTexAnimatedMatValues::_WRot, AmbientValue, AnimValueLast, DiffuseValue, EmissiveValue, nlstop, NumTexAnimatedValues, OpacityValue, ShininessValue, SpecularValue, TextureMatValues, and TextureValue.

+

+ + + + +
+ + + + + + + + + + +
const char * NL3D::CAnimatedMaterial::getValueName uint   valueId const [virtual]
+
+ + + + + +
+   + + +

+From IAnimatable. +

+ +

+Implements NL3D::IAnimatable. +

+Definition at line 316 of file animated_material.cpp. +

+References AmbientValue, AnimValueLast, DiffuseValue, EmissiveValue, getAmbientValueName, getDiffuseValueName, getEmissiveValueName, getOpacityValueName, getShininessValueName, getSpecularValueName, getTexMatUScaleName, getTexMatUTransName, getTexMatVScaleName, getTexMatVTransName, getTexMatWRotName, getTextureValueName, nlstop, NumTexAnimatedValues, OpacityValue, ShininessValue, SpecularValue, TextureMatValues, and TextureValue.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
void NL3D::CAnimatedMaterial::registerToChannelMixer CChannelMixer  chanMixer,
const std::string &   prefix
[virtual]
+
+ + + + + +
+   + + +

+From IAnimatable. +

+ +

+Implements NL3D::IAnimatable. +

+Definition at line 386 of file animated_material.cpp. +

+References NL3D::IAnimatable::addValue, AmbientValue, DiffuseValue, EmissiveValue, NL3D::IDRV_MAT_MAXTEXTURES, NLAISCRIPT::l, NumTexAnimatedValues, OpacityValue, OwnerBit, ShininessValue, SpecularValue, TextureMatValues, and TextureValue.

+

+ + + + +
+ + + + + + + + + + +
void NL3D::CAnimatedMaterial::setMaterial CMaterial  pMat
+
+ + + + + +
+   + + +

+setup the material context for this animated material. +

+This method:

    +
  • store a RefPtr on the material, for future anim update.
+ +

+Definition at line 182 of file animated_material.cpp. +

+References _Material.

+

+ + + + +
+ + + + + + + + + +
void NL3D::CAnimatedMaterial::update  
+
+ + + + + +
+   + + +

+Check if The animated material is touched, and if necessary update the stored material (if any). +

+Texture animation: for now, texture animation is possible only on stage 0. If TextureValue flag is touched (ie a texture anim track is linked to the animated value), update() look into the CMaterialBase what texture to set. If the track gives a bad Id for the texture, no-op. +

+Definition at line 197 of file animated_material.cpp. +

+References _Ambient, _Diffuse, _Emissive, _Material, _MaterialBase, _Opacity, _Shininess, _Specular, _TexAnimatedMatValues, _Texture, AmbientValue, NLMISC::clamp, NL3D::IAnimatable::clearFlag, DiffuseValue, EmissiveValue, id, NL3D::IDRV_MAT_MAXTEXTURES, NL3D::IAnimatable::isTouched, NLMISC::CVector::K, NLAISCRIPT::l, nlassert, NumTexAnimatedValues, OpacityValue, OwnerBit, ShininessValue, SpecularValue, t, TextureMatValues, and TextureValue.

+


Member Data Documentation

+

+ + + + +
+ + +
CAnimatedValueRGBA NL3D::CAnimatedMaterial::_Ambient [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 255 of file animated_material.h. +

+Referenced by CAnimatedMaterial, getValue, and update.

+

+ + + + +
+ + +
CAnimatedValueRGBA NL3D::CAnimatedMaterial::_Diffuse [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 256 of file animated_material.h. +

+Referenced by CAnimatedMaterial, getValue, and update.

+

+ + + + +
+ + +
CAnimatedValueRGBA NL3D::CAnimatedMaterial::_Emissive [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 259 of file animated_material.h. +

+Referenced by CAnimatedMaterial, getValue, and update.

+

+ + + + +
+ + +
CRefPtr<CMaterial> NL3D::CAnimatedMaterial::_Material [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 252 of file animated_material.h. +

+Referenced by setMaterial, and update.

+

+ + + + +
+ + +
CRefPtr<CMaterialBase> NL3D::CAnimatedMaterial::_MaterialBase [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 250 of file animated_material.h. +

+Referenced by CAnimatedMaterial, getDefaultTrack, getMaterialName, and update.

+

+ + + + +
+ + +
CAnimatedValueFloat NL3D::CAnimatedMaterial::_Opacity [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 260 of file animated_material.h. +

+Referenced by CAnimatedMaterial, getValue, and update.

+

+ + + + +
+ + +
CAnimatedValueFloat NL3D::CAnimatedMaterial::_Shininess [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 258 of file animated_material.h. +

+Referenced by CAnimatedMaterial, getValue, and update.

+

+ + + + +
+ + +
CAnimatedValueRGBA NL3D::CAnimatedMaterial::_Specular [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 257 of file animated_material.h. +

+Referenced by CAnimatedMaterial, getValue, and update.

+

+ + + + +
+ + +
CTexAnimatedMatValues NL3D::CAnimatedMaterial::_TexAnimatedMatValues[IDRV_MAT_MAXTEXTURES] [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 281 of file animated_material.h. +

+Referenced by CAnimatedMaterial, getValue, and update.

+

+ + + + +
+ + +
CAnimatedValueInt NL3D::CAnimatedMaterial::_Texture [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 261 of file animated_material.h. +

+Referenced by getValue, and update.

+


The documentation for this class was generated from the following files: + + + +
                                                                                                                                                                    +
+ + -- cgit v1.2.1