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

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>

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

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< TranslatedStringgetCategories () const
 
String getIcon (const UUID &id) const
 
Buffer< UUIDgetIDs () const
 
Buffer< UUIDgetIDsByCategory (const TranslatedString &category)
 
TranslatedString getName (const UUID &id) const
 
TranslatedString getSearchTerms (const UUID &id) const
 
String getType (const UUID &id) const
 
Buffer< StringgetTypes () const
 
bool hasID (const UUID &id) const
 
 LibraryManager (QTModelManager *manager, const File &library_folder)
 
Model loadObject (const UUID &id, bool center_model)
 
QTModelManagermanager ()
 
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, TranslatedStringm_categories
 
Buffer< UUIDm_ids
 
DesignObjectLookup m_library_lookup
 
QTModelManagerm_manager
 
Dictionary< UUID, TranslatedStringm_names
 
Dictionary< UUID, TranslatedStringm_search_terms
 
Dictionary< UUID, Stringm_types
 

Detailed Description

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.


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 )

◆ 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 file: