NDEVR
API Documentation
LayerEditor.h
1#pragma once
2#include <NDEVR/Editor.h>
3namespace NDEVR
4{
5 class MaterialWidget;
7 class Toggle;
11 class NDEVR_API LayerEditor : public Editor
12 {
13 Q_OBJECT
14 public:
20 LayerEditor(const DynamicPointer<QTDesignObject>& layer, QWidget* parent = nullptr);
21 virtual ~LayerEditor();
25 virtual void updateValues() override;
30 EditorShowMode showMode() const override;
31 protected slots:
36 protected:
41 };
42}
A widget allowing easy access to change the properties of a designObject by taking user string input.
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:356
Editor(QWidget *parent=nullptr)
Constructs an Editor with no design object target.
MaterialWidget * m_material_widget
Widget for editing the layer's material properties.
Definition LayerEditor.h:37
LayerEditor(const DynamicPointer< QTDesignObject > &layer, QWidget *parent=nullptr)
Constructs a LayerEditor for the given layer design object.
DesignObjectStringWidget * m_name_widget
Widget for editing the layer name.
Definition LayerEditor.h:38
EditorShowMode showMode() const override
Returns the display mode for this editor.
Toggle * m_orient_to_camera_toggle
Toggle for orienting layer content to the camera.
Definition LayerEditor.h:40
virtual void updateValues() override
Refreshes the editor UI to reflect the current state of the layer.
Toggle * m_auto_scale_toggle
Toggle for the auto-scale layer option.
Definition LayerEditor.h:39
void updateFromUISlot()
Slot called when the user modifies layer properties through the UI.
A simple widget showing some visual properties of a Material or Model.
A Button that toggles between on and off.
Definition Toggle.h:50
The primary namespace for the NDEVR SDK.
EditorShowMode
Describes how an Editor should be displayed within the application UI.
Definition Editor.h:48