Skip to content

Class AIAC::ACInfoModel

ClassList > AIAC > ACInfoModel

Public Functions

Type Name
ACInfoModel ()
void AddMeasuredBboxLength (const float diff)
void AdjustScale ()
Utils.
void Clear ()
Clear the loaded data.
pugi::xml_document & GetDoc ()
Get the pugi::xml_document object.
const std::string & GetFilePath () const
Get the filepath to the loaded ACInfoModel .
float GetLength ()
Get the length of the acim, which is calculated by averaging the four long edges of the bounding box.
float GetMeasuredBboxLength () const
const std::string GetName () const
Get the name of the loaded ACInfoModel without the extension.
float GetRealWorldLength ()
Get the length of the acim, which is calculated by averaging the four long edges of the bounding box.
TimberInfo & GetTimberInfo ()
Get the TimberInfo object.
bool Load (std::string path)
Load a .acim model from a file.
void Save ()
Save the current state to the loaded .acim file.
void SetBboxVisibility (bool visible)
void Transform (glm::mat4x4 transformMat)
transform all the GOPrimitive belonging to theACInfoModel __
void UpdateBboxGOLine ()
Update the bounding box of the timber (use the current Active TimberInfo )
~ACInfoModel ()

Public Functions Documentation

function ACInfoModel

inline AIAC::ACInfoModel::ACInfoModel () 

function AddMeasuredBboxLength

void AIAC::ACInfoModel::AddMeasuredBboxLength (
    const float diff
) 

Increase / decrease real world length based on the measurement


function AdjustScale

Utils.

void AIAC::ACInfoModel::AdjustScale () 

Adjust the scale of the model based on the measured result


function Clear

Clear the loaded data.

void AIAC::ACInfoModel::Clear () 


function GetDoc

Get the pugi::xml_document object.

inline pugi::xml_document & AIAC::ACInfoModel::GetDoc () 


function GetFilePath

Get the filepath to the loaded ACInfoModel .

inline const std::string & AIAC::ACInfoModel::GetFilePath () const


function GetLength

Get the length of the acim, which is calculated by averaging the four long edges of the bounding box.

float AIAC::ACInfoModel::GetLength () 

Returns:

The length of the acim bounding box. (in TSLAM unit)


function GetMeasuredBboxLength

inline float AIAC::ACInfoModel::GetMeasuredBboxLength () const

Get the real world length of the bounding box (in Real World unit, meter)


function GetName

Get the name of the loaded ACInfoModel without the extension.

inline const std::string AIAC::ACInfoModel::GetName () const


function GetRealWorldLength

Get the length of the acim, which is calculated by averaging the four long edges of the bounding box.

inline float AIAC::ACInfoModel::GetRealWorldLength () 

Returns:

The length of the acim bounding box. (in Real World unit, meter)


function GetTimberInfo

Get the TimberInfo object.

inline TimberInfo & AIAC::ACInfoModel::GetTimberInfo () 


function Load

Load a .acim model from a file.

bool AIAC::ACInfoModel::Load (
    std::string path
) 

Parameters:

  • path Path to the model file.

Returns:

true if the file is loaded successfully, false otherwise.


function Save

Save the current state to the loaded .acim file.

void AIAC::ACInfoModel::Save () 


function SetBboxVisibility

void AIAC::ACInfoModel::SetBboxVisibility (
    bool visible
) 

Set the visibility of bbox to true or false


function Transform

transform all the GOPrimitive belonging to theACInfoModel __

void AIAC::ACInfoModel::Transform (
    glm::mat4x4 transformMat
) 

Parameters:

  • transformMat transformation matrix

function UpdateBboxGOLine

Update the bounding box of the timber (use the current Active TimberInfo )

void AIAC::ACInfoModel::UpdateBboxGOLine () 


function ~ACInfoModel

inline AIAC::ACInfoModel::~ACInfoModel () 


The documentation for this class was generated from the following file src/AIAC/ACInfoModel.h