Easy3D 2.6.1
Loading...
Searching...
No Matches
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 }
 The status of the translator.
 

Public Member Functions

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 Public Member Functions

static Translator * instance ()
 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: