Public Types | Public Member Functions | Public Attributes

xl7::direct3d::models::Assignment Class Reference

#include <Assignment.h>

List of all members.

Public Types

typedef std::vector< WeightWeights
typedef std::vector< Weight >
::iterator 
WeightIterator

Public Member Functions

 Assignment (void)
 Assignment (Index vertex_index)
 ~Assignment (void)
 Assignment (const Assignment &rhs)
Assignmentoperator= (const Assignment &rhs)
void swap (Assignment &rhs)
Index GetVertexIndex () const
void SetVertexIndex (Index vertex_index)
const WeightsGetWeights () const
WeightsGetWeights ()
void FixWeights ()
bool operator< (const Assignment &rhs) const
bool operator== (const Assignment &rhs) const
bool operator!= (const Assignment &rhs) const

Public Attributes

friend ModelFile

Member Typedef Documentation


Constructor & Destructor Documentation

xl7::direct3d::models::Assignment::Assignment ( void   ) 

Default constructor.

xl7::direct3d::models::Assignment::Assignment ( Index  vertex_index  ) 

Explicit constructor.

xl7::direct3d::models::Assignment::~Assignment ( void   ) 

Destructor.

xl7::direct3d::models::Assignment::Assignment ( const Assignment rhs  ) 

Copy constructor.


Member Function Documentation

void xl7::direct3d::models::Assignment::FixWeights (  ) 

Fixes the assigned weighted joints: 0-biased joints are eliminated; the sum of biases is forced to be 1.

Index xl7::direct3d::models::Assignment::GetVertexIndex (  )  const [inline]

Returns the index of the vertex.

const Weights* xl7::direct3d::models::Assignment::GetWeights (  )  const [inline]

Returns the weights of the joints the vertex is assigned to (and the joints themselves).

Weights* xl7::direct3d::models::Assignment::GetWeights (  )  [inline]

Returns the weights of the joints the vertex is assigned to (and the joints themselves).

bool xl7::direct3d::models::Assignment::operator!= ( const Assignment rhs  )  const
bool xl7::direct3d::models::Assignment::operator< ( const Assignment rhs  )  const
Assignment & xl7::direct3d::models::Assignment::operator= ( const Assignment rhs  ) 

Copy assignment operator.

bool xl7::direct3d::models::Assignment::operator== ( const Assignment rhs  )  const
void xl7::direct3d::models::Assignment::SetVertexIndex ( Index  vertex_index  )  [inline]

Sets the index of the vertex.

void xl7::direct3d::models::Assignment::swap ( Assignment rhs  ) 

Swap operation.


Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines