21#ifndef PANEL_MODEL_FILE_PREVIEW_H
22#define PANEL_MODEL_FILE_PREVIEW_H
46 std::shared_ptr<const void>
owner;
53 using CANCEL = std::function<void()>;
Implement a canvas based on a wxGLCanvas.
std::shared_ptr< const void > m_modelOwner
std::shared_ptr< LIFETIME > m_lifetime
bool GetEmbedFile() const
EDA_3D_MODEL_VIEWER * m_viewer
PANEL_MODEL_FILE_PREVIEW(wxWindow *aParent, REQUEST aRequest, CANCEL aCancel, bool aEmbedFile)
std::function< void(wxString, uint64_t, COMPLETION)> REQUEST
void SetSelectedFile(const wxString &aPath)
void ApplyResult(uint64_t aGeneration, RESULT aResult)
std::function< void()> CANCEL
~PANEL_MODEL_FILE_PREVIEW() override
std::function< void(uint64_t, RESULT)> COMPLETION
std::shared_ptr< const void > owner
Keeps the imported model alive for as long as the panel shows it.
S3D::MODEL_IMPORT_ERROR status
Store the a model based on meshes and materials.