2#include <NDEVR/Model.h>
3#include <NDEVR/Geometry.h>
4#include <NDEVR/LineSegment.h>
8 class PrimitiveLineSegmentEditorUI;
57 bool event(QEvent* event)
override;
68 Ui::PrimitiveLineSegmentEditorUI*
ui;
A core class where all Design Objects including models, materials, and geometries are stored.
A core class within the model hierarchy containing vertex-based data (Usually 3D data) within a set c...
A core class that represents a node on model hierarchy.
void setPoint(uint01 index, Vertex< 3, fltp08 > vector)
Sets one of the two segment endpoints by index.
Vector< 2, uint04 > m_vertex_index
The vertex indices of the segment endpoints.
void setEndPoint(Vertex< 3, fltp08 > vector)
Sets the end point of the line segment.
LineSegment< 3, fltp08 > getSegment() const
Gets the current line segment from the UI values.
DesignObjectLookup * m_lookup
The design object lookup for resolving references.
Geometry m_geometry
The geometry containing the line segment.
void setSegment(DesignObjectLookup *lookup, Model parent, Geometry geo, Vector< 2, uint04 > vertex_index)
Sets the line segment to edit by specifying its geometry and vertex indices.
Model m_parent
The parent model containing the geometry.
Ui::PrimitiveLineSegmentEditorUI * ui
The auto-generated UI form.
PrimitiveLineSegmentEditor(QWidget *parent=nullptr)
Constructs a line segment editor widget.
void onSegmentUpdatedSignal()
Emitted when the segment is modified by the user.
void updateFromSegment()
Updates the UI fields from the current segment geometry data.
void setReferenceIndex(uint04 index)
Sets which endpoint is treated as the reference (fixed) point.
void init()
Initializes the UI elements and connects signals.
A fixed-size array with N dimensions used as the basis for geometric and mathematical types.
A point in N-dimensional space, used primarily for spatial location information.
The primary namespace for the NDEVR SDK.
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
uint8_t uint01
-Defines an alias representing a 1 byte, unsigned integer -Can represent exact integer values 0 throu...