NDEVR
API Documentation
LayerSelector.h
1#pragma once
2#include <NDEVR/Layer.h>
3#include <NDEVR/QTDesignObject.h>
4#include <NDEVR/DesignObjectWidgetInterface.h>
5#include <QWidget>
6namespace NDEVR
7{
8 class LayerCombo;
12 class LayerSelector : public QWidget, public DesignObjectWidgetInterface
13 {
14 public:
19 LayerSelector(QWidget* parent = nullptr);
24 virtual void removeTarget(const DynamicPointer<QTDesignObject>& object) override;
29 virtual void addTarget(const DynamicPointer<QTDesignObject>& object) override;
34 virtual void onTargetUpdated(UUID) override;
35 protected:
39 void init();
40 protected:
42 };
43}
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:356
A combo box that displays and allows selection of layers from the scene.
Definition LayerCombo.h:118
virtual void addTarget(const DynamicPointer< QTDesignObject > &object) override
Adds a design object as a target for layer assignment.
virtual void removeTarget(const DynamicPointer< QTDesignObject > &object) override
Removes a design object from the set of targets managed by this selector.
virtual void onTargetUpdated(UUID) override
Called when a target design object is updated.
LayerSelector(QWidget *parent=nullptr)
Constructs a LayerSelector widget.
void init()
Initializes the widget layout and layer combo box.
LayerCombo * m_chooser_combo
The combo box for selecting a layer.
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.