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 class PrimitiveLineSegmentEditor : public QWidget
13 {
14 Q_OBJECT
15 public:
16 PrimitiveLineSegmentEditor(QWidget* parent = nullptr);
17 void setSegment(DesignObjectLookup* lookup, Model parent, Geometry geo, Vector<2, uint04> vertex_index);
18 void updateFromSegment();
19 void setReferenceIndex(uint04 index);
21 void setEndPoint(Vertex<3, fltp08> vector);
22 void setPoint(uint01 index, Vertex<3, fltp08> vector);
23 bool event(QEvent* event) override;
24 protected:
25 void init();
26 signals:
28 protected:
33 Ui::PrimitiveLineSegmentEditorUI* ui;
34 };
35}
Definition DesignObjectLookup.h:61
Definition Geometry.h:64
A line segment represented by two vertices, a start and end.
Definition Line.hpp:55
Definition Model.h:54
Definition PrimitiveLineSegmentEditor.h:13
void init()
Definition PrimitiveLineSegmentEditor.cpp:65
void setSegment(DesignObjectLookup *lookup, Model parent, Geometry geo, Vector< 2, uint04 > vertex_index)
Definition PrimitiveLineSegmentEditor.cpp:16
void setPoint(uint01 index, Vertex< 3, fltp08 > vector)
Definition PrimitiveLineSegmentEditor.cpp:198
bool event(QEvent *event) override
Definition PrimitiveLineSegmentEditor.cpp:208
PrimitiveLineSegmentEditor(QWidget *parent=nullptr)
Definition PrimitiveLineSegmentEditor.cpp:10
DesignObjectLookup * m_lookup
Definition PrimitiveLineSegmentEditor.h:29
LineSegment< 3, fltp08 > getSegment() const
Definition PrimitiveLineSegmentEditor.cpp:175
void updateFromSegment()
Definition PrimitiveLineSegmentEditor.cpp:24
Model m_parent
Definition PrimitiveLineSegmentEditor.h:30
Vector< 2, uint04 > m_vertex_index
Definition PrimitiveLineSegmentEditor.h:32
void setEndPoint(Vertex< 3, fltp08 > vector)
Definition PrimitiveLineSegmentEditor.cpp:191
Geometry m_geometry
Definition PrimitiveLineSegmentEditor.h:31
Ui::PrimitiveLineSegmentEditorUI * ui
Definition PrimitiveLineSegmentEditor.h:33
void setReferenceIndex(uint04 index)
Definition PrimitiveLineSegmentEditor.cpp:59
An element of a vector space. An element of the real coordinate space Rn Basis vector,...
Definition Vector.hpp:62
A vertex.
Definition Vertex.hpp:54
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:98
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:120
Definition FontEditor.h:6
Definition BaseValues.hpp:272