Easy3D 2.5.3
Translator Class Reference

Manages the translation of all the models during the file IO. More...

#include <easy3d/fileio/translator.h>

Public Types

enum  Status { DISABLED , TRANSLATE_USE_FIRST_POINT , TRANSLATE_USE_LAST_KNOWN_OFFSET }
 

Public Member Functions

void set_status (Status s)
 Sets the status of the translator. More...
 
Status status () const
 Checks the status of the translator. More...
 
void set_translation (const dvec3 &t)
 Sets the translation vector. If enabled, this translation will be applied to models loaded later on. More...
 
const dvec3translation () const
 Gets the translation vector. More...
 

Static Public Member Functions

static Translatorinstance ()
 Returns the instance of the translator.
 

Detailed Description

Manages the translation of all the models during the file IO.

Member Function Documentation

◆ set_status()

void set_status ( Status  s)
inline

Sets the status of the translator.

Parameters
sThe 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
tThe translation vector.

◆ status()

Status status ( ) const
inline

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: