Open Reality Reference Guide
|
|
Go to the documentation of this file. 1 #ifndef __FBMODEL_PATH3D_H__
2 #define __FBMODEL_PATH3D_H__
43 #include <kaydaradef.h>
46 #define FBSDK_DLL K_DLLIMPORT
53 #ifdef FBSDKUseNamespace
54 namespace FBSDKNamespace {
410 #ifdef FBSDKUseNamespace
FBVector4d Segment_GlobalPathEvaluateDerivative(double pSegmentPercent, FBEvaluateInfo *pEvaluateInfo=NULL)
Get the path's derivative at a particular point within the curve, in global coordinates.
double ConvertSegmentPercentToTotalPercent(double pPercent, FBEvaluateInfo *pEvaluateInfo=NULL)
Converting one key type Segment (time) to Total (percent).
void PathKeyRemove(int pKeyIndex)
Remove key at a particular index.
FBVector4d PathKeyGet(int pKeyIndex)
Get path's key vector for at a particular key index.
void ShowCurvePoints(bool pShow)
Enable or disable displaying Curve Points for the 3D model path.
void PathKeySet(int pKeyIndex, FBVector4d pTLocal, bool pUpdate=true)
Set the local coordinate vector values for path at a particular key index.
FBPropertyDouble TextScale
Read Write Property: Path Length label display scale.
class K_DLLIMPORT FBPropertyBaseAnimatable< FBColor, kFBPT_ColorRGB > FBPropertyAnimatableColor
FBPropertyAnimatableColor type definition.
FBVector4d Segment_GlobalPathEvaluate(double pSegmentPercent, FBEvaluateInfo *pEvaluateInfo=NULL)
Get the path's vector at a particular point within the curve, in global coordinates.
double ConvertToTotalPercentFactor()
Get factor for multiplying the derivative of a key for total mode.
#define FBSDK_DLL
Be sure that FBSDK_DLL is defined only once...
FBPropertyString PathLengthInString
Read Only Property: Path Length Display String According To The Current Unit.
FBModelPath3D(const char *pName, HIObject pObject=NULL)
Constructor.
int GetSelectedPathKeyCount()
Query the number of keys present in the selected path.
class K_DLLIMPORT FBPropertyBase< double, kFBPT_double > FBPropertyDouble
Property: double
int Segment_IsPathKey(double pSegmentPercent, FBEvaluateInfo *pEvaluateInfo=NULL)
Query whether a percentage value has a key associated at that point in the path.
FBVector4d PathKeyGetLeftTangent(int pKeyIndex)
Get the path key left tangent's vector value for designated index.
FBVector4d Segment_LocalPathEvaluate(double pSegmentPercent, FBEvaluateInfo *pEvaluateInfo=NULL)
Get the path's vector at a particular point within the curve, in local coordinates.
FBVector4d PathKeyGetXYZDerivative(int pKeyIndex)
Get vector in XYZ coordinates for a path tangent.
FBVector4d Total_GlobalPathEvaluate(double pTotalPercent, FBEvaluateInfo *pEvaluateInfo=NULL)
Get the path's vector at a particular point within the curve, in global coordinates.
int PathKeyGetCount()
Query the number of keys present in the path.
void PathKeyRemoveSelected()
Remove the selected keys from the path.
int PathKeyEndAdd(FBVector4d pTLocal)
Adds a new key to the end of the path (with time gap of 1 sec).
double ConvertTotalPercentToSegmentPercent(double pPercent, FBEvaluateInfo *pEvaluateInfo=NULL)
Converting one key type Total (percent) to Segment (time).
class K_DLLIMPORT FBPropertyBase< FBColorAndAlpha, kFBPT_ColorRGBA > FBPropertyColorAndAlpha
FBPropertyColorAndAlpha type definition.
int InsertNewStartKey()
Insert a new key at the start of the path.
EKeyPropertyBehavior
Key property behavior.
FBPropertyDouble PathLength
Read Only Property: Path Length In Centimeter.
void PathKeySetLeftTangent(int pKeyIndex, FBVector4d pTLocal, bool pUpdate=true)
Set path's key left tangent vector for designated index.
FBProperty * PathKeyGetProperty(int pKeyIndex)
Get the path key's corresponding property.
#define __FBClassDeclare(Name, Parent)
For internal use only.
void PathKeySetLeftRightTangent(int pKeyIndex, FBVector4d pKeyTLocal, FBVector4d pLeftTangentTLocal, FBVector4d pRightTangentTLocal, bool pUpdate=true)
Set path's vectors for key, left tangent and right tangent at a particular key index.
Property: Base property class.
FBPropertyColorAndAlpha TextBackground
Read Write Property: Path Length label display background color.
#define __FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.
FBVector4d PathKeyGetRightTangent(int pKeyIndex)
Get the path key right tangent's vector value for designated index.
FBVector4d Total_LocalPathEvaluateDerivative(double pTotalPercent, FBEvaluateInfo *pEvaluateInfo=NULL)
Get the path's derivative at a particular point within the curve, in local coordinates.
int PathKeyStartAdd(FBVector4d pTLocal)
Adds a new key to the start of the path (with time gap of 1 sec).
FBVector4d Total_GlobalPathEvaluateDerivative(double pTotalPercent, FBEvaluateInfo *pEvaluateInfo=NULL)
Get the path's derivative at a particular point within the curve, in global coordinates.
void PathKeyClear()
Clear the path keys.
@ eLegacyVector4
2014, 2015, 2016. Key property type is Vector4.
FBVector4d Total_LocalPathEvaluate(double pTotalPercent, FBEvaluateInfo *pEvaluateInfo=NULL)
Get the path's vector at a particular point within the curve, in local coordinates.
void PathKeySetYDerivative(int pKeyIndex, double pDerivative, bool pUpdate)
Set derivative in Y coordinate for a path tangent.
class K_DLLIMPORT FBVector4< double > FBVector4d
4D vector
PropertyPathEndCapStyle PathEndCapStyle
Read Write Property: Path end cap display style.
void PathKeySetZDerivative(int pKeyIndex, double pDerivative, bool pUpdate)
Set derivative in Z coordinate for a path tangent.
ELengthUnitType
Path Length Unit enum.
FBPropertyBool PathLengthShow
Read Write Property: Path length label display or not.
void PathKeySetRightTangent(int pKeyIndex, FBVector4d pTLocal, bool pUpdate=true)
Set 3D path's key right tangent vector for designated index.
bool PathKeySetControlNode(int pKeyIndex, FBModel *pControlNode)
Set the path key's control node.
void PathKeySetXDerivative(int pKeyIndex, double pDerivative, bool pUpdate)
Set derivative in X coordinate for a path tangent.
FBPropertyBool AutoControlNode
Read Write Property: Automatically create key control nodes.
void ShowCurveControls(bool pShow)
Enable or disable displaying Curve Controls for the 3D model path.
double PathKeyGetLeftTangentLength(int pKeyIndex)
Query the length of the left tangent.
class K_DLLIMPORT FBPropertyBase< bool, kFBPT_bool > FBPropertyBool
Property: bool
void PathKeySetXYZDerivative(int pKeyIndex, FBVector4d pDerivative, bool pUpdate)
Set derivative in XYZ coordinates for a path tangent.
double PathKeyGetRightTangentLength(int pKeyIndex)
Query the value of the right tangent.
Contains definitions for devices, boxes and models.
FBPropertyAnimatableColor Color
Read Write Property: Path display color in viewport.
PropertyUnitType PathLengthUnit
Read Write Property: Path Length Unit.
int PathKeyInsertAfter(int pKeyIndex, FBVector4d pTLocal)
Adds a new key immediately after the specified key ID (with time gap of 1 sec).
PropertyKeyPropertyBehavior KeyPropertyBehavior
Read Only Property: Key property behavior.
double ConvertToSegmentPercentFactor()
Get factor for multiplying the derivative of a key for segment mode.
EPathEndCapStyle
Path end cap style enum.
FBPropertyDouble PathEndCapScale
Read Write Property: Path end cap display scale.
FBModel * PathKeyGetControlNode(int pKeyIndex)
Get the path key's control node.
AnimationNodeNotify evaluation information.
int InsertNewEndKey()
Insert a new key at the end of the path.
FBVector4d Segment_LocalPathEvaluateDerivative(double pSegmentPercent, FBEvaluateInfo *pEvaluateInfo=NULL)
Get the path's derivative at a particular point within the curve, in local coordinates.
Property class: const char * (String).
void UpdateGeometry()
Update path geometry explicitly.
int Total_IsPathKey(double pTotalPercent, FBEvaluateInfo *pEvaluateInfo=NULL)
Query whether a percentage value has a key associated at that point in the path.