VertexElementMap Class Reference

#include <VertexElementMap.hpp>

Collaboration diagram for VertexElementMap:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 VertexElementMap (unsigned size)
void Resize (unsigned size)
void ResetToIdentity ()
void SetNewIndex (unsigned oldIndex, unsigned newIndex)
void SetDeleted (unsigned index)
bool IsDeleted (unsigned index)
unsigned GetNewIndex (unsigned oldIndex) const
bool IsIdentityMap ()
unsigned Size ()

Private Attributes

std::vector< unsignedmMap

Detailed Description

VertexElementMap class used when remeshing. The map associates the indices of VertexElements in the old mesh with indices of VertexElements in the new mesh.

Definition at line 40 of file VertexElementMap.hpp.


Constructor & Destructor Documentation

VertexElementMap::VertexElementMap ( unsigned  size  ) 

Constructor.

Parameters:
size the size of the VertexElementMap

Definition at line 38 of file VertexElementMap.cpp.

References mMap.


Member Function Documentation

unsigned VertexElementMap::GetNewIndex ( unsigned  oldIndex  )  const

Get the new index associated with a given old index.

Parameters:
oldIndex the old index of a VertexElement

Definition at line 71 of file VertexElementMap.cpp.

References mMap.

bool VertexElementMap::IsDeleted ( unsigned  index  ) 

Get whether a given old index is marked as 'deleted'.

Parameters:
index the old index of a VertexElement

Definition at line 66 of file VertexElementMap.cpp.

References mMap.

bool VertexElementMap::IsIdentityMap (  ) 

Get whether the VertexElementMap is the identity map.

Definition at line 80 of file VertexElementMap.cpp.

References mMap.

void VertexElementMap::ResetToIdentity (  ) 

Reset the VertexElementMap to the identity map.

Definition at line 48 of file VertexElementMap.cpp.

References mMap.

void VertexElementMap::Resize ( unsigned  size  ) 

Resize the VertexElementMap.

Parameters:
size the new size of the VertexElementMap

Definition at line 43 of file VertexElementMap.cpp.

References mMap.

void VertexElementMap::SetDeleted ( unsigned  index  ) 

Mark a given old index as 'deleted' by associating it with the new index UINT_MAX.

Parameters:
index the old index of a VertexElement

Definition at line 61 of file VertexElementMap.cpp.

References mMap.

void VertexElementMap::SetNewIndex ( unsigned  oldIndex,
unsigned  newIndex 
)

Associate a given old index with a new index.

Parameters:
oldIndex the old index of a VertexElement
newIndex the new index of a VertexElement

Definition at line 56 of file VertexElementMap.cpp.

References mMap.

unsigned VertexElementMap::Size (  ) 

Get the size of the VertexElementMap.

Definition at line 92 of file VertexElementMap.cpp.

References mMap.


Member Data Documentation

std::vector<unsigned> VertexElementMap::mMap [private]

The map is stored as an ordered vector of VertexElement indices.

Definition at line 45 of file VertexElementMap.hpp.

Referenced by GetNewIndex(), IsDeleted(), IsIdentityMap(), ResetToIdentity(), Resize(), SetDeleted(), SetNewIndex(), Size(), and VertexElementMap().


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

Generated by  doxygen 1.6.2