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¶
function AddMeasuredBboxLength¶
Increase / decrease real world length based on the measurement
function AdjustScale¶
Utils.
Adjust the scale of the model based on the measured result
function Clear¶
Clear the loaded data.
function GetDoc¶
Get the pugi::xml_document object.
function GetFilePath¶
Get the filepath to the loaded ACInfoModel .
function GetLength¶
Get the length of the acim, which is calculated by averaging the four long edges of the bounding box.
Returns:
The length of the acim bounding box. (in TSLAM unit)
function GetMeasuredBboxLength¶
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.
function GetRealWorldLength¶
Get the length of the acim, which is calculated by averaging the four long edges of the bounding box.
Returns:
The length of the acim bounding box. (in Real World unit, meter)
function GetTimberInfo¶
Get the TimberInfo object.
function Load¶
Load a .acim model from a file.
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.
function SetBboxVisibility¶
Set the visibility of bbox to true or false
function Transform¶
transform all the GOPrimitive belonging to theACInfoModel __
Parameters:
transformMat
transformation matrix
function UpdateBboxGOLine¶
Update the bounding box of the timber (use the current Active TimberInfo )
function ~ACInfoModel¶
The documentation for this class was generated from the following file src/AIAC/ACInfoModel.h