39 #include <wx/string.h> 158 bool getSHA1( const wxString& aFileName,
unsigned char* aSHA1Sum );
define an internal structure to be used by the 3D renders
Container for project specific data.
Container for data for KiCad programs.
std::list< wxString > const * GetFileFilters() const
Return the list of file filters retrieved from the plugins.
A helper for sorting strings from the rear.
void SetProgramBase(PGM_BASE *aBase)
Set the filename resolver's pointer to the application's PGM_BASE instance.
std::map< wxString, S3D_CACHE_ENTRY *, rsort_wxString > m_CacheMap
mapping of file names to cache names and data
SCENEGRAPH * checkCache(const wxString &aFileName, S3D_CACHE_ENTRY **aCachePtr=nullptr)
Find or create cache entry for file name.
bool loadCacheData(S3D_CACHE_ENTRY *aCacheItem)
Cache for storing the 3D shapes.
defines the basic data associated with a single 3D model.
FILENAME_RESOLVER * m_FNResolver
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
S3DMODEL * GetModel(const wxString &aModelFileName)
Attempt to load the scene data for a model and to translate it into an S3D_MODEL structure for displa...
bool saveCacheData(S3D_CACHE_ENTRY *aCacheItem)
void FlushCache(bool closePlugins=true)
Free all data in the cache and by default closes all plugins.
void ClosePlugins()
Unload plugins to free memory.
void CleanCacheDir(int aNumDaysOld)
Delete up old cache files in cache directory.
bool getSHA1(const wxString &aFileName, unsigned char *aSHA1Sum)
Calculate the SHA1 hash of the given file.
std::list< S3D_CACHE_ENTRY * > m_CacheList
cache entries
Provide an extensible class to resolve 3D model paths.
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
KICAD_T Type() noexcept override
bool SetProject(PROJECT *aProject)
Set the current project's working directory; this affects the model search path.
Define the basic data set required to represent a 3D model.
A PROJECT can hold stuff it knows nothing about, in the form of _ELEM derivatives.
Store the a model based on meshes and materials.
SCENEGRAPH * Load(const wxString &aModelFile)
Attempt to load the scene data for a model.
SCENEGRAPH * load(const wxString &aModelFile, S3D_CACHE_ENTRY **aCachePtr=nullptr)
S3D_PLUGIN_MANAGER * m_Plugins