JointWeight Class Reference

#include <c4d_jointweight.h>

Classes

class  JointWeightData
 

Public Member Functions

 JointWeight ()
 
 ~JointWeight ()
 
Bool Write (HyperFile *hf)
 
Bool Read (HyperFile *hf)
 
Bool CopyTo (JointWeight *dst) const
 
Float GetWeight (Int32 wi, Bool direct=false)
 
Bool SetWeight (Int32 wi, Float w, Bool direct=false)
 
Bool SetWeights (Float32 *weights, Int32 count)
 
Bool SetWeights (Float64 *weights, Int32 count)
 
Bool SetWeights (UInt16 *weights, Int32 count)
 
void FillWeights (Float32 *weights, Int32 count)
 
void FillWeights (Float64 *weights, Int32 count)
 
void FillWeights (UInt16 *weights, Int32 count)
 
Bool InitCache (Int32 count, Bool readonly=false)
 
Bool FreeCache (Bool set)
 
void Free ()
 
Bool HasCache ()
 
Int32 GetCount ()
 
Int32 GetPointCount ()
 
void GetIndexWeight (Int32 i, Int32 &wi, Float &w)
 
Bool ShiftWeights (Int32 offset, Int32 cnt)
 
void LockRead ()
 
void UnlockRead ()
 
void LockWrite ()
 
void UnlockWrite ()
 
Int32 GetSegments ()
 
UInt16 GetTableWeight (Int32 i)
 

Private Member Functions

void _Free ()
 
Bool _FreeCache (Bool set)
 
void _FillWeights (Float64 *weights, Int32 count)
 
void _FillWeights (Float32 *weights, Int32 count)
 
void _FillWeights (UInt16 *weights, Int32 count)
 
void IndexWeights ()
 
Int32 GetWeightIndex (Int32 wi)
 

Private Attributes

SelectBitArray m_Select
 
SelectArrayExt< JointWeightDatam_Index
 
UInt16m_pWeight
 
GeRWSpinlock m_Lock
 
UInt16m_pCache
 
Int32 m_CacheCount
 
Int32 m_CacheFlags
 
Int32 m_CacheLowIndex
 
Int32 m_CacheUsed
 

Detailed Description

Private.

Constructor & Destructor Documentation

◆ JointWeight()

◆ ~JointWeight()

Member Function Documentation

◆ Write()

Bool Write ( HyperFile hf)

◆ Read()

Bool Read ( HyperFile hf)

◆ CopyTo()

Bool CopyTo ( JointWeight dst) const

◆ GetWeight()

Float GetWeight ( Int32  wi,
Bool  direct = false 
)

◆ SetWeight()

Bool SetWeight ( Int32  wi,
Float  w,
Bool  direct = false 
)

◆ SetWeights() [1/3]

Bool SetWeights ( Float32 weights,
Int32  count 
)

◆ SetWeights() [2/3]

Bool SetWeights ( Float64 weights,
Int32  count 
)

◆ SetWeights() [3/3]

Bool SetWeights ( UInt16 weights,
Int32  count 
)

◆ FillWeights() [1/3]

void FillWeights ( Float32 weights,
Int32  count 
)

◆ FillWeights() [2/3]

void FillWeights ( Float64 weights,
Int32  count 
)

◆ FillWeights() [3/3]

void FillWeights ( UInt16 weights,
Int32  count 
)

◆ InitCache()

Bool InitCache ( Int32  count,
Bool  readonly = false 
)

◆ FreeCache()

Bool FreeCache ( Bool  set)

◆ Free()

void Free ( )

◆ HasCache()

Bool HasCache ( )

◆ GetCount()

Int32 GetCount ( )

◆ GetPointCount()

Int32 GetPointCount ( )

◆ GetIndexWeight()

void GetIndexWeight ( Int32  i,
Int32 wi,
Float w 
)

◆ ShiftWeights()

Bool ShiftWeights ( Int32  offset,
Int32  cnt 
)

◆ LockRead()

void LockRead ( )

◆ UnlockRead()

void UnlockRead ( )

◆ LockWrite()

void LockWrite ( )

◆ UnlockWrite()

void UnlockWrite ( )

◆ GetSegments()

Int32 GetSegments ( )

◆ GetTableWeight()

UInt16 GetTableWeight ( Int32  i)

◆ _Free()

void _Free ( )
private

◆ _FreeCache()

Bool _FreeCache ( Bool  set)
private

◆ _FillWeights() [1/3]

void _FillWeights ( Float64 weights,
Int32  count 
)
private

◆ _FillWeights() [2/3]

void _FillWeights ( Float32 weights,
Int32  count 
)
private

◆ _FillWeights() [3/3]

void _FillWeights ( UInt16 weights,
Int32  count 
)
private

◆ IndexWeights()

void IndexWeights ( )
private

◆ GetWeightIndex()

Int32 GetWeightIndex ( Int32  wi)
private

Member Data Documentation

◆ m_Select

SelectBitArray m_Select
private

◆ m_Index

SelectArrayExt<JointWeightData> m_Index
private

◆ m_pWeight

UInt16* m_pWeight
private

◆ m_Lock

GeRWSpinlock m_Lock
private

◆ m_pCache

UInt16* m_pCache
private

◆ m_CacheCount

Int32 m_CacheCount
private

◆ m_CacheFlags

Int32 m_CacheFlags
private

◆ m_CacheLowIndex

Int32 m_CacheLowIndex
private

◆ m_CacheUsed

Int32 m_CacheUsed
private