questa se puo servire è la classe incriminata ,ho un costruttore protetto , perchè protetto?
codice:
#include <fbxfilesdk/fbxfilesdk_def.h>
#include <fbxfilesdk/kfbxplugins/kfbxobject.h>
#include <fbxfilesdk/kfbxplugins/kfbxcolor.h>
#include <fbxfilesdk/kfbxplugins/kfbxgroupname.h>
// FBX namespace
#include <fbxfilesdk/fbxfilesdk_nsbegin.h>
/** This class contains material settings.
* \nosubgrouping
*/
class KFBX_DLL KFbxSurfaceMaterial : public KFbxObject
{
KFBXOBJECT_DECLARE(KFbxSurfaceMaterial, KFbxObject);
public:
/**
* \name Standard Material Property Names
*/
//@{
static char const* sShadingModel;
static char const* sMultiLayer;
static char const* sEmissive;
static char const* sEmissiveFactor;
static char const* sAmbient;
static char const* sAmbientFactor;
static char const* sDiffuse;
static char const* sDiffuseFactor;
static char const* sSpecular;
static char const* sSpecularFactor;
static char const* sShininess;
static char const* sBump;
static char const* sNormalMap;
static char const* sBumpFactor;
static char const* sTransparentColor;
static char const* sTransparencyFactor;
static char const* sReflection;
static char const* sReflectionFactor;
static char const* sDisplacementColor;
static char const* sDisplacementFactor;
//@}
/**
* \name Material Properties
*/
//@{
/** Returns the material shading model.
* \return The shading model.
*/
KFbxPropertyString GetShadingModel() const;
/** Returns the multilayer state.
* \return The state of the multi-layer flag.
*/
KFbxPropertyBool1 GetMultiLayer() const;
//@}
//////////////////////////////////////////////////////////////////////////
// Static values
//////////////////////////////////////////////////////////////////////////
/**
* \name Default property values
*/
//@{
static fbxBool1 sMultiLayerDefault;
static char const* sShadingModelDefault;
//@}
///////////////////////////////////////////////////////////////////////////////
//
// WARNING!
//
// Anything beyond these lines may not be documented accurately and is
// subject to change without notice.
//
///////////////////////////////////////////////////////////////////////////////
#ifndef DOXYGEN_SHOULD_SKIP_THIS
// Clone
virtual KFbxObject* Clone(KFbxObject* pContainer, KFbxObject::ECloneType pCloneType = eDEEP_CLONE) const;
protected:
bool SetColorParameter(KFbxProperty pProperty, KFbxColor const& pColor);
bool GetColorParameter(KFbxProperty pProperty, KFbxColor& pColor) const;
bool SetDoubleParameter(KFbxProperty pProperty, double pDouble);
bool GetDoubleParameter(KFbxProperty pProperty, double pDouble) const;
KFbxSurfaceMaterial(KFbxSdkManager& pManager, char const* pName);
virtual bool ConstructProperties(bool pForceSet);
public:
// From KFbxObject
virtual KString GetTypeName() const;
protected:
KFbxPropertyString ShadingModel;
KFbxPropertyBool1 MultiLayer;
friend class KFbxLayerContainer;
#endif // #ifndef DOXYGEN_SHOULD_SKIP_THIS
};
typedef KFbxSurfaceMaterial* HKFbxSurfaceMaterial;
#include <fbxfilesdk/fbxfilesdk_nsend.h>
#endif // FBXFILESDK_KFBXPLUGINS_KFBXSURFACEMATERIAL_H