The PC_Chords class gives efficient access to each coord (relative to a face). More...
#include <polygon_polychord_collapse.h>
Public Member Functions | |
bool | End () |
End says if an end has been reached. | |
void | GetCurrent (std::pair< size_t, unsigned char > &face_edge) |
GetCurrent returns the current FaceType pointer and edge. | |
void | Next () |
Next, if it's not at the end, it goes to the next coord. | |
PC_Chord & | operator[] (const std::pair< size_t, unsigned char > &face_edge) |
operator [], given a face index and an offset, it returns (a reference to) its corresponding PC_Chord. | |
const PC_Chord & | operator[] (const std::pair< size_t, unsigned char > &face_edge) const |
operator [], given a face index and an offset, it returns (a const reference to) its corresponding PC_Chord. | |
std::pair< size_t, unsigned char > | operator[] (PC_Chord const *const coord) |
operator [], given a coord, it returns its corresponding face index and edge. | |
PC_Chords (const PolyMeshType &mesh) | |
PC_Chords constructor. | |
void | Reset (const PolyMeshType &mesh) |
Reset rearrages the container. | |
void | ResetMarks () |
ResetMarks. | |
void | UpdateCoord (PC_Chord &coord, const unsigned long mark, const PC_ResultCode resultCode) |
UpdateCoord updates the coord information and links. | |
Private Attributes | |
std::vector< PC_Chord > | _Chords |
PC_Chord * | _currentChord |
The PC_Chords class gives efficient access to each coord (relative to a face).
Definition at line 103 of file polygon_polychord_collapse.h.
vcg::tri::PolychordCollapse< PolyMeshType >::PC_Chords::PC_Chords | ( | const PolyMeshType & | mesh | ) | [inline] |
PC_Chords constructor.
mesh |
Definition at line 110 of file polygon_polychord_collapse.h.
bool vcg::tri::PolychordCollapse< PolyMeshType >::PC_Chords::End | ( | ) | [inline] |
End says if an end has been reached.
Definition at line 249 of file polygon_polychord_collapse.h.
void vcg::tri::PolychordCollapse< PolyMeshType >::PC_Chords::GetCurrent | ( | std::pair< size_t, unsigned char > & | face_edge | ) | [inline] |
GetCurrent returns the current FaceType pointer and edge.
face_edge | A std::pair where to store the FaceType pointer and the edge index. |
Definition at line 235 of file polygon_polychord_collapse.h.
void vcg::tri::PolychordCollapse< PolyMeshType >::PC_Chords::Next | ( | ) | [inline] |
Next, if it's not at the end, it goes to the next coord.
Definition at line 226 of file polygon_polychord_collapse.h.
PC_Chord& vcg::tri::PolychordCollapse< PolyMeshType >::PC_Chords::operator[] | ( | const std::pair< size_t, unsigned char > & | face_edge | ) | [inline] |
operator [], given a face index and an offset, it returns (a reference to) its corresponding PC_Chord.
face_edge | A std::pair<size_t, unsigned char>(face_index, offset). The offset should be 0 or 1. |
Definition at line 181 of file polygon_polychord_collapse.h.
const PC_Chord& vcg::tri::PolychordCollapse< PolyMeshType >::PC_Chords::operator[] | ( | const std::pair< size_t, unsigned char > & | face_edge | ) | const [inline] |
operator [], given a face index and an offset, it returns (a const reference to) its corresponding PC_Chord.
face_edge | A std::pair<size_t, unsigned char>(face_index, offset). The offset should be 0 or 1. |
Definition at line 190 of file polygon_polychord_collapse.h.
std::pair<size_t, unsigned char> vcg::tri::PolychordCollapse< PolyMeshType >::PC_Chords::operator[] | ( | PC_Chord const *const | coord | ) | [inline] |
operator [], given a coord, it returns its corresponding face index and edge.
coord | The coord pointer. |
Definition at line 200 of file polygon_polychord_collapse.h.
void vcg::tri::PolychordCollapse< PolyMeshType >::PC_Chords::Reset | ( | const PolyMeshType & | mesh | ) | [inline] |
Reset rearrages the container.
mesh |
Definition at line 127 of file polygon_polychord_collapse.h.
void vcg::tri::PolychordCollapse< PolyMeshType >::PC_Chords::ResetMarks | ( | ) | [inline] |
ResetMarks.
Definition at line 117 of file polygon_polychord_collapse.h.
void vcg::tri::PolychordCollapse< PolyMeshType >::PC_Chords::UpdateCoord | ( | PC_Chord & | coord, |
const unsigned long | mark, | ||
const PC_ResultCode | resultCode | ||
) | [inline] |
UpdateCoord updates the coord information and links.
coord | The coord to update. |
mark | The mark of the polychord. |
resultCode | The code for the type of the polychord. |
Definition at line 211 of file polygon_polychord_collapse.h.
std::vector<PC_Chord> vcg::tri::PolychordCollapse< PolyMeshType >::PC_Chords::_Chords [private] |
Definition at line 254 of file polygon_polychord_collapse.h.
PC_Chord* vcg::tri::PolychordCollapse< PolyMeshType >::PC_Chords::_currentChord [private] |
Definition at line 255 of file polygon_polychord_collapse.h.