API Documentation
Loading...
Searching...
No Matches
GridlinesDialog.h
Go to the documentation of this file.
1#pragma once
2#include <NDEVR/QTDesignObject.h>
3#include <NDEVR/DesignObjectWidgetInterface.h>
4#include <NDEVR/UUID.h>
5#include <QWidget>
6#if NDEVR_CROSS_SECTION
7namespace Ui
8{
9 class GridlineDialogUI;
10}
11namespace NDEVR
12{
13 class QCustomLineEdit;
14 class Toggle;
15 /**--------------------------------------------------------------------------------------------------
16 \brief Allows the user to preview and generate gridlines or contours across a selection.
17 **/
18 class GridlinesDialog : public QWidget, public DesignObjectWidgetInterface
19 {
20 Q_OBJECT
21 public:
22 GridlinesDialog(QWidget* parent = nullptr);
23 void updateSpacingFromDialog();
24 [[nodiscard]] Vector<4, fltp08> currentSpacing() const;
25 Material materialFromTarget() const;
26 void updateSpacingFromDialog(uint01 axis);
27 void onTargetUpdated(UUID id) override;
28 virtual void removeTarget(const DynamicPointer<QTDesignObject>& object) override;
29 virtual void addTarget(const DynamicPointer<QTDesignObject>& object) override;
30 void setUseGridlines(bool use_gridlines);
31 protected slots:
32
33 void orientationDialogUpdated() const;
34
35 protected:
36 Ui::GridlineDialogUI* ui;
37 QCustomLineEdit* m_spacing[4] = { nullptr, nullptr, nullptr, nullptr };
38 Toggle* m_use_spacing[4] = { nullptr, nullptr, nullptr, nullptr };
39 UUID m_material;
40 };
41}
42#endif
Definition ACIColor.h:37
Definition FontEditor.h:6