Manages the translation of all the models during the file IO.
More...
#include <easy3d/fileio/translator.h>
|
enum | Status { DISABLED
, TRANSLATE_USE_FIRST_POINT
, TRANSLATE_USE_LAST_KNOWN_OFFSET
} |
|
|
static Translator * | instance () |
| Returns the instance of the translator.
|
|
Manages the translation of all the models during the file IO.
◆ set_status()
void set_status |
( |
Status |
s | ) |
|
|
inline |
Sets the status of the translator.
- Parameters
-
s | The new status to be set. |
◆ set_translation()
void set_translation |
( |
const dvec3 & |
t | ) |
|
|
inline |
Sets the translation vector. If enabled, this translation will be applied to models loaded later on.
- Parameters
-
◆ status()
Checks the status of the translator.
- Returns
- The status of the translator.
◆ translation()
const dvec3 & translation |
( |
| ) |
const |
|
inline |
Gets the translation vector.
- Returns
- The translation vector.
The documentation for this class was generated from the following files:
- /Users/lnan/Documents/Projects/Easy3D/easy3d/fileio/translator.h
- /Users/lnan/Documents/Projects/Easy3D/easy3d/fileio/translator.cpp