Class AIAC::LayerUtils¶
ClassList > AIAC > LayerUtils
Inherits the following classes: AIAC::Layer
Public Functions¶
Type | Name |
---|---|
void | ExportHoleToolheadAxis () Export and write the hole and toolhead coordinates. |
std::string | GetSaveFolderPath () Get the current save folder path for the utils. |
bool | IsProcessing () Check if the video is being processed. |
LayerUtils () | |
virtual void | OnFrameEnd () override Is called when frame ends. |
void | SetSaveFolderPath (const std::string & path) Set the save folder path for the utils from UI. |
void | SetWindowScreenshot (bool value) Set the flag to check if the screenshot is of the window. |
void | StartRecording () Start recording the video of a window. |
void | StopRecording () Stop recording the video of a window. |
void | TakeBufferScreenshot () Take a screenshot of the colored buffer. |
void | TakeWindowScreenshot () Take a screenshot of the current window. |
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 Static Functions¶
Type | Name |
---|---|
bool | CreateFolder (const std::string & path) Create a folder if it does not exist. |
Public Functions Documentation¶
function ExportHoleToolheadAxis¶
Export and write the hole and toolhead coordinates.
< hole and toolhead exporter
function GetSaveFolderPath¶
Get the current save folder path for the utils.
Returns:
std::string Path to the current utils folder
function IsProcessing¶
Check if the video is being processed.
function LayerUtils¶
function OnFrameEnd¶
Is called when frame ends.
Implements AIAC::Layer::OnFrameEnd
function SetSaveFolderPath¶
Set the save folder path for the utils from UI.
Parameters:
path
Path to the folder that comes from UI
function SetWindowScreenshot¶
Set the flag to check if the screenshot is of the window.
Parameters:
value
True if the screenshot is of the window
function StartRecording¶
Start recording the video of a window.
< video recorder
function StopRecording¶
Stop recording the video of a window.
function TakeBufferScreenshot¶
Take a screenshot of the colored buffer.
function TakeWindowScreenshot¶
Take a screenshot of the current window.
< screenshot
Public Static Functions Documentation¶
function CreateFolder¶
Create a folder if it does not exist.
Parameters:
path
Path to the folder
Returns:
true if the folder is created
Returns:
false if the folder already exists
The documentation for this class was generated from the following file src/AIAC/LayerUtils.h