Classes

deModelWeights Class Reference

Model Bone Weights. More...

#include <deModelWeights.h>

List of all members.

Classes

struct  sWeight

Public Member Functions

Constructors and Destructors
 deModelWeights ()
 Creates a new model weights.
 ~deModelWeights ()
 Cleans up the model weights.
Weights Management
int GetWeightCount () const
 Retrieves the count of weights.
int GetBoneAt (int index) const
 Retrieves the bone index at the given index.
float GetWeightAt (int index) const
 Retrieves the weight factor at the given index.
float GetWeightFor (int bone) const
 Retrieves the weight factor for the given bone index or 0 if not found.
void SetWeight (int bone, float weight)
 Sets the weight factor for a given bone.
void RemoveAllWeights ()
 Removes all weights.
void Normalize ()
 Normalizes the weights alike that all weight factors summed up equal 1.0.
bool Equals (deModelWeights *weight) const
 Determines if this model weights is equal to another one.

Detailed Description

Model Bone Weights.

Author:
Plüss Roland
Version:
1.0
Date:
2010

Constructor & Destructor Documentation

deModelWeights::deModelWeights (  )

Creates a new model weights.

deModelWeights::~deModelWeights (  )

Cleans up the model weights.


Member Function Documentation

bool deModelWeights::Equals ( deModelWeights weight ) const

Determines if this model weights is equal to another one.

int deModelWeights::GetBoneAt ( int  index ) const

Retrieves the bone index at the given index.

float deModelWeights::GetWeightAt ( int  index ) const

Retrieves the weight factor at the given index.

int deModelWeights::GetWeightCount (  ) const [inline]

Retrieves the count of weights.

float deModelWeights::GetWeightFor ( int  bone ) const

Retrieves the weight factor for the given bone index or 0 if not found.

void deModelWeights::Normalize (  )

Normalizes the weights alike that all weight factors summed up equal 1.0.

void deModelWeights::RemoveAllWeights (  )

Removes all weights.

void deModelWeights::SetWeight ( int  bone,
float  weight 
)

Sets the weight factor for a given bone.

If the bone index does not exist it is added otherwise the factor changed.


The documentation for this class was generated from the following file: