OpenMesh.Core.IO.Options
- struct
Options
;
- \name Mesh Reading / Writing
Option for reader and writer modules.
\brief Set options for reader/writer modules.
The class is used in a twofold way.
-# In combination with reader modules the class is used
- to pass hints to the reading module, whether the input is
binary and what byte ordering the binary data has
- to retrieve information about the file contents after
succesful reading.
-# In combination with write modules the class gives directions to
the writer module, whether to
- use binary mode or not and what byte order to use
- store one of the standard properties.
The option are defined in \c
Options
.Flag as bit values and stored in
an \c int value as a bitset.
- enum
Flag
;
- Definitions of %Options for reading and writing. The options can be
or'ed.
-
Default
- < No options
-
Binary
- < Set binary mode for r/w
-
MSB
- < Assume big endian byte ordering
-
LSB
- < Assume little endian byte ordering
-
Swap
- <
Swap
byte order in binary mode
-
VertexNormal
- < Has (r) / store (w) vertex normals
-
VertexColor
- < Has (r) / store (w) vertex colors
-
VertexTexCoord
- < Has (r) / store (w) texture coordinates
-
FaceNormal
- < Has (r) / store (w) face normals
-
FaceColor
- < Has (r) / store (w) face colors
- static Options
opCall
();
- Default constructor
- static Options
opCall
(Flag _flg);
- Initializing constructor setting a single option
- void
cleanup
();
- Restore state after default constructor.
- void
clear
();
- Clear all bits.
- bool
is_empty
();
- Returns true if all bits are zero.
- void
opSubAssign
(int _rhs);
- Unset options defined in rhs.
- void
opAddAssign
(int _rhs);
- Set options defined in rhs
|