API Documentation
Loading...
Searching...
No Matches
PrimitiveLineSegmentEditor.h
Go to the documentation of this file.
1#pragma once
2#include <NDEVR/Model.h>
3#include <NDEVR/Geometry.h>
4#include <QWidget>
5namespace Ui
6{
7 class PrimitiveLineSegmentEditorUI;
8}
9namespace NDEVR
10{
11 class DesignObjectLookup;
12 /**--------------------------------------------------------------------------------------------------
13 \brief Shown when user is editing lines, to assist them in adjusting the line in 3D space.
14 **/
15 class PrimitiveLineSegmentEditor : public QWidget
16 {
17 Q_OBJECT
18 public:
19 PrimitiveLineSegmentEditor(QWidget* parent = nullptr);
20 void setSegment(DesignObjectLookup* lookup, Model parent, Geometry geo, Vector<2, uint04> vertex_index);
25 void setPoint(uint01 index, Vertex<3, fltp08> vector);
26 bool event(QEvent* event) override;
27 protected:
28 void init();
29 signals:
31 protected:
36 Ui::PrimitiveLineSegmentEditorUI* ui;
37 };
38}
A core class where all Design Objects including models, materials, and geometries are stored....
Definition DesignObjectLookup.h:65
A core class within the model heirarchy containing vertex-based data (Usually 3D data) within a set c...
Definition Geometry.h:64
A line segment represented by two vertices, a start and end.
Definition Line.hpp:49
A core class that represents a node on model heirarchy. This node may contain a Geometry or one or mo...
Definition Model.h:58
Shown when user is editing lines, to assist them in adjusting the line in 3D space.
Definition PrimitiveLineSegmentEditor.h:16
void setSegment(DesignObjectLookup *lookup, Model parent, Geometry geo, Vector< 2, uint04 > vertex_index)
void setPoint(uint01 index, Vertex< 3, fltp08 > vector)
bool event(QEvent *event) override
PrimitiveLineSegmentEditor(QWidget *parent=nullptr)
DesignObjectLookup * m_lookup
Definition PrimitiveLineSegmentEditor.h:32
LineSegment< 3, fltp08 > getSegment() const
Model m_parent
Definition PrimitiveLineSegmentEditor.h:33
Vector< 2, uint04 > m_vertex_index
Definition PrimitiveLineSegmentEditor.h:35
void setEndPoint(Vertex< 3, fltp08 > vector)
Geometry m_geometry
Definition PrimitiveLineSegmentEditor.h:34
Ui::PrimitiveLineSegmentEditorUI * ui
Definition PrimitiveLineSegmentEditor.h:36
void setReferenceIndex(uint04 index)
A fixed-size array with better performance compared to dynamic containers.
Definition Vector.hpp:60
A vertex or point. A specific type of Vector used primarily for spacial location information.
Definition Vertex.hpp:48
Definition ACIColor.h:37
uint8_t uint01
-Defines an alias representing a 1 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:80
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:96
Definition FontEditor.h:6
Defines for a given type (such as sint04, fltp08, UUID, etc) a maximum, minimum, and reserved 'invali...
Definition BaseValues.hpp:233