60 tbl->
Load( projectFpLibTableFileName );
91 cfgpath.AppendDir( wxT(
"3d" ) );
97 aUpdateProjDir =
true;
123 int clearCacheInterval = 0;
130 if( clearCacheInterval > 0 )
Provide an extensible class to resolve 3D model paths.
PROJECT::ELEM ProjectElementType() override
Hold an error message and may be used when throwing exceptions containing meaningful error messages.
virtual const wxString What() const
A composite of Problem() and Where()
void Load(const wxString &aFileName)
Load the library table using the path defined by aFileName aFallBackTable.
static wxString GetUserSettingsPath()
Return the user configuration path used to store KiCad's configuration files.
virtual COMMON_SETTINGS * GetCommonSettings() const
static FP_LIB_TABLE * PcbFootprintLibs(PROJECT *aProject)
Return the table of footprint libraries without Kiway.
static void Cleanup3DCache(PROJECT *aProject)
static S3D_CACHE * Get3DCacheManager(PROJECT *aProject, bool updateProjDir=false)
Return a pointer to an instance of the 3D cache manager.
static FILENAME_RESOLVER * Get3DFilenameResolver(PROJECT *aProject)
Accessor for 3D path resolver.
Container for project specific data.
virtual void SetElem(PROJECT::ELEM aIndex, _ELEM *aElem)
virtual _ELEM * GetElem(PROJECT::ELEM aIndex)
Get and set the elements for this project.
virtual const wxString FootprintLibTblName() const
Returns the path and filename of this project's footprint library table.
Cache for storing the 3D shapes.
void SetProgramBase(PGM_BASE *aBase)
Set the filename resolver's pointer to the application's PGM_BASE instance.
bool Set3DConfigDir(const wxString &aConfigDir)
Sets the configuration directory to be used by the model manager for storing 3D model manager configu...
FILENAME_RESOLVER * GetResolver() noexcept
bool SetProject(PROJECT *aProject)
Set the current project's working directory; this affects the model search path.
void CleanCacheDir(int aNumDaysOld)
Delete up old cache files in cache directory.
void DisplayErrorMessage(wxWindow *aParent, const wxString &aText, const wxString &aExtraInfo)
Display an error message with aMessage.
This file is part of the common library.
FP_LIB_TABLE GFootprintTable
The global footprint library table.
PGM_BASE & Pgm()
The global Program "get" accessor.
static std::mutex mutex3D_cacheManager
int clear_3d_cache_interval