Skip to content

Class AIAC::LayerCameraCalib

ClassList > AIAC > LayerCameraCalib

Inherits the following classes: AIAC::Layer

Public Attributes

Type Name
bool AutoCapture = = true
int Delay = = 1500
bool JustCaptured = = false
int NumOfFrame = = 100
std::string SaveFilename = = "assets/tslam/calibration.yml"

Public Functions

Type Name
void Clear ()
CameraCalibrator & GetCameraCalibrator ()
bool IsCalibrating () const
bool IsCapturing () const
LayerCameraCalib () = default
virtual void OnAttach () override
Is called when the layer is attached to the application.
virtual void OnFrameStart () override
Is called when frame starts.
void SetSaveFilename (const std::string & filename)
void StartCalibration ()
void StartCapturing ()
void StopCalibration ()
~LayerCameraCalib () override

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 Attributes Documentation

variable AutoCapture

bool AIAC::LayerCameraCalib::AutoCapture;

variable Delay

int AIAC::LayerCameraCalib::Delay;

variable JustCaptured

bool AIAC::LayerCameraCalib::JustCaptured;

variable NumOfFrame

int AIAC::LayerCameraCalib::NumOfFrame;

variable SaveFilename

std::string AIAC::LayerCameraCalib::SaveFilename;

Public Functions Documentation

function Clear

void AIAC::LayerCameraCalib::Clear () 

function GetCameraCalibrator

inline CameraCalibrator & AIAC::LayerCameraCalib::GetCameraCalibrator () 

function IsCalibrating

inline bool AIAC::LayerCameraCalib::IsCalibrating () const

function IsCapturing

inline bool AIAC::LayerCameraCalib::IsCapturing () const

function LayerCameraCalib

AIAC::LayerCameraCalib::LayerCameraCalib () = default

function OnAttach

Is called when the layer is attached to the application.

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

Implements AIAC::Layer::OnAttach


function OnFrameStart

Is called when frame starts.

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

Implements AIAC::Layer::OnFrameStart


function SetSaveFilename

inline void AIAC::LayerCameraCalib::SetSaveFilename (
    const std::string & filename
) 

function StartCalibration

void AIAC::LayerCameraCalib::StartCalibration () 

function StartCapturing

inline void AIAC::LayerCameraCalib::StartCapturing () 

function StopCalibration

inline void AIAC::LayerCameraCalib::StopCalibration () 

function ~LayerCameraCalib

AIAC::LayerCameraCalib::~LayerCameraCalib () override


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