Skip to content

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.

inline void AIAC::LayerModel::AddAlignOffset (
    float diff
) 


function AlignModels

transform the ACInfoModel to theScannedModel __

void AIAC::LayerModel::AlignModels () 


function ChangeAlignRotation

Change the align rotation. The value is in degree.

inline void AIAC::LayerModel::ChangeAlignRotation (
    int diff
) 

Parameters:

  • diff +1 or -1 to rotate 90 degree (counter-)clock wise.

function FlipAlign

Change the align flip.

inline void AIAC::LayerModel::FlipAlign () 


function ForceAlignToEnd

Set the offset make it align to one end.

inline void AIAC::LayerModel::ForceAlignToEnd (
    bool leftOrRight
) 


function GetACInfoModel

Return the ACInfoModel .

inline ACInfoModel & AIAC::LayerModel::GetACInfoModel () 


function GetACInfoModelName

Return the file name of the loaded ACInfoModel .

inline const std::string AIAC::LayerModel::GetACInfoModelName () const


function GetACInfoModelPath

Return the filepath to the loaded ACInfoModel .

inline const std::string & AIAC::LayerModel::GetACInfoModelPath () const


function GetAlignFlip

Get the flip status of the model.

inline bool AIAC::LayerModel::GetAlignFlip () const


function GetAlignOffset

Get the Align Offset of the model.

inline float AIAC::LayerModel::GetAlignOffset () 


function GetAlignRotation

Get the rotation position of the model.

inline int AIAC::LayerModel::GetAlignRotation () const


function GetScannedModel

Get the Scanned Model object.

inline ScannedModel & AIAC::LayerModel::GetScannedModel () 


function GetScannedModelPath

Return the filepath to the loaded ScannedModel .

inline const std::string & AIAC::LayerModel::GetScannedModelPath () const


function GetTransformMat

Get the transform matrix of the model.

inline glm::mat4x4 AIAC::LayerModel::GetTransformMat () const


function LayerModel

AIAC::LayerModel::LayerModel () 

function LoadACInfoModel

Load a .acim model from a file.

void AIAC::LayerModel::LoadACInfoModel (
    const std::string & path
) 


function LoadScannedModel

Load a .ply model from a file.

void AIAC::LayerModel::LoadScannedModel (
    const std::string & path
) 


function OnAttach

Is called when the layer is attached to the application.

virtual void AIAC::LayerModel::OnAttach () override

Implements AIAC::Layer::OnAttach


function OnFrameStart

Is called when frame starts.

virtual void AIAC::LayerModel::OnFrameStart () override

Implements AIAC::Layer::OnFrameStart


function ReloadACInfoModel

Reload the ACInfoModel from the current path from config.

void AIAC::LayerModel::ReloadACInfoModel () 


function ResetAlignFlip

Reset the align flip to false (No flip).

inline void AIAC::LayerModel::ResetAlignFlip () 


function ResetAlignOffset

Reset the align offset to 0 (Center).

inline void AIAC::LayerModel::ResetAlignOffset () 


function ResetAlignRotation

Reset the align rotation to 0 (No rotation).

inline void AIAC::LayerModel::ResetAlignRotation () 


function ~LayerModel

virtual AIAC::LayerModel::~LayerModel () = default


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