Skip to content

ImportedModelsDialog

#include "GUI/Elements/Dialogs/ImportedModelsDialog.h"

Inherits from IWindow, std::enable_shared_from_this< IWindow >

Public Functions

Name
ImportedModelsDialog()
virtual voidrender() override
boolimportContentDialog(std::vector< std::filesystem::path > & result, const std::string & title)
voidimportModel(bool normalize)
voidmaybeRemoveModel(const std::string & alias)
voidremoveModel(const std::string & alias)

Additional inherited members

Public Functions inherited from IWindow

Name
IWindow(std::string title, bool show =false)
virtual~IWindow() =default
virtual const char *getID() const =0
WPtr< InputController >getInput()<br>Returns window input controller.
const char *getName()
bool *getShowPtr()
const std::string &getTitle() const
voidhide()
boolisVisible() const
const voidsetTitle(std::string title)
voidshow()

Protected Functions inherited from IWindow

Name
voidupdateWindowInfo()<br>Collect information about the current window.

Public Attributes inherited from IWindow

Name
boolm_autoFocus <br>When true the window will get focus immediately upon hovering over it.
std::stringm_title <br>Visible window title.
boolm_windowInfoUpdated <br>A flag indicating the updateWindowInfo() method was called.
WindowManager *m_windowManager <br>Weak reference to a WindowManager set when this window is added to it.
glm::vec2m_windowMax <br>Bottom right corner of the window.
glm::vec2m_windowMin <br>Top left corner of the window, same as m_windowPos (separate variable for clarity)
glm::vec2m_windowPos <br>Top-left corner of the window in screen coordinates.
glm::ivec2m_windowSize <br>Window width and height dimensions.

Protected Attributes inherited from IWindow

Name
Ptr< InputController >m_input
std::stringm_name <br>Full ImGui window identifier.
boolm_nameNeedsUpdate <br>Workaround to avoid setting the name in the constructor (cannot call getID there)
boolm_show

Friends inherited from IWindow

Name
classWindowManager

Public Functions Documentation

function ImportedModelsDialog

cpp
ImportedModelsDialog()
ImportedModelsDialog()

function render

cpp
virtual void render() override
virtual void render() override

Reimplements: IWindow::render

function importContentDialog

cpp
static bool importContentDialog(
    std::vector< std::filesystem::path > & result,
    const std::string & title
)
static bool importContentDialog(
    std::vector< std::filesystem::path > & result,
    const std::string & title
)

function importModel

cpp
static void importModel(
    bool normalize
)
static void importModel(
    bool normalize
)

function maybeRemoveModel

cpp
static void maybeRemoveModel(
    const std::string & alias
)
static void maybeRemoveModel(
    const std::string & alias
)

function removeModel

cpp
static void removeModel(
    const std::string & alias
)
static void removeModel(
    const std::string & alias
)

Updated on 2025-01-07 at 13:40:43 +0000