52 #ifndef OPENMESH_ATTRIBUTE_STATUS_HH 53 #define OPENMESH_ATTRIBUTE_STATUS_HH 58 #include <OpenMesh/Core/System/config.h> 65 namespace Attributes {
98 typedef unsigned int value_type;
151 unsigned int bits()
const {
return status_; }
153 void set_bits(
unsigned int _bits) { status_ = _bits; }
157 bool is_bit_set(
unsigned int _s)
const {
return (status_ & _s) > 0; }
159 void set_bit(
unsigned int _s) { status_ |= _s; }
164 if (_b) status_ |= _s;
else status_ &= ~_s; }
177 #endif // OPENMESH_ATTRIBUTE_STATUS_HH defined Item has been deleted.
Definition: Status.hh:76
void set_hidden(bool _b)
set hidden
Definition: Status.hh:123
void set_deleted(bool _b)
set deleted
Definition: Status.hh:105
Item is tagged.
Definition: Status.hh:81
Add status information to a base class.
Definition: Status.hh:94
unsigned int bits() const
return whole status
Definition: Status.hh:151
bool tagged() const
is tagged ?
Definition: Status.hh:133
bool is_bit_set(unsigned int _s) const
is a certain bit set ?
Definition: Status.hh:157
void unset_bit(unsigned int _s)
unset a certain bit
Definition: Status.hh:161
bool hidden() const
is hidden ?
Definition: Status.hh:121
Item is selected.
Definition: Status.hh:78
Alternate bit for tagging an item.
Definition: Status.hh:82
void set_tagged(bool _b)
set tagged
Definition: Status.hh:135
void set_locked(bool _b)
set locked
Definition: Status.hh:111
void change_bit(unsigned int _s, bool _b)
set or unset a certain bit
Definition: Status.hh:163
void set_tagged2(bool _b)
set tagged
Definition: Status.hh:141
StatusBits
Status bits used by the Status class.
Definition: Status.hh:74
void set_selected(bool _b)
set selected
Definition: Status.hh:117
bool tagged2() const
is tagged2 ? This is just one more tag info.
Definition: Status.hh:139
bool feature() const
is feature ?
Definition: Status.hh:127
Item is a feature or belongs to a feature.
Definition: Status.hh:80
Item is locked.
Definition: Status.hh:77
Item is hidden.
Definition: Status.hh:79
void set_feature(bool _b)
set feature
Definition: Status.hh:129
bool selected() const
is selected ?
Definition: Status.hh:115
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:59
void set_bits(unsigned int _bits)
set whole status at once
Definition: Status.hh:153
void set_bit(unsigned int _s)
set a certain bit
Definition: Status.hh:159
Unused.
Definition: Status.hh:84
bool locked() const
is locked ?
Definition: Status.hh:109
Item was non-two-manifold and had to be fixed.
Definition: Status.hh:83
void set_fixed_nonmanifold(bool _b)
set fixed non-manifold
Definition: Status.hh:147
bool deleted() const
is deleted ?
Definition: Status.hh:103
bool fixed_nonmanifold() const
is fixed non-manifold ?
Definition: Status.hh:145