Open Reality Reference Guide
fbmotionblend.h
Go to the documentation of this file.
1 #ifndef __FBMOTIONBLEND_H__
2 #define __FBMOTIONBLEND_H__
3 // ===========================================================================
4 // Copyright 2018 Autodesk, Inc. All rights reserved.
5 //
6 // Use of this software is subject to the terms of the Autodesk license
7 // agreement provided at the time of installation or download, or which
8 // otherwise accompanies this software in either electronic or hard copy form.
9 // ===========================================================================
10 
15 #include <kaydaradef.h>
16 #ifndef FBSDK_DLL
20 #define FBSDK_DLL K_DLLIMPORT
21 #endif
22 
23 #include <fbsdk/fbcomponent.h>
24 
25 #ifdef FBSDKUseNamespace
26 namespace FBSDKNamespace {
27 #endif
28 
30 // FBMotionBlend
34 
49 {
51 
52 public:
56  static FBMotionBlend& TheOne();
57 
61  int GetEditCount();
62 
67  FBMotionBlendEdit* GetEdit( int pIndex );
68 
73 
79 
85  FBMotionBlendEdit* AddEdit( const char* pName = nullptr, bool pSetAsCurrent = true );
86 
91  bool RemoveEdit( FBMotionBlendEdit* pEdit );
92 
97 
102  bool SetSnapOnFrame( bool pSnap );
103 
108 
113  bool SetForceTime( bool pForceTime );
114 
118  bool GetForceTime();
119 
124  bool SetSyncTakeEditStartEnd( bool pSync );
125 
130 
131 private:
135  FBMotionBlend();
136 };
137 
138 #ifdef FBSDKUseNamespace
139 }
140 #endif
141 #endif // __FBMOTIONBLEND_H__
MotionBuilder SDK base class.
Definition: fbcomponent.h:651
Motion Blend Edit class.
Motion Blend class.
Definition: fbmotionblend.h:49
FBMotionBlendEdit * GetEdit(int pIndex)
Get the Edit associated to the input index.
bool GetSnapOnFrame()
Get the "Snap On Frame" state.
bool RemoveEdit(FBMotionBlendEdit *pEdit)
Remove an Edit from the Motion Blend.
bool SetForceTime(bool pForceTime)
Set the "Force Time" state.
bool SetCurrentEdit(FBMotionBlendEdit *pEdit)
Set the current Edit to be used in the Motion Blend.
bool SetSnapOnFrame(bool pSnap)
Set the "Snap On Frame" state.
FBMotionBlendEdit * GetCurrentEdit()
Get the current Edit used in the Motion Blend.
FBMotionBlendEdit * AddEdit(const char *pName=nullptr, bool pSetAsCurrent=true)
Add a new Edit in the Motion Blend.
int GetEditCount()
Get the number of Edits in the Motion Blend.
bool SetSyncTakeEditStartEnd(bool pSync)
Set the "Sync Take/Edit Start & End" state.
static FBMotionBlend & TheOne()
Get the global FBMotionBlend object.
bool GetForceTime()
Get the "Force Time" state.
bool GetSyncTakeEditStartEnd()
Get the "Sync Take/Edit Start & End" state.
bool RemoveAllEdits()
Remove all Edits from the Motion Blend.
Basic class definitions.
#define __FBClassDeclare(Name, Parent)
For internal use only.
Definition: fbcomponent.h:131
#define FBSDK_DLL
Be sure that FBSDK_DLL is defined only once...
Definition: fbmotionblend.h:20
#define __FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.
Definition: fbtypes.h:68