57 #ifndef OPENMESH_ATTRIBUTE_STATUS_HH 58 #define OPENMESH_ATTRIBUTE_STATUS_HH 70 namespace Attributes {
103 typedef unsigned int value_type;
156 unsigned int bits()
const {
return status_; }
158 void set_bits(
unsigned int _bits) { status_ = _bits; }
162 bool is_bit_set(
unsigned int _s)
const {
return (status_ & _s) > 0; }
164 void set_bit(
unsigned int _s) { status_ |= _s; }
169 if (_b) status_ |= _s;
else status_ &= ~_s; }
182 #endif // OPENMESH_ATTRIBUTE_STATUS_HH defined unsigned int bits() const
return whole status
bool fixed_nonmanifold() const
is fixed non-manifold ?
bool deleted() const
is deleted ?
void change_bit(unsigned int _s, bool _b)
set or unset a certain bit
void set_fixed_nonmanifold(bool _b)
set fixed non-manifold
Item was non-two-manifold and had to be fixed.
void set_bit(unsigned int _s)
set a certain bit
void set_tagged2(bool _b)
set tagged
bool tagged() const
is tagged ?
void set_feature(bool _b)
set feature
void set_hidden(bool _b)
set hidden
void unset_bit(unsigned int _s)
unset a certain bit
bool feature() const
is feature ?
void set_bits(unsigned int _bits)
set whole status at once
bool tagged2() const
is tagged2 ? This is just one more tag info.
void set_selected(bool _b)
set selected
bool selected() const
is selected ?
void set_deleted(bool _b)
set deleted
Item is a feature or belongs to a feature.
bool hidden() const
is hidden ?
Alternate bit for tagging an item.
bool is_bit_set(unsigned int _s) const
is a certain bit set ?
bool locked() const
is locked ?
void set_tagged(bool _b)
set tagged
void set_locked(bool _b)
set locked