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

#include <DesignObjectGallery.h>

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

Public Types

enum  SelectionMode { e_no_selection , e_single_selection , e_multi_selection }
 

Signals

void onSelectedSignal (Buffer< UUID > ids)
 

Public Member Functions

 DesignObjectGallery (QWidget *parent=nullptr)
 
 ~DesignObjectGallery ()
 
void clear () override
 
const Buffer< UUID > & ids () const
 
void setButtonVisible (const UUID &id, bool visible)
 
void sortByName ()
 
void setObjects (const Buffer< UUID > &objects)
 
void setSelected (const Buffer< UUID > &id)
 
Buffer< ModelgetCurrentSelectedModels () const
 
void fillWithMaterials ()
 
void fillWithModels ()
 
const Buffer< UUID > & currentSelection () const
 
void setSelectionMode (SelectionMode selection_mode)
 
void setManager (QTModelManager *manager)
 
void setLibrary (LibraryManager *manager)
 
- Public Member Functions inherited from QCustomScrollArea
 QCustomScrollArea (QWidget *parent=nullptr)
 
bool eventFilter (QObject *, QEvent *event) override
 
void setWidget (QWidget *w)
 
void setUseFullScroll (bool use_full_scroll)
 
bool useFullScroll () const
 
QWidget * takeWidget ()
 
QSize sizeHint () const override
 

Protected Slots

void updateObject (UUID id)
 

Protected Member Functions

TranslatedString getObjectName (const UUID &id) const
 
void updateFromManager (const UUID &id)
 
void updateFromLibrary (const UUID &id)
 
void resizeEvent (QResizeEvent *resize_event) override
 
const QTModelManagermanager ()
 

Protected Attributes

UUID m_capture_id
 
Buffer< UUIDm_objects
 
Dictionary< UUID, TranslatedStringm_object_names
 
Dictionary< UUID, Button * > m_buttons
 
SelectionMode m_selection_mode = SelectionMode::e_no_selection
 
Dictionary< UUID, DynamicPointer< CaptureRequest > > m_active_requests
 
Buffer< UUIDm_current_selection
 
QTModelManagerm_manager
 
Ribbonm_browser_ribbon
 
LibraryManagerm_library_manager
 
- Protected Attributes inherited from QCustomScrollArea
bool m_use_full_scroll = false
 

Member Enumeration Documentation

◆ SelectionMode

Enumerator
e_no_selection 
e_single_selection 
e_multi_selection 

Constructor & Destructor Documentation

◆ DesignObjectGallery()

DesignObjectGallery ( QWidget * parent = nullptr)

◆ ~DesignObjectGallery()

Member Function Documentation

◆ clear()

void clear ( )
overridevirtual

Reimplemented from ButtonGallery.

◆ currentSelection()

const Buffer< UUID > & currentSelection ( ) const
inline

◆ fillWithMaterials()

void fillWithMaterials ( )

◆ fillWithModels()

void fillWithModels ( )

◆ getCurrentSelectedModels()

Buffer< Model > getCurrentSelectedModels ( ) const

◆ getObjectName()

TranslatedString getObjectName ( const UUID & id) const
protected

◆ ids()

const Buffer< UUID > & ids ( ) const
inline

◆ manager()

const QTModelManager * manager ( )
inlineprotected

◆ onSelectedSignal

void onSelectedSignal ( Buffer< UUID > ids)
signal

◆ resizeEvent()

void resizeEvent ( QResizeEvent * resize_event)
inlineoverrideprotected

◆ setButtonVisible()

void setButtonVisible ( const UUID & id,
bool visible )
inline

◆ setLibrary()

void setLibrary ( LibraryManager * manager)

◆ setManager()

void setManager ( QTModelManager * manager)

◆ setObjects()

void setObjects ( const Buffer< UUID > & objects)

◆ setSelected()

void setSelected ( const Buffer< UUID > & id)

◆ setSelectionMode()

void setSelectionMode ( SelectionMode selection_mode)

◆ sortByName()

void sortByName ( )
inline

◆ updateFromLibrary()

void updateFromLibrary ( const UUID & id)
protected

◆ updateFromManager()

void updateFromManager ( const UUID & id)
protected

◆ updateObject

void updateObject ( UUID id)
protectedslot

Member Data Documentation

◆ m_active_requests

Dictionary<UUID, DynamicPointer<CaptureRequest> > m_active_requests
protected

◆ m_browser_ribbon

Ribbon* m_browser_ribbon
protected

◆ m_buttons

Dictionary<UUID, Button*> m_buttons
protected

◆ m_capture_id

UUID m_capture_id
protected

◆ m_current_selection

Buffer<UUID> m_current_selection
protected

◆ m_library_manager

LibraryManager* m_library_manager
protected

◆ m_manager

QTModelManager* m_manager
protected

◆ m_object_names

Dictionary<UUID, TranslatedString> m_object_names
protected

◆ m_objects

Buffer<UUID> m_objects
protected

◆ m_selection_mode

SelectionMode m_selection_mode = SelectionMode::e_no_selection
protected

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