Blender  V3.3
Public Types | Public Member Functions | Static Public Member Functions | List of all members
UnitConverter Class Reference

#include <collada_internal.h>

Public Types

enum  UnitSystem { None , Metric , Imperial }
 

Public Member Functions

 UnitConverter ()
 
void read_asset (const COLLADAFW::FileInfo *asset)
 
void convertVector3 (COLLADABU::Math::Vector3 &vec, float *v)
 
UnitConverter::UnitSystem isMetricSystem (void)
 
float getLinearMeter (void)
 
float(& get_rotation ())[4]
 
float(& get_scale ())[4]
 
void calculate_scale (Scene &sce)
 

Static Public Member Functions

static void dae_matrix_to_mat4_ (float out[4][4], const COLLADABU::Math::Matrix4 &in)
 
static void mat4_to_dae (float out[4][4], float in[4][4])
 
static void mat4_to_dae_double (double out[4][4], float in[4][4])
 

Detailed Description

Definition at line 23 of file collada_internal.h.

Member Enumeration Documentation

◆ UnitSystem

Enumerator
None 
Metric 
Imperial 

Definition at line 34 of file collada_internal.h.

Constructor & Destructor Documentation

◆ UnitConverter()

UnitConverter::UnitConverter ( )

Definition at line 15 of file collada_internal.cpp.

References axis_angle_to_mat4_single(), M_PI_2, and unit_m4().

Member Function Documentation

◆ calculate_scale()

void UnitConverter::calculate_scale ( Scene sce)

◆ convertVector3()

void UnitConverter::convertVector3 ( COLLADABU::Math::Vector3 vec,
float v 
)

Definition at line 53 of file collada_internal.cpp.

References v.

◆ dae_matrix_to_mat4_()

void UnitConverter::dae_matrix_to_mat4_ ( float  out[4][4],
const COLLADABU::Math::Matrix4 &  in 
)
static

◆ get_rotation()

float(& UnitConverter::get_rotation ( ) )[4]

Definition at line 91 of file collada_internal.cpp.

Referenced by bc_match_scale().

◆ get_scale()

float(& UnitConverter::get_scale ( ) )[4]

Definition at line 106 of file collada_internal.cpp.

Referenced by bc_match_scale().

◆ getLinearMeter()

float UnitConverter::getLinearMeter ( void  )

◆ isMetricSystem()

UnitConverter::UnitSystem UnitConverter::isMetricSystem ( void  )

Definition at line 30 of file collada_internal.cpp.

References Imperial, Metric, and None.

Referenced by DocumentImporter::finish().

◆ mat4_to_dae()

void UnitConverter::mat4_to_dae ( float  out[4][4],
float  in[4][4] 
)
static

Definition at line 73 of file collada_internal.cpp.

References usdtokens::out(), and transpose_m4_m4().

Referenced by mat4_to_dae_double().

◆ mat4_to_dae_double()

void UnitConverter::mat4_to_dae_double ( double  out[4][4],
float  in[4][4] 
)
static

◆ read_asset()

void UnitConverter::read_asset ( const COLLADAFW::FileInfo *  asset)

Definition at line 24 of file collada_internal.cpp.

Referenced by DocumentImporter::writeGlobalAsset().


The documentation for this class was generated from the following files: