27#ifndef EASY3D_FILEIO_TRANSLATOR_H
28#define EASY3D_FILEIO_TRANSLATOR_H
30#include <easy3d/core/types.h>
50 TRANSLATE_USE_FIRST_POINT,
51 TRANSLATE_USE_LAST_KNOWN_OFFSET
64 Status
status()
const {
return status_; }
Manages the translation of all the models during the file IO.
Definition: translator.h:40
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:70
void set_status(Status s)
Sets the status of the translator.
Definition: translator.h:58
Status status() const
Checks the status of the translator.
Definition: translator.h:64
const dvec3 & translation() const
Gets the translation vector.
Definition: translator.h:76
Definition: collider.cpp:182
Vec< 3, double > dvec3
A 3D point/vector of double type.
Definition: types.h:52