NDEVR
API Documentation
FilteringWidget.h
1#pragma once
2#include <NDEVR/DesignObjectWidgetInterface.h>
3#include <QWidget>
4namespace Ui
5{
6 class VertexFilteringUI;
7}
8namespace NDEVR
9{
10 class QCustomLineEdit;
15 class FilteringWidget : public QWidget, public DesignObjectWidgetInterface
16 {
17 Q_OBJECT
18 public:
23 FilteringWidget(QWidget* parent = nullptr);
32 QSize sizeHint() const override;
33 protected slots:
42 protected:
49 QWidget* createFilterWidget(FilterDescription* description_ptr, bool is_active);
54 void onTargetUpdated(UUID) override;
55 protected:
58 Ui::VertexFilteringUI* ui;
59 };
60}
The equivelent of std::vector but with a bit more control.
Definition Buffer.hpp:58
void onTargetUpdated(UUID) override
Called when the target design object is updated.
Buffer< FilterDescription * > m_available_filters
The list of available filter descriptions.
Buffer< FilterDescription * > m_applied_filters
The list of currently applied filter descriptions.
void updateUIFromAvailableFilters()
Updates the UI to reflect the currently available filters.
FilteringWidget(QWidget *parent=nullptr)
Constructs a FilteringWidget.
void executeFilters()
Slot that executes the currently configured filters on the target.
Ui::VertexFilteringUI * ui
The UI form for this widget.
void setToDefaults()
Slot that resets all filter settings to their default values.
QWidget * createFilterWidget(FilterDescription *description_ptr, bool is_active)
Creates a widget for configuring a single filter.
QSize sizeHint() const override
Returns the preferred size hint for layout calculations.
A line edit allows users to enter and edit a single line of plain text with useful editing functions,...
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Definition UUID.h:61
The primary namespace for the NDEVR SDK.
@ is_active
Whether the effect is currently active.
Definition Effect.h:51
Describes special options/parameters for a GeometryFilter engine.