fbxsurfacematerial.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /****************************************************************************************
  2. Copyright (C) 2015 Autodesk, Inc.
  3. All rights reserved.
  4. Use of this software is subject to the terms of the Autodesk license agreement
  5. provided at the time of installation or download, or which otherwise accompanies
  6. this software in either electronic or hard copy form.
  7. ****************************************************************************************/
  8. //! \file fbxsurfacematerial.h
  9. #ifndef _FBXSDK_SCENE_SHADING_SURFACE_MATERIAL_H_
  10. #define _FBXSDK_SCENE_SHADING_SURFACE_MATERIAL_H_
  11. #include <fbxsdk/fbxsdk_def.h>
  12. #include <fbxsdk/core/fbxobject.h>
  13. #include <fbxsdk/fbxsdk_nsbegin.h>
  14. /** This class contains material settings.
  15. * \nosubgrouping
  16. */
  17. class FBXSDK_DLL FbxSurfaceMaterial : public FbxObject
  18. {
  19. FBXSDK_OBJECT_DECLARE(FbxSurfaceMaterial, FbxObject);
  20. public:
  21. /**
  22. * \name Standard Material Property Names
  23. */
  24. //@{
  25. static const char* sShadingModel;
  26. static const char* sMultiLayer;
  27. static const char* sEmissive;
  28. static const char* sEmissiveFactor;
  29. static const char* sAmbient;
  30. static const char* sAmbientFactor;
  31. static const char* sDiffuse;
  32. static const char* sDiffuseFactor;
  33. static const char* sSpecular;
  34. static const char* sSpecularFactor;
  35. static const char* sShininess;
  36. static const char* sBump;
  37. static const char* sNormalMap;
  38. static const char* sBumpFactor;
  39. static const char* sTransparentColor;
  40. static const char* sTransparencyFactor;
  41. static const char* sReflection;
  42. static const char* sReflectionFactor;
  43. static const char* sDisplacementColor;
  44. static const char* sDisplacementFactor;
  45. static const char* sVectorDisplacementColor;
  46. static const char* sVectorDisplacementFactor;
  47. //@}
  48. /**
  49. * \name Material Properties
  50. */
  51. //@{
  52. FbxPropertyT<FbxString> ShadingModel;
  53. FbxPropertyT<FbxBool> MultiLayer;
  54. //@}
  55. //////////////////////////////////////////////////////////////////////////
  56. // Static values
  57. //////////////////////////////////////////////////////////////////////////
  58. /**
  59. * \name Default property values
  60. */
  61. //@{
  62. static const FbxBool sMultiLayerDefault;
  63. static const char* sShadingModelDefault;
  64. //@}
  65. /*****************************************************************************************************************************
  66. ** WARNING! Anything beyond these lines is for internal use, may not be documented and is subject to change without notice! **
  67. *****************************************************************************************************************************/
  68. #ifndef DOXYGEN_SHOULD_SKIP_THIS
  69. protected:
  70. bool SetColorParameter(FbxProperty pProperty, FbxColor const& pColor);
  71. bool GetColorParameter(FbxProperty pProperty, FbxColor& pColor) const;
  72. bool SetDoubleParameter(FbxProperty pProperty, double pDouble);
  73. bool GetDoubleParameter(FbxProperty pProperty, double pDouble) const;
  74. virtual void ConstructProperties(bool pForceSet);
  75. #endif /* !DOXYGEN_SHOULD_SKIP_THIS *****************************************************************************************/
  76. };
  77. #include <fbxsdk/fbxsdk_nsend.h>
  78. #endif /* _FBXSDK_SCENE_SHADING_SURFACE_MATERIAL_H_ */