API Documentation
|
Manages loading Models from a group that is stored either on a remote server or locally on the disk in a compressed or uncompressed folder. More...
#include <LibraryManager.h>
Signals | |
void | modelAdded (UUID id) |
void | modelRemoved (UUID id) |
Public Member Functions | |
void | addLayer (Model &model) |
void | addToLibrary (const UUID &object, UUID library_object) |
void | centerModel (Model &model) |
Buffer< TranslatedString > | getCategories () const |
String | getIcon (const UUID &id) const |
Buffer< UUID > | getIDs () const |
Buffer< UUID > | getIDsByCategory (const TranslatedString &category) |
TranslatedString | getName (const UUID &id) const |
TranslatedString | getSearchTerms (const UUID &id) const |
String | getType (const UUID &id) const |
Buffer< String > | getTypes () const |
bool | hasID (const UUID &id) const |
LibraryManager (QTModelManager *manager, const File &library_folder) | |
Model | loadObject (const UUID &id, bool center_model) |
QTModelManager * | manager () |
void | pullFromArchiveFile (File file) |
void | recomputeAll () |
void | recomputeObject (UUID) |
void | removeFromLibrary (const UUID &object) |
void | saveAllImagesToFolder (File folder) |
void | saveToArchiveFile (File file) |
void | updateFromArchive () |
Protected Member Functions | |
void | updateFromArchive (const File &file) |
void | updateFromArchive (const UUID &file) |
bool | writeToLibrary (const UUID &object_to_write, UUID library_id) |
Protected Attributes | |
File | m_archive_path |
Dictionary< UUID, TranslatedString > | m_categories |
Buffer< UUID > | m_ids |
DesignObjectLookup | m_library_lookup |
QTModelManager * | m_manager |
Dictionary< UUID, TranslatedString > | m_names |
Dictionary< UUID, TranslatedString > | m_search_terms |
Dictionary< UUID, String > | m_types |
Manages loading Models from a group that is stored either on a remote server or locally on the disk in a compressed or uncompressed folder.
LibraryManager | ( | QTModelManager * | manager, |
const File & | library_folder ) |
void addLayer | ( | Model & | model | ) |
void centerModel | ( | Model & | model | ) |
Buffer< TranslatedString > getCategories | ( | ) | const |
Buffer< UUID > getIDsByCategory | ( | const TranslatedString & | category | ) |
|
inline |
|
inline |
bool hasID | ( | const UUID & | id | ) | const |
|
inline |
|
signal |
|
signal |
void pullFromArchiveFile | ( | File | file | ) |
void recomputeAll | ( | ) |
void recomputeObject | ( | UUID | ) |
void removeFromLibrary | ( | const UUID & | object | ) |
void saveAllImagesToFolder | ( | File | folder | ) |
void saveToArchiveFile | ( | File | file | ) |
void updateFromArchive | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |