 |
OpenMesh
|
57 #ifndef OPENMESH_ATTRIBUTE_STATUS_HH
58 #define OPENMESH_ATTRIBUTE_STATUS_HH
63 #include <OpenMesh/Core/System/config.h>
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
void set_bits(unsigned int _bits)
set whole status at once
Definition: Status.hh:158
void set_tagged2(bool _b)
set tagged
Definition: Status.hh:146
void set_feature(bool _b)
set feature
Definition: Status.hh:134
bool selected() const
is selected ?
Definition: Status.hh:120
bool feature() const
is feature ?
Definition: Status.hh:132
@ SELECTED
Item is selected.
Definition: Status.hh:83
@ TAGGED2
Alternate bit for tagging an item.
Definition: Status.hh:87
bool hidden() const
is hidden ?
Definition: Status.hh:126
Definition: Status.hh:100
unsigned int bits() const
return whole status
Definition: Status.hh:156
StatusBits
Status bits used by the Status class.
Definition: Status.hh:79
void unset_bit(unsigned int _s)
unset a certain bit
Definition: Status.hh:166
@ FEATURE
Item is a feature or belongs to a feature.
Definition: Status.hh:85
void set_fixed_nonmanifold(bool _b)
set fixed non-manifold
Definition: Status.hh:152
bool deleted() const
is deleted ?
Definition: Status.hh:108
void change_bit(unsigned int _s, bool _b)
set or unset a certain bit
Definition: Status.hh:168
@ DELETED
Item has been deleted.
Definition: Status.hh:81
bool is_bit_set(unsigned int _s) const
is a certain bit set ?
Definition: Status.hh:162
bool tagged2() const
is tagged2 ? This is just one more tag info.
Definition: Status.hh:144
@ LOCKED
Item is locked.
Definition: Status.hh:82
bool fixed_nonmanifold() const
is fixed non-manifold ?
Definition: Status.hh:150
@ TAGGED
Item is tagged.
Definition: Status.hh:86
Martin, 26.12.2004: 1) replaced resize(size()-1) with pop_back(), since the later is more efficient 2...
Definition: MeshItems.hh:64
void set_hidden(bool _b)
set hidden
Definition: Status.hh:128
void set_locked(bool _b)
set locked
Definition: Status.hh:116
void set_tagged(bool _b)
set tagged
Definition: Status.hh:140
@ UNUSED
Unused.
Definition: Status.hh:89
void set_deleted(bool _b)
set deleted
Definition: Status.hh:110
void set_selected(bool _b)
set selected
Definition: Status.hh:122
bool tagged() const
is tagged ?
Definition: Status.hh:138
void set_bit(unsigned int _s)
set a certain bit
Definition: Status.hh:164
bool locked() const
is locked ?
Definition: Status.hh:114
@ FIXEDNONMANIFOLD
Item was non-two-manifold and had to be fixed.
Definition: Status.hh:88
@ HIDDEN
Item is hidden.
Definition: Status.hh:84
Project OpenMesh,
© Computer Graphics Group, RWTH Aachen.
Documentation generated using
doxygen
.