27#ifndef EASY3D_FILEIO_TRANSLATOR_H
28#define EASY3D_FILEIO_TRANSLATOR_H
30#include <easy3d/core/types.h>
51 TRANSLATE_USE_FIRST_POINT,
52 TRANSLATE_USE_LAST_KNOWN_OFFSET
Manages the translation of all the models during the file IO.
Definition translator.h:40
Status
The status of the translator.
Definition translator.h:49
static Translator * instance()
Returns the instance of the translator.
Definition translator.cpp:31
void set_translation(const dvec3 &t)
Sets the translation vector. If enabled, this translation will be applied to models loaded later on.
Definition translator.h:71
void set_status(Status s)
Sets the status of the translator.
Definition translator.h:59
Status status() const
Checks the status of the translator.
Definition translator.h:65
const dvec3 & translation() const
Gets the translation vector.
Definition translator.h:77
Definition collider.cpp:182
Vec< 3, double > dvec3
A 3D point/vector of double type.
Definition types.h:51