API Documentation
Loading...
Searching...
No Matches
PrimitiveVertexEditor.h
Go to the documentation of this file.
1#pragma once
2#include <NDEVR/PointWidget.h>
3#include <NDEVR/Button.h>
4#include <NDEVR/Model.h>
5#include <NDEVR/DesignObjectLookup.h>
6#include <NDEVR/Geometry.h>
7#include <QWidget>
8#include <QVBoxLayout>
9namespace NDEVR
10{
11 class PrimitiveVertexEditor : public QWidget
12 {
13 public:
14 PrimitiveVertexEditor(QWidget* parent = nullptr);
15 void setVertex(DesignObjectLookup* lookup, Model parent, Geometry geo, uint04 vertex_index);
16 bool event(QEvent* event) override;
19 static Model SetVertexVisualModel(const Vertex<3, fltp08>& location, DesignObjectLookup* lookup, UUID id = UUID::CreateUUID("PrimitiveLineSegmentEditor"));
20 static Model HideVertexVisualModel(DesignObjectLookup* lookup, UUID id = UUID::CreateUUID("PrimitiveLineSegmentEditor"));
21 protected:
22 void init();
23 void updateFromVertex();
26 void updateFromUI();
27 protected:
31 QVBoxLayout* m_segment_layout = new QVBoxLayout();
35 };
36}
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
Definition DesignObjectLookup.h:61
Definition Geometry.h:64
Definition Model.h:54
Definition PointWidget.h:60
Definition PrimitiveVertexEditor.h:12
void init()
Definition PrimitiveVertexEditor.cpp:19
uint04 m_vertex_index
Definition PrimitiveVertexEditor.h:34
void setVertex(DesignObjectLookup *lookup, Model parent, Geometry geo, uint04 vertex_index)
Definition PrimitiveVertexEditor.cpp:11
PointWidget * m_point_widget
Definition PrimitiveVertexEditor.h:29
void updateFromUI()
Definition PrimitiveVertexEditor.cpp:75
Vertex< 3, fltp08 > location() const
Definition PrimitiveVertexEditor.cpp:108
Buffer< Vector< 2, uint04 > > findAttachedLineSegments() const
Definition PrimitiveVertexEditor.cpp:55
bool event(QEvent *event) override
Definition PrimitiveVertexEditor.cpp:84
Buffer< Button * > m_segments_buttons
Definition PrimitiveVertexEditor.h:28
DesignObjectLookup * m_lookup
Definition PrimitiveVertexEditor.h:33
static Model SetVertexVisualModel(const Vertex< 3, fltp08 > &location, DesignObjectLookup *lookup, UUID id=UUID::CreateUUID("PrimitiveLineSegmentEditor"))
Definition PrimitiveVertexEditor.cpp:122
PrimitiveVertexEditor(QWidget *parent=nullptr)
Definition PrimitiveVertexEditor.cpp:6
static Model HideVertexVisualModel(DesignObjectLookup *lookup, UUID id=UUID::CreateUUID("PrimitiveLineSegmentEditor"))
Definition PrimitiveVertexEditor.cpp:158
Model setVertexVisualModel(const Vertex< 3, fltp08 > &location)
Definition PrimitiveVertexEditor.cpp:114
QVBoxLayout * m_segment_layout
Definition PrimitiveVertexEditor.h:31
void updateFromVertex()
Definition PrimitiveVertexEditor.cpp:30
Model m_parent
Definition PrimitiveVertexEditor.h:30
void showSegmentEditor(Vector< 2, uint04 > segment, PopupInfo info)
Definition PrimitiveVertexEditor.cpp:47
Geometry m_geometry
Definition PrimitiveVertexEditor.h:32
Definition UUID.h:66
static NDEVR_BASE_API UUID CreateUUID()
Definition UUID.cpp:150
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
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:120
Definition BaseValues.hpp:272
Definition PopupInfo.h:10