Class AIAC::LayerModel¶
ClassList > AIAC > LayerModel
Inherits the following classes: AIAC::Layer
Public Functions¶
Type | Name |
---|---|
void | AddAlignOffset (float diff) Change the align offset. The value is in TSLAM unit. |
void | AlignModels () transform the ACInfoModel to theScannedModel __ |
void | ChangeAlignRotation (int diff) Change the align rotation. The value is in degree. |
void | FlipAlign () Change the align flip. |
void | ForceAlignToEnd (bool leftOrRight) Set the offset make it align to one end. |
ACInfoModel & | GetACInfoModel () Return the ACInfoModel . |
const std::string | GetACInfoModelName () const Return the file name of the loaded ACInfoModel . |
const std::string & | GetACInfoModelPath () const Return the filepath to the loaded ACInfoModel . |
bool | GetAlignFlip () const Get the flip status of the model. |
float | GetAlignOffset () Get the Align Offset of the model. |
int | GetAlignRotation () const Get the rotation position of the model. |
ScannedModel & | GetScannedModel () Get the Scanned Model object. |
const std::string & | GetScannedModelPath () const Return the filepath to the loaded ScannedModel . |
glm::mat4x4 | GetTransformMat () const Get the transform matrix of the model. |
LayerModel () | |
void | LoadACInfoModel (const std::string & path) Load a .acim model from a file. |
void | LoadScannedModel (const std::string & path) Load a .ply model from a file. |
virtual void | OnAttach () override Is called when the layer is attached to the application. |
virtual void | OnFrameStart () override Is called when frame starts. |
void | ReloadACInfoModel () Reload the ACInfoModel from the current path from config. |
void | ResetAlignFlip () Reset the align flip to false (No flip). |
void | ResetAlignOffset () Reset the align offset to 0 (Center). |
void | ResetAlignRotation () Reset the align rotation to 0 (No rotation). |
virtual | ~LayerModel () = default |
Public Functions inherited from AIAC::Layer¶
See AIAC::Layer
Type | Name |
---|---|
virtual void | OnAttach () Is called when the layer is attached to the application. |
virtual void | OnDetach () Is called when the layer is detached from the application (~app). |
virtual void | OnFrameAwake () Is calle before GLFW poll events, GL frame and Imgui Frame. |
virtual void | OnFrameEnd () Is called when frame ends. |
virtual void | OnFrameFall () Is called when the GLFW, GL and Imgui frame is updated and rendered. |
virtual void | OnFrameStart () Is called when frame starts. |
virtual | ~Layer () = default |
Public Functions Documentation¶
function AddAlignOffset¶
Change the align offset. The value is in TSLAM unit.
function AlignModels¶
transform the ACInfoModel to theScannedModel __
function ChangeAlignRotation¶
Change the align rotation. The value is in degree.
Parameters:
diff
+1 or -1 to rotate 90 degree (counter-)clock wise.
function FlipAlign¶
Change the align flip.
function ForceAlignToEnd¶
Set the offset make it align to one end.
function GetACInfoModel¶
Return the ACInfoModel .
function GetACInfoModelName¶
Return the file name of the loaded ACInfoModel .
function GetACInfoModelPath¶
Return the filepath to the loaded ACInfoModel .
function GetAlignFlip¶
Get the flip status of the model.
function GetAlignOffset¶
Get the Align Offset of the model.
function GetAlignRotation¶
Get the rotation position of the model.
function GetScannedModel¶
Get the Scanned Model object.
function GetScannedModelPath¶
Return the filepath to the loaded ScannedModel .
function GetTransformMat¶
Get the transform matrix of the model.
function LayerModel¶
function LoadACInfoModel¶
Load a .acim model from a file.
function LoadScannedModel¶
Load a .ply model from a file.
function OnAttach¶
Is called when the layer is attached to the application.
Implements AIAC::Layer::OnAttach
function OnFrameStart¶
Is called when frame starts.
Implements AIAC::Layer::OnFrameStart
function ReloadACInfoModel¶
Reload the ACInfoModel from the current path from config.
function ResetAlignFlip¶
Reset the align flip to false (No flip).
function ResetAlignOffset¶
Reset the align offset to 0 (Center).
function ResetAlignRotation¶
Reset the align rotation to 0 (No rotation).
function ~LayerModel¶
The documentation for this class was generated from the following file src/AIAC/LayerModel.h