fbsdk/fbmotionfileoptions.h Source File

fbmotionfileoptions.h
Go to the documentation of this file.
1 #ifndef __FBMOTIONFILEOPTIONS_H__
2 #define __FBMOTIONFILEOPTIONS_H__
3 /**************************************************************************
4  Copyright (c) 1994 - 2009 Autodesk, Inc. and/or its licensors.
5  All Rights Reserved.
6 
7  The coded instructions, statements, computer programs, and/or related
8  material (collectively the "Data") in these files contain unpublished
9  information proprietary to Autodesk, Inc. and/or its licensors, which is
10  protected by Canada and United States of America federal copyright law
11  and by international treaties.
12 
13  The Data may not be disclosed or distributed to third parties, in whole
14  or in part, without the prior written consent of Autodesk, Inc.
15  ("Autodesk").
16 
17  THE DATA IS PROVIDED "AS IS" AND WITHOUT WARRANTY.
18  ALL WARRANTIES ARE EXPRESSLY EXCLUDED AND DISCLAIMED. AUTODESK MAKES NO
19  WARRANTY OF ANY KIND WITH RESPECT TO THE DATA, EXPRESS, IMPLIED OR
20  ARISING BY CUSTOM OR TRADE USAGE, AND DISCLAIMS ANY IMPLIED WARRANTIES
21  OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR
22  PURPOSE OR USE. WITHOUT LIMITING THE FOREGOING, AUTODESK DOES NOT
23  WARRANT THAT THE OPERATION OF THE DATA WILL BE UNINTERRUPTED OR ERROR
24  FREE.
25 
26  IN NO EVENT SHALL AUTODESK, ITS AFFILIATES, PARENT COMPANIES, LICENSORS
27  OR SUPPLIERS ("AUTODESK GROUP") BE LIABLE FOR ANY LOSSES, DAMAGES OR
28  EXPENSES OF ANY KIND (INCLUDING WITHOUT LIMITATION PUNITIVE OR MULTIPLE
29  DAMAGES OR OTHER SPECIAL, DIRECT, INDIRECT, EXEMPLARY, INCIDENTAL, LOSS
30  OF PROFITS, REVENUE OR DATA, COST OF COVER OR CONSEQUENTIAL LOSSES OR
31  DAMAGES OF ANY KIND), HOWEVER CAUSED, AND REGARDLESS OF THE THEORY OF
32  LIABILITY, WHETHER DERIVED FROM CONTRACT, TORT (INCLUDING, BUT NOT
33  LIMITED TO, NEGLIGENCE), OR OTHERWISE, ARISING OUT OF OR RELATING TO THE
34  DATA OR ITS USE OR ANY OTHER PERFORMANCE, WHETHER OR NOT AUTODESK HAS
35  BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSS OR DAMAGE.
36 
37 **************************************************************************/
38 
39 #include <kaydaradef.h>
40 #ifndef FBSDK_DLL
41 
44  #define FBSDK_DLL K_DLLIMPORT
45 #endif
46 
47 #include <fbsdk/fbcomponent.h>
48 
49 #ifdef FBSDKUseNamespace
50  namespace FBSDKNamespace {
51 #endif
52 
53 __FB_FORWARD( FBMotionFileOptions );
54 
64 };
65 
66 FB_DEFINE_ENUM( FBSDK_DLL, ModelSelection ); // FBPropertyModelSelection
67 
71 public:
78  FBMotionFileOptions(FBStringList* pStringList, HIObject pObject=NULL);
79 
81 
84 
89 
91 
102 
107  int GetTakeCount() const;
108 
113  bool GetTakeSelect(int pTakeIndex) const;
114 
119  void SetTakeSelect(int pTakeIndex, bool pSelect);
120 
125  const char* GetTakeName(int pTakeIndex) const;
126 
131  void SetTakeName(int pTakeIndex, const char* pName);
132 
137  FBTime GetTakeStart(int pTakeIndex);
138 
144  void SetTakeStart(int pTakeIndex, FBTime pStartTime);
145 
150  FBTime GetTakeStop(int pTakeIndex);
151 
157  void SetTakeStop(int pTakeIndex, FBTime pStopTime);
158 
163  int GetTakeSamples(int pTakeIndex);
164 
170  void SetTakeSamples(int pTakeIndex, int pSamplesCount);
171 
177  FBTimeMode GetTakeSamplingRateMode(int pTakeIndex);
178 
183  double GetTakeSamplingRate(int pTakeIndex);
184 
191  void SetTakeSamplingRate(int pTakeIndex, FBTimeMode pTimeMode, double pCustomSamplingRate=30.0);
192 };
193 
194 #ifdef FBSDKUseNamespace
195  }
196 #endif
197 
198 #endif
#define __FBClassDeclare(Name, Parent)
For internal use only.
Definition: fbcomponent.h:132
FBPropertyBool KeepDummyNode
Read Write Property: If set to true, dummy bones from the file are not removed.
FBTimeMode
Different time modes available.
Definition: fbtime.h:63
FBPropertyBool BaseRotationOnPreRotation
Read Write Property: If set to true, the base rotation will be imported as Pre Rotation.
FBPropertyModelSelection ModelSelection
Common settings when merging, unused with the CreateInsteadOfMerge property is set to true...
FBPropertyTakeSpanOnLoad TakeStartEnd
Read Write Property: Indicates how the start/end value of the take will be modified.
FBPropertyBool BaseTranslationOnRotationOffset
Read Write Property: If set to true, the base translation will be imported as Rotation Pivot offset...
FBPropertyBool CreateOpticalSegments
Read Write Property: If set to true, optical segments will be created.
#define NULL
Definition: kaydara.h:169
Will Merges data with only the selected nodes or models.
FBPropertyBool CreateUnmatchedModels
Read Write Property: If set to true, nodes will be created to match the hierarchical structure of the...
FBPropertyBool IgnoreModelType
Read Write Property: If set to true, model type will not be considered when finding a matching model ...
FBPropertyBool ImportDOF
Read Write Property: If set to true, the DOF value will be imported from the file.
#define FB_DEFINE_ENUM(DllTag, Type)
Define an enum and give it the ability to be a property.
Definition: fbproperties.h:148
MotionBuilder SDK base class.
Definition: fbcomponent.h:668
class FBPropertyBase< bool, kFBPT_bool > FBPropertyBool
Property: bool
FBPropertyBool CreateUnusedOpticalSegments
Read Write Property: If set to true, unused optical segments will be created.
class FBPropertyBaseEnum< enum FBTakeSpanOnLoad > FBPropertyTakeSpanOnLoad
Definition: fbfbxoptions.h:81
Will try to match the models from the file to those selected in the scene, as well as the children of...
FBPropertyBool CreateInsteadOfMerge
Read Write Property: If set to true, the motion will imported/models will be created in the scene...
#define __FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.
Definition: fbtypes.h:68
#define FBSDKNamespace
FBSDKNamespace define.
Definition: fbversion.h:64
Basic class definitions.
Time data structure.
Definition: fbtime.h:86
Customize motion file loading.
FBPropertyBool SetOccludedToLastValidPosition
Read Write Property: If set to true, occluded segments will be set to their last valid position...
FBPropertyBool ImportScaling
Read Write Property: If set to true, scaling values will be imported.
String list.
Definition: fbstring.h:201
#define FBSDK_DLL
Be sure that FBSDK_DLL is defined only once...
FBPropertyBool KeepActorPrefix
Read Write Property: If set to true, the Actor prefix will be kept when naming each optical marker...
FBModelSelection
Different model selection available.
FBPropertyBool CreateReferenceNode
Settings based on file type.
Will create the models in the motion file, used when there is no model to match in the scene...
class FBPropertyBaseEnum< enum FBModelSelection > FBPropertyModelSelection
Will finds the top node with the same prefix and imports the motion as if you selected kFBInHierarchy...
Will imports motion into the hierarchies of all models in your scene.
FBPropertyBool SetLimits
Read Write Property: If set to true, use motion limits.
No selection mode specified.
Will find the root node and will try to merge the data on the hierarchy, only useful if one model is ...