Om
1.0.0
A universal framework for multimedia simulation
|
A class that encapsulates the different boolean flags that an spatial object can have. More...
#include <omEditorSpatialObjectFlags.h>
Public Types | |
enum | Flag { UNDEFINED = 0, SELECTABLE = (1 << 0), TRANSFORMABLE = (1 << 1), DEFAULT = SELECTABLE } |
An enum that specifies the different spatial object flags. More... | |
Public Member Functions | |
OM_INLINE | SpatialObjectFlags () |
Create a new spatial object flags object with no flags set. More... | |
OM_INLINE | SpatialObjectFlags (Flag flag) |
Create a new spatial object flags object with the specified flag value initially set. More... | |
OM_INLINE | SpatialObjectFlags (UInt32 newFlags) |
Create a new spatial object flags object with the specified initial combined flags value. More... | |
OM_INLINE | operator UInt32 () const |
Convert this spatial object flags object to an integer value. More... | |
OM_INLINE Bool | isSet (Flag flag) const |
Return whether or not the specified flag value is set for this flags object. More... | |
OM_INLINE void | set (Flag flag, Bool newIsSet) |
Set whether or not the specified flag value is set for this flags object. More... | |
A class that encapsulates the different boolean flags that an spatial object can have.
These flags provide boolean information about an spatial object. Flags are indicated by setting a single bit of a 32-bit unsigned integer to 1.
Enum values for the different flags are defined as members of the class. Typically, the user would bitwise-OR the flag enum values together to produce a final set of set flags.
An enum that specifies the different spatial object flags.
|
inline |
Create a new spatial object flags object with no flags set.
Create a new spatial object flags object with the specified flag value initially set.
Create a new spatial object flags object with the specified initial combined flags value.
Convert this spatial object flags object to an integer value.
This operator is provided so that the AcousticFlags object can be used as an integer value for bitwise logical operations.
Return whether or not the specified flag value is set for this flags object.
Set whether or not the specified flag value is set for this flags object.