12 BMaxFrameNode(
BMaxParser* pParser, int16 x_, int16 y_, int16 z_, int32 template_id_, int32 block_data_, int32 boneIndex);
16 int64 GetParentIndex()
const;
17 void SetParentIndex(int64 val);
25 virtual void SetBoneIndex(
int nIndex);
29 int GetParentBoneIndex();
30 void SetIndex(
int nIndex);
40 virtual void SetColor(DWORD val);
47 int64 GetChildIndex();
Vector3 GetAxis()
get the bone axis.
Definition: BMaxFrameNode.cpp:34
int GetChildCount()
get child bone count
Definition: BMaxFrameNode.cpp:261
void AutoSetBoneName()
we will automatically set the bone name according to topology, if it is not set before.
Definition: BMaxFrameNode.cpp:97
DWORD CalculateBoneColor()
the bone's color if not calculated before.
Definition: BMaxFrameNode.cpp:204
different physics engine has different winding order.
Definition: EventBinding.h:32
bool IsAncestorOf(BMaxFrameNode *pChild)
Returns true if this object is a parent, (or grandparent and so on to any level), of the given child...
Definition: BMaxFrameNode.cpp:178
a single animated bone, it contains both the bone instance data and all animation data of the bone...
Definition: ParaXBone.h:15
Standard 3-dimensional vector.
Definition: ParaVector3.h:16
bool BreakCycles()
if bone chain is recursive, we will break it.
Definition: BMaxFrameNode.cpp:192
int64 GetChildIndexOf(BMaxFrameNode *pChild)
-1 if not found.
Definition: BMaxFrameNode.cpp:275
base class for a block in bmax model
Definition: BMaxNode.h:14
virtual DWORD GetColor()
get the bone color
Definition: BMaxFrameNode.cpp:246
The ref_ptr class template stores a pointer to a dynamically allocated (AssetEntity|CRefCounted|BaseA...
Definition: PERefPtr.h:13
Block Max file format parser.
Definition: BMaxParser.h:27
void AddChild(BMaxFrameNode *pNode)
add child node
Definition: BMaxFrameNode.cpp:292
virtual BMaxFrameNode * ToBoneNode()
get the bone node interface if it is
Definition: BMaxFrameNode.cpp:173
virtual int GetBoneIndex()
return the index of first bone, return -1 if no bone is binded to this node
Definition: BMaxFrameNode.cpp:41
ParaEngine::Bone * GetParentBone(bool bRefresh=true)
Definition: BMaxFrameNode.cpp:303
vector< int64 > m_children
child node position index
Definition: BMaxFrameNode.h:63
bone node in bmax
Definition: BMaxFrameNode.h:9