|
Developer Documentation
|
Smart Tagger. More...
#include <ACG/Mesh/SmartTaggerT.hh>
Public Member Functions | |
| SmartTaggerT (Mesh &_mesh, unsigned int _tag_range=1) | |
| Constructor. | |
| ~SmartTaggerT () | |
| Destructor. | |
| void | untag_all () |
| untag all elements More... | |
| void | untag_all (const unsigned int _new_tag_range) |
| untag all elements and set new tag_range More... | |
| void | set_tag (const EHandle _eh, unsigned int _tag=1) |
| set tag to a value in [0..tag_range] More... | |
| unsigned int | get_tag (const EHandle _eh) const |
| get tag value in range [0..tag_range] More... | |
| bool | is_tagged (const EHandle _eh) const |
| overloaded member for boolean tags More... | |
| void | set_tag_range (const unsigned int _tag_range) |
| set new tag range and untag_all More... | |
Protected Member Functions | |
| void | all_tags_to_zero () |
Protected Attributes | |
| Mesh & | mesh_ |
| EPHandle | ep_tag_ |
| unsigned int | current_base_ |
| unsigned int | tag_range_ |
Smart Tagger.
A tagger class to be used on OpenMesh. It provides an O(1) reset function for the property.
Usage:
Definition at line 113 of file SmartTaggerT.hh.
|
inline |
get tag value in range [0..tag_range]
| _eh | Edge handle for the tag |
Definition at line 159 of file SmartTaggerT.cc.
|
inline |
overloaded member for boolean tags
| _eh | Edge handle for the tag |
Definition at line 179 of file SmartTaggerT.cc.
|
inline |
set tag to a value in [0..tag_range]
| _eh | Edge handle for the tag |
| _tag | Tag value |
Definition at line 142 of file SmartTaggerT.cc.
|
inline |
set new tag range and untag_all
Set new tag range and reset tagger
| _tag_range | New tag range of the tagger |
Definition at line 191 of file SmartTaggerT.cc.
|
inline |
untag all elements
Definition at line 107 of file SmartTaggerT.cc.
|
inline |
untag all elements and set new tag_range
| _new_tag_range | New tag range of the tagger |
Definition at line 131 of file SmartTaggerT.cc.