33#include <NDEVR/QTModelManager.h>
34#include <NDEVR/TranslatedString.h>
45 return m_names.get(
id);
49 return m_types.
get(
id);
53 return m_search_terms.get(
id);
55 Model loadObject(
const UUID&
id,
bool center_model);
56 void centerModel(
Model& model);
57 bool hasID(
const UUID&
id)
const;
62 void updateFromArchive();
63 void addToLibrary(
const UUID&
object,
UUID library_object);
64 void removeFromLibrary(
const UUID&
object);
65 void saveToArchiveFile(
File file);
66 void pullFromArchiveFile(
File file);
67 void saveAllImagesToFolder(
File folder);
68 void addLayer(
Model& model);
70 void recomputeObject(
UUID);
73 void updateFromArchive(
const UUID& file);
74 void updateFromArchive(
const File& file);
75 bool writeToLibrary(
const UUID& object_to_write,
UUID library_id);
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
decltype(auto) get(t_index_type index)
Definition Buffer.hpp:857
Definition DesignObjectLookup.h:61
Definition Dictionary.h:48
Definition LibraryManager.h:38
QTModelManager * manager()
Definition LibraryManager.h:69
String getType(const UUID &id) const
Definition LibraryManager.h:47
Dictionary< UUID, String > m_types
Definition LibraryManager.h:83
Dictionary< UUID, TranslatedString > m_categories
Definition LibraryManager.h:84
Buffer< UUID > m_ids
Definition LibraryManager.h:81
Dictionary< UUID, TranslatedString > m_search_terms
Definition LibraryManager.h:85
void modelRemoved(UUID id)
QTModelManager * m_manager
Definition LibraryManager.h:86
Buffer< UUID > getIDs() const
Definition LibraryManager.h:58
Dictionary< UUID, TranslatedString > m_names
Definition LibraryManager.h:82
File m_archive_path
Definition LibraryManager.h:87
TranslatedString getName(const UUID &id) const
Definition LibraryManager.h:43
DesignObjectLookup m_library_lookup
Definition LibraryManager.h:80
TranslatedString getSearchTerms(const UUID &id) const
Definition LibraryManager.h:51
Definition QTModelManager.h:94
Definition TranslatedString.h:9