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
} |
| The status of the translator.
|
|
|
void | set_status (Status s) |
| Sets the status of the translator.
|
|
Status | status () const |
| Checks the status of the translator.
|
|
void | set_translation (const dvec3 &t) |
| Sets the translation vector. If enabled, this translation will be applied to models loaded later on.
|
|
const dvec3 & | translation () const |
| Gets the translation vector.
|
|
|
static Translator * | instance () |
| Returns the instance of the translator.
|
|
Manages the translation of all the models during the file IO.
◆ set_status()
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:
- G:/3_code/Easy3D/easy3d/fileio/translator.h
- G:/3_code/Easy3D/easy3d/fileio/translator.cpp