NDEVR
API Documentation
CustomDesignChart.h
1#pragma once
2#include <NDEVR/NDEVRChart.h>
3#include <NDEVR/QTDesignObject.h>
4#include <NDEVR/QCustomComboBox.h>
5#include <NDEVR/QCustomLabel.h>
6#include <NDEVR/DesignParameter.h>
7#include <NDEVR/DesignParameterAccumulator.h>
8#include <NDEVR/SnapLocation.h>
9#include <NDEVR/DesignObjectLookup.h>
10#include <NDEVR/FeatureOptions.h>
11#include <NDEVR/Translator.h>
12#include <QHBoxLayout>
13namespace NDEVR
14{
18 class CustomDesignChart : public NDEVRChart
19 {
20 public:
21 CustomDesignChart(DesignObjectLookup* lookup, QWidget* parent = nullptr);
22 void updateChart();
23 void setHorizontalParameter(const DesignParameter& param);
24 void setVerticalParameter(const DesignParameter& param);
25 void setUUID(const UUID& id);
26 Bounds<2, fltp08> bounds() const;
27 void setBounds(const Bounds<2, fltp08>& bounds);
28 protected:
29 DesignParameter m_parameters[2];
30 Buffer<UUID> m_object_ids;
31 DesignObjectLookup* m_manager = nullptr;
33
34 };
35
38 class CustomDesignChartDialog : public QWidget
39 {
40 public:
41 CustomDesignChartDialog(const DynamicPointer<QTDesignObject>& object, QWidget* parent = nullptr);
42 void setupLineEdit(const TranslatedString& label, QCustomLineEdit* edit, uint01 min_max, uint01 axis);
43 void clearBounds();
44 void setupCombo(const TranslatedString& title, QCustomComboBox* combo);
45 protected:
47 CustomDesignChart* m_chart;
48 QCustomComboBox* m_h_combo;
49 QCustomComboBox* m_v_combo;
50 QCustomLineEdit* m_h_min_edit;
51 QCustomLineEdit* m_h_max_edit;
52 QCustomLineEdit* m_v_min_edit;
53 QCustomLineEdit* m_v_max_edit;
54 };
55
56}
A specification of upper and lower bounds in N-dimensions.
Definition Bounds.hpp:54
The equivelent of std::vector but with a bit more control.
Definition Buffer.hpp:58
A chart that allows for the plotting of 2 Geometry Data sources as a scatter plot.
A core class where all Design Objects including models, materials, and geometries are stored.
A definition of data that is logically stored in the Model hierarchy.
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:356
A compact way to present a list of options to the user.
A line edit allows users to enter and edit a single line of plain text with useful editing functions,...
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
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.
uint8_t uint01
-Defines an alias representing a 1 byte, unsigned integer -Can represent exact integer values 0 throu...
Defines for a given type (such as sint04, fltp08, UUID, etc) a maximum, minimum, and reserved 'invali...