This reference page is linked to from the following overview topics: FBModel - Transformation Data and the Scene Graph.
#include <fbmodel.h>

Public Member Functions |
|
| FBModelPath3D (char *pName, HIObject pObject=NULL) | |
| Constructor. |
|
| void | ShowCurveControls (bool pShow) |
| void | ShowCurvePoints (bool pShow) |
| int | PathKeyGetCount () |
| FBVector4d | PathKeyGet (int pKeyIndex) |
| void | PathKeySet (int pKeyIndex, FBVector4d pTLocal, bool pUpdate=true) |
| void | PathSetKeyLeftRightTangeant (int pKeyIndex, FBVector4d pKeyTLocal, FBVector4d pLeftTangentTLocal, FBVector4d pRightTangentTLocal, bool pUpdate=true) |
| Set Path 3D's Key, Key Left Tangent and Key
Right Tangent for designated index at a time. |
|
| void | PathKeyRemove (int pKeyIndex) |
| void | PathKeyClear () |
| void | PathKeySetLeftTangeant (int pKeyIndex, FBVector4d pTLocal, bool pUpdate=true) |
| void | PathKeySetRightTangeant (int pKeyIndex, FBVector4d pTLocal, bool pUpdate=true) |
| FBVector4d | PathKeyGetLeftTangeant (int pKeyIndex) |
| FBVector4d | PathKeyGetRightTangeant (int pKeyIndex) |
| void | PathKeySetXDerivative (int pKeyIndex, double pDerivative, bool pUpdate) |
| void | PathKeySetYDerivative (int pKeyIndex, double pDerivative, bool pUpdate) |
| void | PathKeySetZDerivative (int pKeyIndex, double pDerivative, bool pUpdate) |
| void | PathKeySetXYZDerivative (int pKeyIndex, FBVector4d pDerivative, bool pUpdate) |
| FBVector4d | PathKeyGetXYZDerivative (int pKeyIndex) |
| double | PatKeyGetLeftTangeantLength (int pKeyIndex) |
| double | PatKeyGetRightTangeantLength (int pKeyIndex) |
| int | GetSelectedPathKeyCount () |
| void | PathKeyRemoveSelected () |
| int | InsertNewStartKey () |
| int | InsertNewEndKey () |
| int | PathKeyStartAdd (FBVector4d pTLocal) |
| int | PathKeyEndAdd (FBVector4d pTLocal) |
| int | Total_PathKeyAdd (double pTotalPercent, FBVector4d pTLocal) |
| int | Total_IsPathKey (double pTotalPercent) |
| FBVector4d | Total_GlobalPathEvaluate (double pTotalPercent) |
| FBVector4d | Total_LocalPathEvaluate (double pTotalPercent) |
| FBVector4d | Total_GlobalPathEvaluateDerivative (double pTotalPercent) |
| FBVector4d | Total_LocalPathEvaluateDerivative (double pTotalPercent) |
| int | Segment_PathKeyAdd (double pSegmentPercent, FBVector4d pTLocal) |
| int | Segment_IsPathKey (double pSegmentPercent) |
| FBVector4d | Segment_GlobalPathEvaluate (double pSegmentPercent) |
| FBVector4d | Segment_LocalPathEvaluate (double pSegmentPercent) |
| FBVector4d | Segment_GlobalPathEvaluateDerivative (double pSegmentPercent) |
| FBVector4d | Segment_LocalPathEvaluateDerivative (double pSegmentPercent) |
| double | ConvertTotalPercentToSegmentPercent (double pPercent) |
| double | ConvertSegmentPercentToTotalPercent (double pPercent) |
| double | ConvertToSegmentPercentFactor () |
| double | ConvertToTotalPercentFactor () |
| bool | SetRightTangeantMode (int pKeyIndex, FBPathTangeantMode pTangeantMode) |
| bool | SetLeftTangeantMode (int pKeyIndex, FBPathTangeantMode pTangeantMode) |
| FBPathTangeantMode | GetRightTangeantMode (int pKeyIndex) |
| FBPathTangeantMode | GetLeftTangeantMode (int pKeyIndex) |
| void | UpdateGeometry () |
| Update Path 3D geometry explicitly. |
|
| FBModelPath3D | ( | char * | pName, |
| HIObject | pObject =
NULL |
||
| ) |
Constructor.
| pName | Name of Path 3D. |
| pObject | For internal use only(default=NULL). |
Python sample code:
Script Sample.
from pyfbsdk import *
path = FBModelPath3D("Test")
path.Show = True
der = temp.Total_LocalPathEvaluateDerivative(1)
tgMode = path.GetLeftTangeantMode(0)
temp.PathKeySetLeftTangeant(1,FBVector4d(25,25,25,25),True)
## Ajouter un Vertex
temp.PathKeyStartAdd(FBVector4d(0,0,100,0))
temp.PathKeyEndAdd(FBVector4d(100,0,0,0))
## Creer Vertex
temp.Segment_PathKeyAdd(75.0,FBVector4d(25,25,25,25))
temp.Segment_PathKeyAdd(25.0,FBVector4d(25,0,25,25))
| void ShowCurveControls | ( | bool | pShow | ) |
| void ShowCurvePoints | ( | bool | pShow | ) |
| int PathKeyGetCount | ( | ) |
| FBVector4d PathKeyGet | ( | int | pKeyIndex | ) |
| void PathKeySet | ( | int | pKeyIndex, |
| FBVector4d | pTLocal, | ||
| bool | pUpdate =
true |
||
| ) |
| void PathSetKeyLeftRightTangeant | ( | int | pKeyIndex, |
| FBVector4d | pKeyTLocal, | ||
| FBVector4d | pLeftTangentTLocal, | ||
| FBVector4d | pRightTangentTLocal, | ||
| bool | pUpdate =
true |
||
| ) |
Set Path 3D's Key, Key Left Tangent and Key Right Tangent for designated index at a time.
| pKeyIndex | Key ID to set with |
| pKeyTLocal | Vector to use to set values to Key |
| pLeftTangentTLocal | Vector to use to set values to Key Left Tangent |
| pRightTangentTLocal | Vector to use to set values to Key Right Tangent |
| pUpdate | true if geometry update is required, false if not required (default=true) |
| void PathKeyRemove | ( | int | pKeyIndex | ) |
| void PathKeyClear | ( | ) |
| void PathKeySetLeftTangeant | ( | int | pKeyIndex, |
| FBVector4d | pTLocal, | ||
| bool | pUpdate =
true |
||
| ) |
| void PathKeySetRightTangeant | ( | int | pKeyIndex, |
| FBVector4d | pTLocal, | ||
| bool | pUpdate =
true |
||
| ) |
| FBVector4d PathKeyGetLeftTangeant | ( | int | pKeyIndex | ) |
| FBVector4d PathKeyGetRightTangeant | ( | int | pKeyIndex | ) |
| void PathKeySetXDerivative | ( | int | pKeyIndex, |
| double | pDerivative, | ||
| bool | pUpdate | ||
| ) |
| void PathKeySetYDerivative | ( | int | pKeyIndex, |
| double | pDerivative, | ||
| bool | pUpdate | ||
| ) |
| void PathKeySetZDerivative | ( | int | pKeyIndex, |
| double | pDerivative, | ||
| bool | pUpdate | ||
| ) |
| void PathKeySetXYZDerivative | ( | int | pKeyIndex, |
| FBVector4d | pDerivative, | ||
| bool | pUpdate | ||
| ) |
| FBVector4d PathKeyGetXYZDerivative | ( | int | pKeyIndex | ) |
| double PatKeyGetLeftTangeantLength | ( | int | pKeyIndex | ) |
| double PatKeyGetRightTangeantLength | ( | int | pKeyIndex | ) |
| int GetSelectedPathKeyCount | ( | ) |
| void PathKeyRemoveSelected | ( | ) |
| int InsertNewStartKey | ( | ) |
| int InsertNewEndKey | ( | ) |
| int PathKeyStartAdd | ( | FBVector4d | pTLocal | ) |
| int PathKeyEndAdd | ( | FBVector4d | pTLocal | ) |
| int Total_PathKeyAdd | ( | double | pTotalPercent, |
| FBVector4d | pTLocal | ||
| ) |
| int Total_IsPathKey | ( | double | pTotalPercent | ) |
| FBVector4d Total_GlobalPathEvaluate | ( | double | pTotalPercent | ) |
| FBVector4d Total_LocalPathEvaluate | ( | double | pTotalPercent | ) |
| FBVector4d Total_GlobalPathEvaluateDerivative | ( | double | pTotalPercent | ) |
| FBVector4d Total_LocalPathEvaluateDerivative | ( | double | pTotalPercent | ) |
| int Segment_PathKeyAdd | ( | double | pSegmentPercent, |
| FBVector4d | pTLocal | ||
| ) |
| int Segment_IsPathKey | ( | double | pSegmentPercent | ) |
| FBVector4d Segment_GlobalPathEvaluate | ( | double | pSegmentPercent | ) |
| FBVector4d Segment_LocalPathEvaluate | ( | double | pSegmentPercent | ) |
| FBVector4d Segment_GlobalPathEvaluateDerivative | ( | double | pSegmentPercent | ) |
| FBVector4d Segment_LocalPathEvaluateDerivative | ( | double | pSegmentPercent | ) |
| double ConvertTotalPercentToSegmentPercent | ( | double | pPercent | ) |
| double ConvertSegmentPercentToTotalPercent | ( | double | pPercent | ) |
| double ConvertToSegmentPercentFactor | ( | ) |
| double ConvertToTotalPercentFactor | ( | ) |
| bool SetRightTangeantMode | ( | int | pKeyIndex, |
| FBPathTangeantMode | pTangeantMode | ||
| ) |
| bool SetLeftTangeantMode | ( | int | pKeyIndex, |
| FBPathTangeantMode | pTangeantMode | ||
| ) |
| FBPathTangeantMode GetRightTangeantMode | ( | int | pKeyIndex | ) |
| FBPathTangeantMode GetLeftTangeantMode | ( | int | pKeyIndex | ) |
| void UpdateGeometry | ( | ) |
Update Path 3D geometry explicitly.