KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PANEL_FP_PROPERTIES_3D_MODEL Class Reference

#include <panel_fp_properties_3d_model.h>

Inheritance diagram for PANEL_FP_PROPERTIES_3D_MODEL:
PANEL_FP_PROPERTIES_3D_MODEL_BASE

Public Member Functions

 PANEL_FP_PROPERTIES_3D_MODEL (PCB_BASE_EDIT_FRAME *aFrame, FOOTPRINT *aFootprint, DIALOG_SHIM *aDialogParent, wxWindow *aParent, wxWindowID aId=wxID_ANY, const wxPoint &aPos=wxDefaultPosition, const wxSize &aSize=wxDefaultSize, long aStyle=wxTAB_TRAVERSAL, const wxString &aName=wxEmptyString)
 
 ~PANEL_FP_PROPERTIES_3D_MODEL () override
 
bool TransferDataToWindow () override
 
bool TransferDataFromWindow () override
 
void ReloadModelsFromFootprint ()
 
void AdjustGridColumnWidths ()
 
std::vector< FP_3DMODEL > & GetModelList ()
 
void m_splitter1OnIdle (wxIdleEvent &)
 

Protected Attributes

wxBoxSizer * bSizerMain3D
 
wxSplitterWindow * m_splitter1
 
wxPanel * m_upperPanel
 
WX_GRIDm_modelsGrid
 
STD_BITMAP_BUTTONm_button3DShapeAdd
 
STD_BITMAP_BUTTONm_button3DShapeBrowse
 
STD_BITMAP_BUTTONm_button3DShapeRemove
 
wxButton * m_buttonConfig3DPaths
 
wxPanel * m_lowerPanel
 
wxBoxSizer * m_LowerSizer3D
 

Private Member Functions

void On3DModelSelected (wxGridEvent &) override
 
void On3DModelCellChanged (wxGridEvent &aEvent) override
 
void OnRemove3DModel (wxCommandEvent &event) override
 
void OnAdd3DModel (wxCommandEvent &event) override
 
void OnAdd3DRow (wxCommandEvent &event) override
 
void Cfg3DPath (wxCommandEvent &event) override
 
void OnGridSize (wxSizeEvent &event) override
 
void OnUpdateUI (wxUpdateUIEvent &event) override
 
void updateValidateStatus (int aRow)
 
MODEL_VALIDATE_ERRORS validateModelExists (const wxString &aFilename)
 
void select3DModel (int aModelIdx)
 
void onModify ()
 
virtual void onDialogActivateEvent (wxActivateEvent &aEvent)
 
virtual void onShowEvent (wxShowEvent &aEvent)
 
void postCustomPanelShownEventWithPredicate (bool predicate)
 

Private Attributes

DIALOG_SHIMm_parentDialog
 
PCB_BASE_EDIT_FRAMEm_frame
 
FOOTPRINTm_footprint
 
std::vector< FP_3DMODELm_shapes3D_list
 
PANEL_PREVIEW_3D_MODELm_previewPane
 
bool m_inSelect
 

Detailed Description

Definition at line 45 of file panel_fp_properties_3d_model.h.

Constructor & Destructor Documentation

◆ PANEL_FP_PROPERTIES_3D_MODEL()

◆ ~PANEL_FP_PROPERTIES_3D_MODEL()

PANEL_FP_PROPERTIES_3D_MODEL::~PANEL_FP_PROPERTIES_3D_MODEL ( )
override

Member Function Documentation

◆ AdjustGridColumnWidths()

◆ Cfg3DPath()

void PANEL_FP_PROPERTIES_3D_MODEL::Cfg3DPath ( wxCommandEvent &  event)
overrideprivatevirtual

◆ GetModelList()

std::vector< FP_3DMODEL > & PANEL_FP_PROPERTIES_3D_MODEL::GetModelList ( )
inline

◆ m_splitter1OnIdle()

◆ On3DModelCellChanged()

◆ On3DModelSelected()

void PANEL_FP_PROPERTIES_3D_MODEL::On3DModelSelected ( wxGridEvent &  aEvent)
overrideprivatevirtual

