fbsdk/fbcharacterextension.h Source File

fbcharacterextension.h
Go to the documentation of this file.
1 #ifndef __FBCHARACTEREXTENSION_H__
2 #define __FBCHARACTEREXTENSION_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 
43 #include <kaydaradef.h>
44 #ifndef FBSDK_DLL
45 
48  #define FBSDK_DLL K_DLLIMPORT
49 #endif
50 
51 #include <fbsdk/fbkeyinggroup.h>
52 #include <fbsdk/fbmodel.h>
53 
54 #ifdef FBSDKUseNamespace
55  namespace FBSDKNamespace {
56 #endif
57 
58 __FB_FORWARD( FBCharacterExtension );
59 __FB_FORWARD( FBCharacter );
60 __FB_FORWARD( FBObjectPose );
61 
64 {
69 };
70 
71 FB_DEFINE_ENUM ( FBSDK_DLL, PlotAllowed );
72 FB_DEFINE_COMPONENT( FBSDK_DLL, CharacterExtension );
73 FB_DEFINE_LIST( FBSDK_DLL, CharacterExtension );
75 
78 {
82 };
83 FB_DEFINE_ENUM( FBSDK_DLL, CharacterExtensionRetargetMode );
84 
85 
89 {
90  public:
96  virtual FBCharacterExtension* operator[]( int pIndex );
97 };
98 
99 
100 
102 // FBGroup
104 
108 {
109  //--- Open Reality declaration.
111 public:
112 
113 
114 
115 
120  FBCharacterExtension(const char* pName, HIObject pObject=NULL);
121 
124  virtual void FBDelete();
125 
132 
133 
136  void UpdateStancePose();
137 
140  void GoToStancePose();
141 
145  FBObjectPose* GetStancePose();
146 
147 
151  FBCharacterExtension* GetMirrorExtension();
152 
156  FBCharacter* GetCharacter();
157 
158 
162  void AddObjectProperties( FBComponent* pObj );
163 
167  void RemoveObjectAndProperties( FBComponent* pObj );
168 
169 
173  bool IsElementSelected();
174 
179  bool IsPropertyIncluded( FBProperty* pProp );
180 
181 
187  void GetLabelNameWithExtensionObject( FBString& pLabelName, FBComponent* pObj, bool pReturnObjectNameIfNotFound = false );
188 
193  FBComponent* GetExtensionObjectWithLabelName( const FBString& pLabelName );
194 
195 
199  FBCharacterExtension* GetSourceExtension();
200 
205  void SetSourceExtension( FBCharacterExtension* pSourceExtension );
206 
210  int GetSourceExtensionIndex();
211 
216  void SetSourceExtensionIndex( int pSrcExtIndex );
217 
218 
222  int GetRetargetPropertyCount();
223 
228  FBProperty* GetRetargetReferenceProperty( int pPropIndex );
229 
234  FBProperty* GetRetargetSourceProperty( int pPropIndex );
235 
241  void SetRetargetSourceProperty( int pPropIndex, FBProperty* pSourceProp );
242 
247  void RemoveRetargetSourceProperty( int pPropIndex );
248 
249 
253  void RetargetAnimation( FBEvaluateInfo* pEvalInfo );
254 };
255 
257 
258 #ifdef FBSDKUseNamespace
259  }
260 #endif
261 #endif /* this must be the last line of this file */
KeyingGroups interface for FBSDK.
#define __FBClassDeclare(Name, Parent)
For internal use only.
Definition: fbcomponent.h:132
KeyingGroup class.
Definition: fbkeyinggroup.h:87
#define FB_DEFINE_COMPONENT(DllTag, Type)
Define a component and give it the ability to be a property.
Definition: fbproperties.h:139
#define FB_DEFINE_LIST(DllTag, Type)
Define a component list.
Definition: fbproperties.h:161
FBPropertyModel ReferenceModel
Read Write Property: Controls the referential of the extension.
Basic string class.
Definition: fbstring.h:66
FBPlotAllowed
FBPlotAllowed.
#define NULL
Definition: kaydara.h:169
class FBPropertyBaseEnum< enum FBPlotAllowed > FBPropertyPlotAllowed
AnimationNodeNotify evaluation information.
FBPropertyCharacterExtensionRetargetMode RetargetMode
Read Write Property: Character extension retarget mode.
Property class: const char * (String).
Base class for Cameras.
#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
FBPropertyInt MirrorLabel
Read Write Property: Enum that indicate which extension is used as mirror, 0 is none, 1 is self, 2-n represent the (ith - 2)character extension in the attached character excluding self.
FBCharacterExtensionRetargetMode
Character extension Retarget Mode.
Character extension property list.
PropertyList: Concrete class for PropertyList of component
Definition: fbcomponent.h:553
#define __FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.
Definition: fbtypes.h:68
#define FBSDK_DLL
Be sure that FBSDK_DLL is defined only once...
Property: Base property class.
Definition: fbproperties.h:192
FBPropertyBool IncludePartInFullBody
Read Write Property: Include or not this extension when fullBody is active.
class FBPropertyBaseComponent< FBModel * > FBPropertyModel
Definition: fbcore.h:70
A character is the link between a motion source and a character model.
Definition: fbcharacter.h:1229
#define FBSDKNamespace
FBSDKNamespace define.
Definition: fbversion.h:64
class FBPropertyBaseEnum< enum FBCharacterExtensionRetargetMode > FBPropertyCharacterExtensionRetargetMode
#define FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.
Definition: fbtypes.h:62
class FBPropertyBase< int, kFBPT_int > FBPropertyInt
Property: int
FBObjectPose class.
Definition: fbobjectpose.h:192
FBPropertyString Label
Read Write Property: The logical name of the extension, use for mirroring.
FBPropertyPlotAllowed PlotAllowed
Read Write Property: Controls if objects in the set are transformable.