Blender V4.5
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 ()
float getLinearMeter ()
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 21 of file collada_internal.h.

Member Enumeration Documentation

◆ UnitSystem

Enumerator
None 
Metric 
Imperial 

Definition at line 32 of file collada_internal.h.

Constructor & Destructor Documentation

◆ UnitConverter()

UnitConverter::UnitConverter ( )

Definition at line 20 of file collada_internal.cpp.

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

Member Function Documentation

◆ calculate_scale()

◆ convertVector3()

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

Definition at line 58 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 96 of file collada_internal.cpp.

References get_rotation().

Referenced by bc_match_scale(), and get_rotation().

◆ get_scale()

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

Definition at line 111 of file collada_internal.cpp.

References get_scale().

Referenced by bc_match_scale(), and get_scale().

◆ getLinearMeter()

float UnitConverter::getLinearMeter ( )

Definition at line 53 of file collada_internal.cpp.

Referenced by calculate_scale().

◆ isMetricSystem()

UnitConverter::UnitSystem UnitConverter::isMetricSystem ( )

Definition at line 35 of file collada_internal.cpp.

References Imperial, Metric, and None.

◆ mat4_to_dae()

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

Definition at line 78 of file collada_internal.cpp.

References in, 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 29 of file collada_internal.cpp.


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