FCurve class. More...
#include <fbdata.h>
Public Member Functions | |
FBFCurve (HIObject pObject=NULL) | |
Constructor. More... | |
virtual void | FBDelete () override |
Virtual FBDelete function. More... | |
float | Evaluate (FBTime &pTime) |
Evaluate FCurve at pTime. More... | |
void | EditBegin (int pKeyCount=-1) |
Setup function to begin adding keys. More... | |
void | EditEnd (int pKeyCount=-1) |
End key adding sequence. More... | |
void | EditClear () |
Empty FCurve of all keys. More... | |
int | KeyAdd (FBTime &pTime, double pValue, FBInterpolation pInterpolation=kFBInterpolationCubic, FBTangentMode pTangentMode=kFBTangentModeAuto) |
Add a key at the specified time. More... | |
bool | KeysAdd (const FBArrayTemplate< FBTime > &pTimes, const FBArrayDouble &pValues, const FBArrayTemplate< FBInterpolation > &pInterpolations=FBArrayTemplate< FBInterpolation >(), const FBArrayTemplate< FBTangentMode > &pTangentModes=FBArrayTemplate< FBTangentMode >()) |
Add at once multiple keys at different specified times. More... | |
bool | KeysSetValues (const FBArrayUInt &pIndices, const FBArrayDouble &pValues, const FBArrayTemplate< FBInterpolation > &pInterpolations=FBArrayTemplate< FBInterpolation >(), const FBArrayTemplate< FBTangentMode > &pTangentModes=FBArrayTemplate< FBTangentMode >()) |
Set at once multiple existing keys values. More... | |
bool | KeyRemove (int pIndex) |
Remove key at index. More... | |
bool | KeyDelete (int pStartIndex, int pStopIndex) |
Delete keys within an index range. More... | |
bool | KeyDelete (FBTime pStart=FBTime::MinusInfinity, FBTime pStop=FBTime::Infinity, bool pInclusive=false) |
Delete keys within a time range. More... | |
void | KeyInsert (FBTime &pTime, FBInterpolation pInterpolation=kFBInterpolationCubic, FBTangentMode pTangentMode=kFBTangentModeAuto) |
Insert a key without affecting the curve shape. More... | |
void | KeyReplaceBy (FBFCurve &pSource, FBTime pStart=FBTime::MinusInfinity, FBTime pStop=FBTime::Infinity, bool pUseExactGivenSpan=false, bool pKeyStartEndOnNoKey=true) |
Replace keys within a range in current function curve with keys found in a source function curve. More... | |
bool | KeyOffset (FBTime &pOffsetTime, int pStartIndex, int pStopIndex) |
Offset keys within an index range by a given offset time. More... | |
bool | KeyOffset (FBTime &pOffsetTime, FBTime pStartTime=FBTime::MinusInfinity, FBTime pStopTime=FBTime::Infinity, bool pInclusive=true) |
Offset keys within a time range by a given offset time. More... | |
FBExtrapolationMode | GetPostExtrapolationMode () |
Get modes for post extrapolation. More... | |
void | SetPostExtrapolationMode (FBExtrapolationMode pExtrapolationMode) |
Set modes for post extrapolation. More... | |
int | GetPostExtrapolationCount () |
Get count for post extrapolation. More... | |
void | SetPostExtrapolationCount (int pCount) |
Set count for post extrapolation. More... | |
FBExtrapolationMode | GetPreExtrapolationMode () |
Get modes for pre extrapolation. More... | |
void | SetPreExtrapolationMode (FBExtrapolationMode pExtrapolationMode) |
Set modes for pre extrapolation. More... | |
int | GetPreExtrapolationCount () |
Get count for pre extrapolation. More... | |
void | SetPreExtrapolationCount (int pCount) |
Set count for pre extrapolation. More... | |
FBPropertyListFCurveKey | GetKeys () |
void | SetKeys (FBPropertyListFCurveKey pKeys) |
float | KeyGetValue (int pIndex) |
Get the key value at the specified index. More... | |
void | KeySetValue (int pIndex, float pValue) |
Set the key value at the specified index. More... | |
float | KeyGetLeftDerivative (int pIndex) |
Get the key left derivative value at the specified index. More... | |
void | KeySetLeftDerivative (int pIndex, float pValue) |
Set the key left derivative value at the specified index. More... | |
float | KeyGetRightDerivative (int pIndex) |
Get the key right derivative value at the specified index. More... | |
void | KeySetRightDerivative (int pIndex, float pValue) |
Set the key right derivative value at the specified index. More... | |
float | KeyGetLeftTangentWeight (int pIndex) |
Get the key left tangent weight at the specified index. More... | |
void | KeySetLeftTangentWeight (int pIndex, float pValue) |
Set the key left tangent weight at the specified index. More... | |
float | KeyGetRightTangentWeight (int pIndex) |
Get the key right tangent weight at the specified index. More... | |
void | KeySetRightTangentWeight (int pIndex, float pValue) |
Set the key right tangent weight at the specified index. More... | |
float | KeyGetLeftBezierTangent (int pIndex) |
Get the key left bezier tangent value at the specified index. More... | |
void | KeySetLeftBezierTangent (int pIndex, float pValue) |
Set the key left bezier tangent value at the specified index. More... | |
float | KeyGetRightBezierTangent (int pIndex) |
Get the key right bezier tangent value at the specified index. More... | |
void | KeySetRightBezierTangent (int pIndex, float pValue) |
Set the key right bezier tangent value at the specified index. More... | |
float | KeyGetTCBTension (int pIndex) |
Get the key tension value at the specified index (TCB key). More... | |
void | KeySetTCBTension (int pIndex, float pValue) |
Set the key tension value at the specified index (TCB key). More... | |
float | KeyGetTCBContinuity (int pIndex) |
Get the key continuity value at the specified index (TCB key). More... | |
void | KeySetTCBContinuity (int pIndex, float pValue) |
Set the key continuity value at the specified index (TCB key). More... | |
float | KeyGetTCBBias (int pIndex) |
Get the key bias value at the specified index (TCB key). More... | |
void | KeySetTCBBias (int pIndex, float pValue) |
Set the key bias value at the specified index (TCB key). More... | |
FBTime | KeyGetTime (int pIndex) |
Get the key time value at the specified index. More... | |
void | KeySetTime (int pIndex, FBTime pValue) |
Set the key time value at the specified index. More... | |
FBInterpolation | KeyGetInterpolation (int pIndex) |
Get the key interpolation type at the specified index. More... | |
void | KeySetInterpolation (int pIndex, FBInterpolation pValue) |
Set the key interpolation type at the specified index. More... | |
FBTangentMode | KeyGetTangentMode (int pIndex) |
Get the key tangent mode at the specified index. More... | |
void | KeySetTangentMode (int pIndex, FBTangentMode pValue) |
Set the key tangent mode at the specified index. More... | |
FBTangentClampMode | KeyGetTangentClampMode (int pIndex) |
Get the key tangent's clamp method at the specified index. More... | |
void | KeySetTangentClampMode (int pIndex, FBTangentClampMode pValue) |
Set the key tangent's clamp method at the specified index. More... | |
bool | KeyGetTangentBreak (int pIndex) |
Get the key tangent's break status at the specified index. More... | |
void | KeySetTangentBreak (int pIndex, bool pValue) |
Set the key tangent's break status at the specified index. More... | |
FBTangentConstantMode | KeyGetTangentConstantMode (int pIndex) |
Get the key tangent's constant mode at the specified index. More... | |
void | KeySetTangentConstantMode (int pIndex, FBTangentConstantMode pValue) |
Set the key tangent's constant mode at the specified index. More... | |
FBTangentCustomIndex | KeyGetTangentCustomIndex (int pIndex) |
Get the key tangent's custom index at the specified index. More... | |
void | KeySetTangentCustomIndex (int pIndex, FBTangentCustomIndex pValue) |
Set the key tangent's custom index at the specified index. More... | |
FBTangentWeightMode | KeyGetTangentWeightMode (int pIndex) |
Get the tangent weight mode for a key. More... | |
void | KeySetTangentWeightMode (int pIndex, FBTangentWeightMode pValue) |
Change the tangent weight for a key. More... | |
bool | KeyGetSelected (int pIndex) |
Get the key selected state. More... | |
bool | KeySetSelected (int pIndex, bool pValue) |
Set the key selected state. More... | |
bool | KeyGetMarkedForManipulation (int pIndex) |
Get the key manipulation state. More... | |
bool | KeySetMarkedForManipulation (int pIndex, bool pValue) |
Set the key manipulation state. More... | |
![]() | |
FBComponent (HIObject pObject) | |
Constructor. More... | |
virtual | ~FBComponent () |
Destructor. More... | |
virtual bool | FBCreate () |
Open Reality Creation function. More... | |
virtual void | FBDestroy () |
Open Reality destruction function. More... | |
virtual bool | SetHIObject (HIObject pObject, bool pSDKComponent) override |
Assign component to an internal pointer. More... | |
virtual int | PropertyAdd (FBProperty *pProperty) |
Add a property to the component's property manager. More... | |
bool | PropertyAddReferenceProperty (FBProperty *pReferenceProperty) |
Add a reference property to the component's property manager. More... | |
void | PropertyRemove (FBProperty *pProperty) |
Remove a Property from the component's Property manager. More... | |
void | PropertyGetModifiedList (FBArrayTemplate< FBProperty * > &pPropList, FBPlugModificationFlag pModificationFlags) |
Get list of properties which have been modified since last loading. More... | |
FBProperty * | PropertyCreate (const char *pName, FBPropertyType pType, const char *pDataType, bool pAnimatable, bool pIsUser=false, FBProperty *pReferenceSource=NULL) |
Create user or dynamic property. More... | |
FBObjectFlag | GetObjectFlags () |
Get all Object Flags (concatenated). More... | |
void | SetObjectFlags (FBObjectFlag pFlags) |
SetObjectFlags. More... | |
bool | HasObjectFlags (FBObjectFlag pFlags) |
Check whether a specific object flag is enabled. More... | |
void | EnableObjectFlags (FBObjectFlag pFlags) |
Enable a specific Object Flags. More... | |
void | DisableObjectFlags (FBObjectFlag pFlags) |
Disable a specific Object Flags. More... | |
void | SetObjectStatus (FBObjectStatus pStatus, bool pValue) |
Enable/Disable a specific Object Status. More... | |
bool | GetObjectStatus (FBObjectStatus pStatus) |
Check to see if an object status is enabled. More... | |
bool | ProcessNamespaceHierarchy (FBNamespaceAction pNamespaceAction, const char *pNamespaceName, const char *pReplaceTo=NULL, bool pAddRight=true) |
ProcessNamespaceHierarchy. More... | |
bool | ProcessObjectNamespace (FBNamespaceAction pNamespaceAction, const char *pNamespaceName, const char *pReplaceTo=NULL, bool pAddRight=true) |
ProcessObjectNamespace. More... | |
virtual const char * | ClassName () override |
Get the class name. More... | |
virtual bool | UseCustomPropertyViewSet () const |
Use the custom property viewSet or not. More... | |
const char * | GetFullName (void) |
Get the full name. More... | |
void | SetOwnerNamespace (FBNamespace *pOwnerNSObj) |
Set the owner Namespace object. More... | |
FBNamespace * | GetOwnerNamespace (void) |
Get the owner Namespace object. More... | |
FBFileReference * | GetOwnerFileReference (void) |
Get the owner FileReference object. More... | |
void | HardSelect () |
HardSelect. More... | |
virtual bool | Is (int pTypeId) override |
Returns true if object is of type TypeId. More... | |
virtual int | GetTypeId () override |
GetTypeId( int pTypeId ) More... | |
![]() | |
FBScriptWrapper * | GetWrapper () |
Return the wrapper interface of this FBObject. More... | |
void | AddWrapper (FBScriptWrapper *) |
void | RemoveWrapper (FBScriptWrapper *) |
Static Public Member Functions | |
static FBFCurve * | CreateInterpolatorCurve (FBInterpolatorCurveType pCurveType) |
Create and interpolator curve. More... | |
![]() | |
static int | GetInternalClassId () |
static void | FBComponentSetName (FBComponent *pObject, const char *pName) |
static const char * | FBComponentGetName (FBComponent *pObject) |
static void | FBComponentSetLongName (FBComponent *pObject, const char *pName) |
static const char * | FBComponentGetLongName (FBComponent *pObject) |
Public Attributes | |
FBPropertyListFCurveKey | Keys |
List: Keys. More... | |
![]() | |
FBPropertyManager | PropertyList |
Read Only Property: Manages all of the properties for the component. More... | |
FBPropertyListComponent | Components |
List: List of components. More... | |
FBPropertyListComponent | Parents |
List: Parents. More... | |
FBPropertyBool | Selected |
Read Write Property: Selected property. More... | |
FBPropertyString | Name |
Read Write Property: Unique name of object. More... | |
FBPropertyString | LongName |
Read Write Property: Name and namespace for object. More... | |
FBPropertyFolder | Folder |
Read Write Property: The folder that contain this component. More... | |
Additional Inherited Members | |
![]() | |
static int | TypeInfo |
Contains the Type information of the object. More... | |
![]() | |
bool | IsSDKComponent () |
Return whether or not item is an SDK component. More... | |
bool | ConnectSrc (FBPlug *pSrc, FBConnectionType pConnectionType=kFBConnectionTypeNone) |
Add a source connection. More... | |
bool | ConnectDst (FBPlug *pDst, FBConnectionType pConnectionType=kFBConnectionTypeNone) |
Add a destination connection. More... | |
bool | ConnectSrcAt (int pDst_SrcIndex, FBPlug *pSrc, FBConnectionType pConnectionType=kFBConnectionTypeNone) |
Add a source connection. More... | |
bool | ConnectDstAt (int pSrc_DstIndex, FBPlug *pDst, FBConnectionType pConnectionType=kFBConnectionTypeNone) |
Add a destination connection. More... | |
bool | DisconnectDst (FBPlug *pDst) |
Remove a destination connection. More... | |
bool | DisconnectSrc (FBPlug *pSrc) |
Remove a source connection. More... | |
void | DisconnectAllSrc () |
Remove all source connections. More... | |
void | DisconnectAllDst () |
Remove all destination connections. More... | |
bool | DisconnectDstAt (int pIndex) |
Remove a destination connection at a specified index. More... | |
bool | DisconnectSrcAt (int pIndex) |
Remove a source connection at a specified index. More... | |
bool | ReplaceDstAt (int pIndex, FBPlug *pDst) |
Replace a destination connection at a specified index. More... | |
bool | ReplaceSrcAt (int pIndex, FBPlug *pSrc) |
Replace a source connection at a specified index. More... | |
bool | SwapSrc (int pIndexA, int pIndexB) |
Swap source connection at index A with source connection at index B. More... | |
bool | MoveSrcAt (int pIndex, int pAtIndex) |
Move source connection at pIndex to pAtIndex. More... | |
bool | MoveSrcAt (FBPlug *pSrc, FBPlug *pAtSrc) |
Move source connection pSrc to the position of pAtSrc. More... | |
int | GetSrcCount () |
Get source connection count. More... | |
FBPlug * | GetSrc (int pIndex) |
Get a source connection's plug at specified index. More... | |
FBConnectionType | GetSrcType (int pIndex) |
Get a source connection's type at specified index. More... | |
int | GetDstCount () |
Get destination connection count. More... | |
FBPlug * | GetDst (int pIndex) |
Get a destination connection's plug at specified index. More... | |
FBConnectionType | GetDstType (int pIndex) |
Get a destination connection's type at specified index. More... | |
bool | BeginChange () |
Begins a change on multiple plugs. More... | |
void | EndChange () |
Ends a change on multiple plugs. More... | |
void | SetSelfModified (FBPlugModificationFlag pFlag, bool pBool) |
Set the plug's self modification flag. More... | |
bool | GetSelfModified (FBPlugModificationFlag pFlag) |
Tell if the plug's self has changed. More... | |
void | SetContentModified (FBPlugModificationFlag pFlag, bool pBool) |
Set the plug's owned property/object's modification flag. More... | |
bool | GetContentModified (FBPlugModificationFlag pFlag) |
Tell if the plug's content has changed. More... | |
int | GetPlugConnectionModifiedList (FBPlugList &pPlugList, FBPlugModificationFlag pConnectionModificatonFlag, bool pAddRemove) |
Get plug's modified src/dst property/object connection added/removed List. More... | |
bool | RevertModification (FBPlugModificationFlag pFlag=kFBAllModifiedMask) |
Revert the plug's modification to original status. More... | |
void | SetStatusFlag (FBPlugStatusFlag pStatus, bool pValue) |
Set the plug's status flag. More... | |
bool | GetStatusFlag (FBPlugStatusFlag pStatus) const |
Tell if the plug's status has changed. More... | |
FBPlug * | GetOwner () |
Get the owner of this plug. More... | |
FBPlug * | GetOwned (int pIndex) |
Get the owned plug at specified index. More... | |
int | GetOwnedCount () |
Get the owned plug count. More... | |
virtual bool | PlugDataNotify (FBConnectionAction pAction, FBPlug *pThis, void *pData=NULL, void *pDataOld=NULL, int pDataSize=0) |
PlugDataNotify when overloaded is equivalent of FBSystem.OnConnectionDataNotify but in the context of the derived object only. More... | |
virtual bool | PlugStateNotify (FBConnectionAction pAction, FBPlug *pThis, void *pData=NULL, void *pDataOld=NULL, int pDataSize=0) |
PlugStateNotify when overloaded is equivalent of FBSystem.OnConnectionStateNotify but in the context of the derived object only. More... | |
virtual bool | PlugNotify (FBConnectionAction pAction, FBPlug *pThis, int pIndex, FBPlug *pPlug=NULL, FBConnectionType pConnectionType=kFBConnectionTypeNone, FBPlug *pNewPlug=NULL) |
PlugNotify when overloaded is equivalent of FBSystem.OnConnectionNotify but in the context of the derived object only. More... | |
![]() | |
static int | GetInternalClassId () |
Internal class Id. More... | |
![]() | |
bool | mAllocated |
Contain the Allocation State of the Component. More... | |
HIObject | mObject |
Handle on the Plug. More... | |
bool | mSDKComponent |
bool Plug is an SDK component. More... | |
![]() | |
static const char * | ClassGroupName |
ClassGroupName of the object. More... | |
static int | TypeInfo |
TypeInfo. More... | |
static int | mGlobalTypeInfo |
Represente the Type Index. More... | |
FBFCurve | ( | HIObject | pObject = NULL | ) |
Constructor.
pObject | For internal use only (default is NULL). |
|
static |
Create and interpolator curve.
pCurveType | Interpolator curve type to create. |
void EditBegin | ( | int | pKeyCount = -1 | ) |
Setup function to begin adding keys.
pKeyCount | Key to begin adding at(default is -1). |
void EditClear | ( | ) |
Empty FCurve of all keys.
void EditEnd | ( | int | pKeyCount = -1 | ) |
End key adding sequence.
pKeyCount | Key to finish adding at (default is -1). |
float Evaluate | ( | FBTime & | pTime | ) |
Evaluate FCurve at pTime.
pTime | Time at which FCurve is to be evaluated. |
|
overridevirtual |
Virtual FBDelete function.
Reimplemented from FBComponent.
int GetPostExtrapolationCount | ( | ) |
Get count for post extrapolation.
FBExtrapolationMode GetPostExtrapolationMode | ( | ) |
Get modes for post extrapolation.
int GetPreExtrapolationCount | ( | ) |
Get count for pre extrapolation.
FBExtrapolationMode GetPreExtrapolationMode | ( | ) |
Get modes for pre extrapolation.
int KeyAdd | ( | FBTime & | pTime, |
double | pValue, | ||
FBInterpolation | pInterpolation = kFBInterpolationCubic , |
||
FBTangentMode | pTangentMode = kFBTangentModeAuto |
||
) |
Add a key at the specified time.
pTime | Time at which to insert the key. |
pValue | Value of the key. |
pInterpolation | Interpolation type of the inserted key, default value is Cubic interpolation. |
pTangentMode | Tangent calculation method of the inserted key, default value is Auto (Smooth). |
bool KeyDelete | ( | FBTime | pStart = FBTime::MinusInfinity , |
FBTime | pStop = FBTime::Infinity , |
||
bool | pInclusive = false |
||
) |
Delete keys within a time range.
This function is much faster than multiple removes.
pStart | Start of time range. |
pStop | End of time range. |
pInclusive | True to include within the time range the keys at pStartTime and pStopTime, false otherwise. |
True
if the delete operation is successful, false
otherwise (e.g. the FCurve is locked, no keys found within the time range, etc.). bool KeyDelete | ( | int | pStartIndex, |
int | pStopIndex | ||
) |
Delete keys within an index range.
This function is much faster than multiple removes.
pStartIndex | Index of first deleted key. |
pStopIndex | Index of last deleted key. |
True
if the delete operation is successful, false
otherwise (e.g. the FCurve is locked, the index range is invalid, etc.). FBInterpolation KeyGetInterpolation | ( | int | pIndex | ) |
Get the key interpolation type at the specified index.
pIndex | Index of the key to query. |
float KeyGetLeftBezierTangent | ( | int | pIndex | ) |
Get the key left bezier tangent value at the specified index.
pIndex | Index of the key to query. |
float KeyGetLeftDerivative | ( | int | pIndex | ) |
Get the key left derivative value at the specified index.
pIndex | Index of the key to query. |
float KeyGetLeftTangentWeight | ( | int | pIndex | ) |
Get the key left tangent weight at the specified index.
pIndex | Index of the key to query. |
bool KeyGetMarkedForManipulation | ( | int | pIndex | ) |
Get the key manipulation state.
pIndex | Index of the key to query. |
float KeyGetRightBezierTangent | ( | int | pIndex | ) |
Get the key right bezier tangent value at the specified index.
pIndex | Index of the key to query. |
float KeyGetRightDerivative | ( | int | pIndex | ) |
Get the key right derivative value at the specified index.
pIndex | Index of the key to query. |
float KeyGetRightTangentWeight | ( | int | pIndex | ) |
Get the key right tangent weight at the specified index.
pIndex | Index of the key to query. |
bool KeyGetSelected | ( | int | pIndex | ) |
Get the key selected state.
pIndex | Index of the key to query. |
bool KeyGetTangentBreak | ( | int | pIndex | ) |
Get the key tangent's break status at the specified index.
pIndex | Index of the key to query. |
FBTangentClampMode KeyGetTangentClampMode | ( | int | pIndex | ) |
Get the key tangent's clamp method at the specified index.
pIndex | Index of the key to query. |
FBTangentConstantMode KeyGetTangentConstantMode | ( | int | pIndex | ) |
Get the key tangent's constant mode at the specified index.
pIndex | Index of the key to query. |
FBTangentCustomIndex KeyGetTangentCustomIndex | ( | int | pIndex | ) |
Get the key tangent's custom index at the specified index.
pIndex | Index of the key to query. |
FBTangentMode KeyGetTangentMode | ( | int | pIndex | ) |
Get the key tangent mode at the specified index.
pIndex | Index of the key to query. |
FBTangentWeightMode KeyGetTangentWeightMode | ( | int | pIndex | ) |
Get the tangent weight mode for a key.
pIndex | Index of the key to query. |
float KeyGetTCBBias | ( | int | pIndex | ) |
Get the key bias value at the specified index (TCB key).
pIndex | Index of the key to query. |
float KeyGetTCBContinuity | ( | int | pIndex | ) |
Get the key continuity value at the specified index (TCB key).
pIndex | Index of the key to query. |
float KeyGetTCBTension | ( | int | pIndex | ) |
Get the key tension value at the specified index (TCB key).
pIndex | Index of the key to query. |
FBTime KeyGetTime | ( | int | pIndex | ) |
Get the key time value at the specified index.
pIndex | Index of the key to query. |
float KeyGetValue | ( | int | pIndex | ) |
Get the key value at the specified index.
pIndex | Index of the key to query. |
void KeyInsert | ( | FBTime & | pTime, |
FBInterpolation | pInterpolation = kFBInterpolationCubic , |
||
FBTangentMode | pTangentMode = kFBTangentModeAuto |
||
) |
Insert a key without affecting the curve shape.
pTime | Time at which the key is to be inserted. |
pInterpolation | Interpolation type of the inserted key, default value is Cubic interpolation. |
pTangentMode | Tangent calculation method of the inserted key, default value is Auto (Smooth). |
bool KeyOffset | ( | FBTime & | pOffsetTime, |
FBTime | pStartTime = FBTime::MinusInfinity , |
||
FBTime | pStopTime = FBTime::Infinity , |
||
bool | pInclusive = true |
||
) |
Offset keys within a time range by a given offset time.
Non-moving keys that are situated in the target range are deleted automatically, to preserve the animation being offset.
pOffsetTime | The offset time to apply on keys. |
pStartTime | Start of time range. |
pStopTime | End of time range. |
pInclusive | True to include within the time range the keys at pStartTime and pStopTime, false otherwise. |
True
if the offset operation is successful, false
otherwise (e.g. the FCurve is locked, no keys found within the time range, etc.). bool KeyOffset | ( | FBTime & | pOffsetTime, |
int | pStartIndex, | ||
int | pStopIndex | ||
) |
Offset keys within an index range by a given offset time.
When offsetting many keys at once, all non-moving keys that are situated in the target range are deleted automatically, to preserve the animation being offset.
pOffsetTime | The offset time to apply on keys. |
pStartIndex | Index of first key to be offset. |
pStopIndex | Index of last key to be offset. |
True
if the offset operation is successful, false
otherwise (e.g. the FCurve is locked, the index range is invalid, etc.). bool KeyRemove | ( | int | pIndex | ) |
Remove key at index.
pIndex | Index of the key to remove. |
void KeyReplaceBy | ( | FBFCurve & | pSource, |
FBTime | pStart = FBTime::MinusInfinity , |
||
FBTime | pStop = FBTime::Infinity , |
||
bool | pUseExactGivenSpan = false , |
||
bool | pKeyStartEndOnNoKey = true |
||
) |
Replace keys within a range in current function curve with keys found in a source function curve.
pSource | Source function curve. |
pStart | Start of time range. |
pStop | End of time range. |
pUseExactGivenSpan | When false , the time of the first and last key in the range will be used. |
pKeyStartEndOnNoKey | When true , inserts a key at the beginning and at the end of the range if there is no key to insert. |
bool KeysAdd | ( | const FBArrayTemplate< FBTime > & | pTimes, |
const FBArrayDouble & | pValues, | ||
const FBArrayTemplate< FBInterpolation > & | pInterpolations = FBArrayTemplate< FBInterpolation >() , |
||
const FBArrayTemplate< FBTangentMode > & | pTangentModes = FBArrayTemplate< FBTangentMode >() |
||
) |
Add at once multiple keys at different specified times.
The array size of pTimes and pValues must match. If pInterpolations and pTangentModes parameters are specified, their array sizes must also match the array size of pTimes. The value of each index of each input array will be used together to form a key data to add.
pTimes | Times at which to insert the keys. |
pValues | Values of the keys. |
pInterpolations | Interpolation types of the inserted keys, default value is Cubic interpolation for all the keys if this parameter is omitted. |
pTangentModes | Tangent calculation methods of the inserted keys, default value is Auto (Smooth) for all the keys if this parameter is omitted. |
void KeySetInterpolation | ( | int | pIndex, |
FBInterpolation | pValue | ||
) |
Set the key interpolation type at the specified index.
pIndex | Index of the key to set. |
pValue | Type of interpolation. |
void KeySetLeftBezierTangent | ( | int | pIndex, |
float | pValue | ||
) |
Set the key left bezier tangent value at the specified index.
pIndex | Index of the key to set. |
pValue | Left bezier tangent. |
void KeySetLeftDerivative | ( | int | pIndex, |
float | pValue | ||
) |
Set the key left derivative value at the specified index.
pIndex | Index of the key to set. |
pValue | Left derivative value, in units/seconds. |
void KeySetLeftTangentWeight | ( | int | pIndex, |
float | pValue | ||
) |
Set the key left tangent weight at the specified index.
pIndex | Index of the key to set. |
pValue | Left tangent weight. |
bool KeySetMarkedForManipulation | ( | int | pIndex, |
bool | pValue | ||
) |
Set the key manipulation state.
pIndex | Index of the key to set. |
pValue | New manipulation state. |
void KeySetRightBezierTangent | ( | int | pIndex, |
float | pValue | ||
) |
Set the key right bezier tangent value at the specified index.
pIndex | Index of the key to set. |
pValue | Right bezier tangent. |
void KeySetRightDerivative | ( | int | pIndex, |
float | pValue | ||
) |
Set the key right derivative value at the specified index.
pIndex | Index of the key to set. |
pValue | Right derivative value, in units/seconds. |
void KeySetRightTangentWeight | ( | int | pIndex, |
float | pValue | ||
) |
Set the key right tangent weight at the specified index.
pIndex | Index of the key to set. |
pValue | Right tangent weight. |
bool KeySetSelected | ( | int | pIndex, |
bool | pValue | ||
) |
Set the key selected state.
pIndex | Index of the key to set. |
pValue | New selection state. |
void KeySetTangentBreak | ( | int | pIndex, |
bool | pValue | ||
) |
Set the key tangent's break status at the specified index.
pIndex | Index of the key to set. |
pValue | Tangent's break status. |
void KeySetTangentClampMode | ( | int | pIndex, |
FBTangentClampMode | pValue | ||
) |
Set the key tangent's clamp method at the specified index.
pIndex | Index of the key to set. |
pValue | Tangent's clamp method. |
void KeySetTangentConstantMode | ( | int | pIndex, |
FBTangentConstantMode | pValue | ||
) |
Set the key tangent's constant mode at the specified index.
pIndex | Index of the key to set. |
pValue | Tangent's constant mode. |
void KeySetTangentCustomIndex | ( | int | pIndex, |
FBTangentCustomIndex | pValue | ||
) |
Set the key tangent's custom index at the specified index.
pIndex | Index of the key to set. |
pValue | Tangent's custom index. |
void KeySetTangentMode | ( | int | pIndex, |
FBTangentMode | pValue | ||
) |
Set the key tangent mode at the specified index.
pIndex | Index of the key to set. |
pValue | Tangent calculation method. |
void KeySetTangentWeightMode | ( | int | pIndex, |
FBTangentWeightMode | pValue | ||
) |
Change the tangent weight for a key.
Setting the value for LeftTangentWeight/RightTangentWeight will also activate the weight for that part. Please see the note provided with FBTangentWeightMode for the left weight of a key.
pIndex | Index of the key to set. |
pValue | Set the pValue according to the desired mode, kFBTangentWeightModeNone to disable it. |
void KeySetTCBBias | ( | int | pIndex, |
float | pValue | ||
) |
Set the key bias value at the specified index (TCB key).
pIndex | Index of the key to set. |
pValue | Bias value. |
void KeySetTCBContinuity | ( | int | pIndex, |
float | pValue | ||
) |
Set the key continuity value at the specified index (TCB key).
pIndex | Index of the key to set. |
pValue | Continuity value. |
void KeySetTCBTension | ( | int | pIndex, |
float | pValue | ||
) |
Set the key tension value at the specified index (TCB key).
pIndex | Index of the key to set. |
pValue | Tension value. |
void KeySetTime | ( | int | pIndex, |
FBTime | pValue | ||
) |
Set the key time value at the specified index.
pIndex | Index of the key to set. |
pValue | Time of key. |
void KeySetValue | ( | int | pIndex, |
float | pValue | ||
) |
Set the key value at the specified index.
pIndex | Index of the key to set. |
pValue | Value of the key. |
bool KeysSetValues | ( | const FBArrayUInt & | pIndices, |
const FBArrayDouble & | pValues, | ||
const FBArrayTemplate< FBInterpolation > & | pInterpolations = FBArrayTemplate< FBInterpolation >() , |
||
const FBArrayTemplate< FBTangentMode > & | pTangentModes = FBArrayTemplate< FBTangentMode >() |
||
) |
Set at once multiple existing keys values.
The array size of pIndices and pValues must match. If pInterpolations and pTangentModes parameters are specified, their array sizes must also match the array size of pIndices. The value of each index of each input array (except for pIndices) will be used together to modify the key data of the key specified by the key index of pIndices.
pIndices | Indices of existing keys to modify. |
pValues | New values of the keys to modify. |
pInterpolations | New interpolation types of the keys to modify if specified, otherwise the interpolation types are untouched. |
pTangentModes | New tangent calculation methods of the keys to modify if specified, otherwise the tangent calculation methods are untouched. |
void SetPostExtrapolationCount | ( | int | pCount | ) |
Set count for post extrapolation.
void SetPostExtrapolationMode | ( | FBExtrapolationMode | pExtrapolationMode | ) |
Set modes for post extrapolation.
void SetPreExtrapolationCount | ( | int | pCount | ) |
Set count for pre extrapolation.
void SetPreExtrapolationMode | ( | FBExtrapolationMode | pExtrapolationMode | ) |
Set modes for pre extrapolation.