NDEVR
API Documentation
LibraryWidget

Allows the user to select Models or Materials from a list to add to the scene. More...

Public Member Functions

 LibraryWidget (QTModelManager *manager, const DynamicPointer< ModelEditController > &edit_controller, QWidget *parent=nullptr)
 Constructs a LibraryWidget for browsing and placing library models.
void setCategory (const String &category)
 Filters the library to show only models in the specified category.

Detailed Description

Allows the user to select Models or Materials from a list to add to the scene.


See DesignObjectChooser and LibraryManager

Definition at line 48 of file LibraryDialog.h.

Constructor & Destructor Documentation

◆ LibraryWidget()

LibraryWidget::LibraryWidget ( QTModelManager * manager,
const DynamicPointer< ModelEditController > & edit_controller,
QWidget * parent = nullptr )

Constructs a LibraryWidget for browsing and placing library models.

Parameters
[in]managerThe model manager providing scene data.
[in]edit_controllerThe edit controller for placing selected models into the scene.
[in]parentThe parent widget, or nullptr if no parent.

Member Function Documentation

◆ setCategory()

void LibraryWidget::setCategory ( const String & category)

Filters the library to show only models in the specified category.

Parameters
[in]categoryThe category name to filter by.

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