Go to the
documentation of this file.
00001 #ifndef __FBFBXOPTIONS_H__
00002 #define __FBFBXOPTIONS_H__
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00047 #include <kaydaradef.h>
00048 #ifndef FBSDK_DLL
00049
00052 #define FBSDK_DLL K_DLLIMPORT
00053 #endif
00054
00055 #include <fbsdk/fbcomponent.h>
00056
00057 #ifdef FBSDKUseNamespace
00058 namespace FBSDKNamespace {
00059 #endif
00060
00061
00063
00066 enum FBElementAction {
00067 kFBElementActionSave ,
00068 kFBElementActionAppend ,
00069 kFBElementActionMerge ,
00070 kFBElementActionDiscard,
00071 };
00072 FB_DEFINE_ENUM( FBSDK_DLL, ElementAction );
00073
00076 enum FBTakeSpanOnLoad {
00077 kFBLeaveAsIs ,
00078 kFBImportFromFile,
00079 kFBFrameAnimation,
00080 };
00081 FB_DEFINE_ENUM( FBSDK_DLL, TakeSpanOnLoad );
00082
00085 enum FBCharacterLoadAnimationMethod {
00086 kFBCharacterLoadConnect ,
00087 kFBCharacterLoadCopy ,
00088 kFBCharacterLoadRetarget ,
00089 kFBCharacterLoadPlotIfSampled ,
00090 kFBCharacterLoadPlot
00091 };
00092 FB_DEFINE_ENUM(FBSDK_DLL, CharacterLoadAnimationMethod);
00093
00094 enum FBFileFormatAndVersion
00095 {
00096 kFBFBX2010,
00097 kFBFBX2011,
00098 kFBDefaultFormatAndVersion = kFBFBX2011
00099 };
00100 FB_DEFINE_ENUM(FBSDK_DLL, FileFormatAndVersion);
00101
00102 __FB_FORWARD( FBFbxOptions );
00103
00105 class FBSDK_DLL FBFbxOptions : public FBComponent {
00106 __FBClassDeclare( FBFbxOptions, FBComponent );
00107 public:
00114 FBFbxOptions( bool pLoad, const char * pFilePathToLoad = NULL, HIObject pObject = NULL);
00115
00121 void SetAll( FBElementAction pElementAction, bool pAnimation );
00122
00127 FBPropertyTakeSpanOnLoad TakeSpan;
00128
00129
00130
00136 FBPropertyFileFormatAndVersion FileFormatAndVersion;
00137 FBPropertyBool EmbedMedia;
00138 FBPropertyBool SaveSelectedModelsOnly;
00139 FBPropertyBool KeepTransformHierarchy;
00140 FBPropertyBool UseASCIIFormat;
00141 FBPropertyInt CacheSize;
00142 FBPropertyBool CompressArray;
00143 FBPropertyInt CompressMinSize;
00144 FBPropertyInt CompressLevel;
00145
00146
00147
00151 FBPropertyBool BaseCameras;
00152 FBPropertyBool CameraSwitcherSettings;
00153 FBPropertyBool CurrentCameraSettings;
00154 FBPropertyBool GlobalLightingSettings;
00155 FBPropertyBool TransportSettings;
00156
00157
00161 FBPropertyString NamespaceList;
00162
00163
00167 FBPropertyElementAction Actors;
00168 FBPropertyElementAction ActorFaces;
00169 FBPropertyElementAction Audio;
00170 FBPropertyElementAction Bones;
00171 FBPropertyElementAction Cameras;
00172 FBPropertyElementAction Characters;
00173 FBPropertyElementAction CharacterFaces;
00174 FBPropertyElementAction CharacterExtensions;
00175 FBPropertyElementAction Constraints;
00176 FBPropertyElementAction Devices;
00177
00178 FBPropertyElementAction Groups;
00179 FBPropertyElementAction KeyingGroups;
00180 FBPropertyElementAction Lights;
00181 FBPropertyElementAction Materials;
00182 FBPropertyElementAction Models;
00183 FBPropertyElementAction Notes;
00184 FBPropertyElementAction OpticalData;
00185 FBPropertyElementAction PhysicalProperties;
00186 FBPropertyElementAction Poses;
00187 FBPropertyElementAction Scripts;
00188 FBPropertyElementAction Sets;
00189 FBPropertyElementAction Shaders;
00190 FBPropertyElementAction Solvers;
00191 FBPropertyElementAction Story;
00192 FBPropertyElementAction Textures;
00193 FBPropertyElementAction Video;
00194
00195
00196
00201 FBPropertyBool ActorFacesAnimation;
00202 FBPropertyBool BonesAnimation;
00203 FBPropertyBool CamerasAnimation;
00204 FBPropertyBool CharactersAnimation;
00205 FBPropertyBool CharacterFacesAnimation;
00206 FBPropertyBool ConstraintsAnimation;
00207 FBPropertyBool DevicesAnimation;
00208 FBPropertyBool LightsAnimation;
00209 FBPropertyBool MaterialsAnimation;
00210 FBPropertyBool ModelsAnimation;
00211 FBPropertyBool NotesAnimation;
00212 FBPropertyBool PhysicalPropertiesAnimation;
00213 FBPropertyBool ShadersAnimation;
00214 FBPropertyBool SolversAnimation;
00215 FBPropertyBool StoryAnimation;
00216 FBPropertyBool TexturesAnimation;
00217
00218
00222 FBPropertyBool SaveCharacter;
00223 FBPropertyBool SaveControlSet;
00224 FBPropertyBool SaveCharacterExtensions;
00225 FBPropertyBool ClearSelectionBeforeSave;
00226
00227
00228
00229
00233 FBPropertyCharacterLoadAnimationMethod TransferMethod;
00234 FBPropertyBool ProcessAnimationOnExtension;
00235 FBPropertyBool ReplaceControlSet;
00236 FBPropertyBool ResetDOF;
00237 FBPropertyBool ResetHierarchy;
00238 FBPropertyBool RemoveConstraintReference;
00239 FBPropertyBool CopyCharacterExtensions;
00240 FBPropertyBool RetargetOnBaseLayer;
00241 FBPropertyBool IgnoreConflicts;
00242
00243
00247 FBPropertyBool ShowFileDialog;
00248 FBPropertyBool ShowOptionsDialog;
00249 FBPropertyBool SetPropertyStaticIfPossible;
00250
00251
00256
00260 int GetTakeCount() const;
00261
00265 bool GetTakeSelect(int pTakeIndex) const;
00266
00271 void SetTakeSelect(int pTakeIndex, bool pSelect);
00272
00276 const char* GetTakeName(int pTakeIndex) const;
00277
00282 void SetTakeName(int pTakeIndex, const char* pName);
00283
00287 const char* GetTakeDescription(int pTakeIndex) const;
00288
00293 void SetTakeDescription(int pTakeIndex, const char* pDescription);
00294
00298 const char* GetTakeDestinationName(int pTakeIndex) const;
00299
00304 void SetTakeDestinationName(int pTakeIndex, const char* pDestinationName);
00306
00310 void SetNamespaceList(const FBStringList& pNamespaceList);
00311
00315 FBStringList GetNamespaceList();
00316 };
00317
00318 #ifdef FBSDKUseNamespace
00319 }
00320 #endif
00321
00322 #endif