Reimplemented from PANEL_FP_PROPERTIES_3D_MODEL_BASE.

Definition at line 235 of file panel_fp_properties_3d_model.cpp.

References m_inSelect, and select3DModel().

◆ OnAdd3DModel()

◆ OnAdd3DRow()

void PANEL_FP_PROPERTIES_3D_MODEL::OnAdd3DRow ( wxCommandEvent &  event)
overrideprivatevirtual

◆ onDialogActivateEvent()

void PANEL_FP_PROPERTIES_3D_MODEL::onDialogActivateEvent ( wxActivateEvent &  aEvent)
privatevirtual

◆ OnGridSize()

void PANEL_FP_PROPERTIES_3D_MODEL::OnGridSize ( wxSizeEvent &  event)
overrideprivatevirtual

Reimplemented from PANEL_FP_PROPERTIES_3D_MODEL_BASE.

Definition at line 573 of file panel_fp_properties_3d_model.cpp.

References AdjustGridColumnWidths().

◆ onModify()

void PANEL_FP_PROPERTIES_3D_MODEL::onModify ( )
private

◆ OnRemove3DModel()

void PANEL_FP_PROPERTIES_3D_MODEL::OnRemove3DModel ( wxCommandEvent &  event)
overrideprivatevirtual

◆ onShowEvent()

void PANEL_FP_PROPERTIES_3D_MODEL::onShowEvent ( wxShowEvent &  aEvent)
privatevirtual

◆ OnUpdateUI()

void PANEL_FP_PROPERTIES_3D_MODEL::OnUpdateUI ( wxUpdateUIEvent &  event)
overrideprivatevirtual

◆ postCustomPanelShownEventWithPredicate()

void PANEL_FP_PROPERTIES_3D_MODEL::postCustomPanelShownEventWithPredicate ( bool  predicate)
private

Definition at line 609 of file panel_fp_properties_3d_model.cpp.

References m_previewPane.

Referenced by onDialogActivateEvent(), and onShowEvent().

◆ ReloadModelsFromFootprint()

◆ select3DModel()

◆ TransferDataFromWindow()

◆ TransferDataToWindow()

bool PANEL_FP_PROPERTIES_3D_MODEL::TransferDataToWindow ( )
override

◆ updateValidateStatus()

void PANEL_FP_PROPERTIES_3D_MODEL::updateValidateStatus ( int  aRow)
private

◆ validateModelExists()

Member Data Documentation

◆ bSizerMain3D

wxBoxSizer* PANEL_FP_PROPERTIES_3D_MODEL_BASE::bSizerMain3D
protectedinherited

◆ m_button3DShapeAdd

◆ m_button3DShapeBrowse

◆ m_button3DShapeRemove

◆ m_buttonConfig3DPaths

wxButton* PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_buttonConfig3DPaths
protectedinherited

◆ m_footprint

FOOTPRINT* PANEL_FP_PROPERTIES_3D_MODEL::m_footprint
private

◆ m_frame

◆ m_inSelect

bool PANEL_FP_PROPERTIES_3D_MODEL::m_inSelect
private

◆ m_lowerPanel

wxPanel* PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_lowerPanel
protectedinherited

◆ m_LowerSizer3D

wxBoxSizer* PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_LowerSizer3D
protectedinherited

◆ m_modelsGrid

◆ m_parentDialog

DIALOG_SHIM* PANEL_FP_PROPERTIES_3D_MODEL::m_parentDialog
private

Definition at line 98 of file panel_fp_properties_3d_model.h.

Referenced by OnAdd3DModel(), and PANEL_FP_PROPERTIES_3D_MODEL().

◆ m_previewPane

◆ m_shapes3D_list

std::vector<FP_3DMODEL> PANEL_FP_PROPERTIES_3D_MODEL::m_shapes3D_list
private

◆ m_splitter1

wxSplitterWindow* PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_splitter1
protectedinherited

◆ m_upperPanel

wxPanel* PANEL_FP_PROPERTIES_3D_MODEL_BASE::m_upperPanel
protectedinherited

The documentation for this class was generated from the following files: