API Documentation
Loading...
Searching...
No Matches
LibraryManager Class Reference

#include <LibraryManager.h>

Inheritance diagram for LibraryManager:
[legend]
Collaboration diagram for LibraryManager:
[legend]

Signals

void modelAdded (UUID id)
 
void modelRemoved (UUID id)
 

Public Member Functions

 LibraryManager (QTModelManager *manager, const File &library_folder)
 
String getIcon (const UUID &id) const
 
TranslatedString getName (const UUID &id) const
 
String getType (const UUID &id) const
 
TranslatedString getSearchTerms (const UUID &id) const
 
Model loadObject (const UUID &id, bool center_model)
 
void centerModel (Model &model)
 
bool hasID (const UUID &id) const
 
Buffer< UUIDgetIDs () const
 
Buffer< StringgetTypes () const
 
Buffer< TranslatedStringgetCategories () const
 
Buffer< UUIDgetIDsByCategory (const TranslatedString &category)
 
void updateFromArchive ()
 
void addToLibrary (const UUID &object, UUID library_object)
 
void removeFromLibrary (const UUID &object)
 
void saveToArchiveFile (File file)
 
void pullFromArchiveFile (File file)
 
void saveAllImagesToFolder (File folder)
 
void addLayer (Model &model)
 
QTModelManagermanager ()
 
void recomputeObject (UUID)
 
void recomputeAll ()
 

Protected Member Functions

void updateFromArchive (const UUID &file)
 
void updateFromArchive (const File &file)
 
bool writeToLibrary (const UUID &object_to_write, UUID library_id)
 

Protected Attributes

DesignObjectLookup m_library_lookup
 
Buffer< UUIDm_ids
 
Dictionary< UUID, TranslatedStringm_names
 
Dictionary< UUID, Stringm_types
 
Dictionary< UUID, TranslatedStringm_categories
 
Dictionary< UUID, TranslatedStringm_search_terms
 
QTModelManagerm_manager
 
File m_archive_path
 

Constructor & Destructor Documentation

◆ LibraryManager()

LibraryManager ( QTModelManager * manager,
const File & library_folder )

Member Function Documentation

◆ addLayer()

void addLayer ( Model & model)

◆ addToLibrary()

void addToLibrary ( const UUID & object,
UUID library_object )

◆ centerModel()

void centerModel ( Model & model)

◆ getCategories()

Buffer< TranslatedString > getCategories ( ) const

◆ getIcon()

String getIcon ( const UUID & id) const

◆ getIDs()

Buffer< UUID > getIDs ( ) const
inline

◆ getIDsByCategory()

Buffer< UUID > getIDsByCategory ( const TranslatedString & category)

◆ getName()

TranslatedString getName ( const UUID & id) const
inline

◆ getSearchTerms()

TranslatedString getSearchTerms ( const UUID & id) const
inline

◆ getType()

String getType ( const UUID & id) const
inline

◆ getTypes()

Buffer< String > getTypes ( ) const

◆ hasID()

bool hasID ( const UUID & id) const

◆ loadObject()

Model loadObject ( const UUID & id,
bool center_model )

◆ manager()

QTModelManager * manager ( )
inline

◆ modelAdded

void modelAdded ( UUID id)
signal

◆ modelRemoved

void modelRemoved ( UUID id)
signal

◆ pullFromArchiveFile()

void pullFromArchiveFile ( File file)

◆ recomputeAll()

void recomputeAll ( )

◆ recomputeObject()

void recomputeObject ( UUID object)

◆ removeFromLibrary()

void removeFromLibrary ( const UUID & object)

◆ saveAllImagesToFolder()

void saveAllImagesToFolder ( File folder)

◆ saveToArchiveFile()

void saveToArchiveFile ( File file)

◆ updateFromArchive() [1/3]

void updateFromArchive ( )

◆ updateFromArchive() [2/3]

void updateFromArchive ( const File & file)
protected

◆ updateFromArchive() [3/3]

void updateFromArchive ( const UUID & file)
protected

◆ writeToLibrary()

bool writeToLibrary ( const UUID & object_to_write,
UUID library_id )
protected

Member Data Documentation

◆ m_archive_path

File m_archive_path
protected

◆ m_categories

Dictionary<UUID, TranslatedString> m_categories
protected

◆ m_ids

Buffer<UUID> m_ids
protected

◆ m_library_lookup

DesignObjectLookup m_library_lookup
protected

◆ m_manager

QTModelManager* m_manager
protected

◆ m_names

Dictionary<UUID, TranslatedString> m_names
protected

◆ m_search_terms

Dictionary<UUID, TranslatedString> m_search_terms
protected

◆ m_types

Dictionary<UUID, String> m_types
protected

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