kfbxsurfacelambert.h

Go to the documentation of this file.
00001 
00004 #ifndef _FBXSDK_SURFACELAMBERT_H_
00005 #define _FBXSDK_SURFACELAMBERT_H_
00006 
00007 /**************************************************************************************
00008 
00009  Copyright © 1999 - 2007 Autodesk, Inc. and/or its licensors.
00010  All Rights Reserved.
00011 
00012  The coded instructions, statements, computer programs, and/or related material
00013  (collectively the "Data") in these files contain unpublished information
00014  proprietary to Autodesk, Inc. and/or its licensors, which is protected by
00015  Canada and United States of America federal copyright law and by international
00016  treaties.
00017 
00018  The Data may not be disclosed or distributed to third parties, in whole or in
00019  part, without the prior written consent of Autodesk, Inc. ("Autodesk").
00020 
00021  THE DATA IS PROVIDED "AS IS" AND WITHOUT WARRANTY.
00022  ALL WARRANTIES ARE EXPRESSLY EXCLUDED AND DISCLAIMED. AUTODESK MAKES NO
00023  WARRANTY OF ANY KIND WITH RESPECT TO THE DATA, EXPRESS, IMPLIED OR ARISING
00024  BY CUSTOM OR TRADE USAGE, AND DISCLAIMS ANY IMPLIED WARRANTIES OF TITLE,
00025  NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE OR USE.
00026  WITHOUT LIMITING THE FOREGOING, AUTODESK DOES NOT WARRANT THAT THE OPERATION
00027  OF THE DATA WILL BE UNINTERRUPTED OR ERROR FREE.
00028 
00029  IN NO EVENT SHALL AUTODESK, ITS AFFILIATES, PARENT COMPANIES, LICENSORS
00030  OR SUPPLIERS ("AUTODESK GROUP") BE LIABLE FOR ANY LOSSES, DAMAGES OR EXPENSES
00031  OF ANY KIND (INCLUDING WITHOUT LIMITATION PUNITIVE OR MULTIPLE DAMAGES OR OTHER
00032  SPECIAL, DIRECT, INDIRECT, EXEMPLARY, INCIDENTAL, LOSS OF PROFITS, REVENUE
00033  OR DATA, COST OF COVER OR CONSEQUENTIAL LOSSES OR DAMAGES OF ANY KIND),
00034  HOWEVER CAUSED, AND REGARDLESS OF THE THEORY OF LIABILITY, WHETHER DERIVED
00035  FROM CONTRACT, TORT (INCLUDING, BUT NOT LIMITED TO, NEGLIGENCE), OR OTHERWISE,
00036  ARISING OUT OF OR RELATING TO THE DATA OR ITS USE OR ANY OTHER PERFORMANCE,
00037  WHETHER OR NOT AUTODESK HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSS
00038  OR DAMAGE.
00039 
00040 **************************************************************************************/
00041 
00042 #include <kaydaradef.h>
00043 #ifndef KFBX_DLL 
00044     #define KFBX_DLL K_DLLIMPORT
00045 #endif
00046 
00047 #include <kaydara.h>
00048 
00049 #include <kfbxplugins/kfbxsurfacematerial.h>
00050 #include <kfbxplugins/kfbxcolor.h>
00051 #include <kfbxplugins/kfbxgroupname.h>
00052 
00053 #include <klib/kerror.h>
00054 
00055 #include <fbxfilesdk_nsbegin.h>
00056 
00063 class KFBX_DLL KFbxSurfaceLambert : public KFbxSurfaceMaterial
00064 {
00065     KFBXOBJECT_DECLARE(KFbxSurfaceLambert);
00066 
00067 public:
00072     
00075     KFbxProperty GetEmissiveColor() const;
00076     
00080     KFbxProperty GetEmissiveFactor() const;
00081     
00084     KFbxProperty GetAmbientColor() const;
00085     
00089     KFbxProperty GetAmbientFactor() const;
00090     
00093     KFbxProperty GetDiffuseColor() const;
00094     
00098     KFbxProperty GetDiffuseFactor() const;
00099     
00103     KFbxProperty GetBump() const;
00104     
00108     KFbxProperty GetTransparentColor() const;
00109     
00113     KFbxProperty GetTransparencyFactor() const;
00114     
00116 
00127     K_DEPRECATED bool SetDefaultAmbientColor(KFbxColor const& pColor);
00128     
00133     K_DEPRECATED bool GetDefaultAmbientColor(KFbxColor& pColor) const;
00134 
00138     K_DEPRECATED bool SetDefaultDiffuseColor(KFbxColor const& pColor);
00139     
00144     K_DEPRECATED bool GetDefaultDiffuseColor(KFbxColor& pColor) const;
00145 
00149     K_DEPRECATED bool SetDefaultEmissiveColor(KFbxColor const& pColor);
00150     
00155     K_DEPRECATED bool GetDefaultEmissiveColor(KFbxColor& pColor) const;
00156 
00160     K_DEPRECATED bool SetDefaultOpacity(double pOpacity);
00161 
00166     K_DEPRECATED bool   GetDefaultOpacity(double& pOpacity) const;
00167     
00169 
00170 
00172 //
00173 //  WARNING!
00174 //
00175 //  Anything beyond these lines may not be documented accurately and is 
00176 //  subject to change without notice.
00177 //
00179 
00180 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00181 
00182     // Clone
00183     virtual KFbxObject* Clone(KFbxObject::ECloneType pCloneType) const;
00184 
00185     bool operator==(KFbxSurfaceLambert const& pMaterial) const;
00186 
00187 protected:
00188     static char const* GetNamePrefix() { return MATERIAL_PREFIX; }
00189     
00190     KFbxSurfaceLambert(KFbxSdkManager& pManager, char const* pName);
00191     virtual ~KFbxSurfaceLambert();
00192 
00193     virtual void Destruct(bool pRecursive, bool pDependents);
00194 
00196     KFbxSurfaceLambert& operator=(KFbxSurfaceLambert const& pMaterial);
00197 
00198     // From KFbxObject
00199     KFbxObject::ENameSpace GetNameSpace() const; 
00200     virtual KString     GetTypeName() const;
00201     virtual KStringList GetTypeFlags() const;
00202 
00203     // Local
00204     void Init();
00205 
00206     KFbxPropertyDouble3 Emissive;
00207     KFbxPropertyDouble1 EmissiveFactor;
00208     
00209     KFbxPropertyDouble3 Ambient;
00210     KFbxPropertyDouble1 AmbientFactor;
00211     
00212     KFbxPropertyDouble3 Diffuse;
00213     KFbxPropertyDouble1 DiffuseFactor;
00214     
00215     KFbxPropertyDouble3 Bump;
00216     
00217     KFbxPropertyDouble3 TransparentColor;
00218     KFbxPropertyDouble1 TransparencyFactor;
00219 
00220 #endif // #ifndef DOXYGEN_SHOULD_SKIP_THIS 
00221 
00222 };
00223 
00224 typedef KFbxSurfaceMaterial* HKFbxSurfaceMaterial;
00225 
00226 #include <fbxfilesdk_nsend.h>
00227 
00228 #endif
00229 
00230