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 /**--------------------------------------------------------------------------------------------------
12 \brief Allows the user to adjust properties for a particular Geometry Vertex node.
13 **/
39}
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
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 core class that represents a node on model heirarchy. This node may contain a Geometry or one or mo...
Definition Model.h:58
Allows the user to input an N-dimensional point (up to 4 dimensions) with an optinal unit....
Definition PointWidget.h:57
Allows the user to adjust properties for a particular Geometry Vertex node.
Definition PrimitiveVertexEditor.h:15
uint04 m_vertex_index
Definition PrimitiveVertexEditor.h:37
void setVertex(DesignObjectLookup *lookup, Model parent, Geometry geo, uint04 vertex_index)
PointWidget * m_point_widget
Definition PrimitiveVertexEditor.h:32
Vertex< 3, fltp08 > location() const
Buffer< Vector< 2, uint04 > > findAttachedLineSegments() const
bool event(QEvent *event) override
Buffer< Button * > m_segments_buttons
Definition PrimitiveVertexEditor.h:31
DesignObjectLookup * m_lookup
Definition PrimitiveVertexEditor.h:36
PrimitiveVertexEditor(QWidget *parent=nullptr)
static Model HideVertexVisualModel(DesignObjectLookup *lookup, UUID id=UUID::CreateUUID("PrimitiveLineSegmentEditor"))
Model setVertexVisualModel(const Vertex< 3, fltp08 > &location)
QVBoxLayout * m_segment_layout
Definition PrimitiveVertexEditor.h:34
Model m_parent
Definition PrimitiveVertexEditor.h:33
void showSegmentEditor(Vector< 2, uint04 > segment, PopupInfo info)
Geometry m_geometry
Definition PrimitiveVertexEditor.h:35
static Model SetVertexVisualModel(const Vertex< 3, fltp08 > &location, DesignObjectLookup *lookup, UUID id=UUID::CreateUUID("PrimitiveLineSegmentEditor"))
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Definition UUID.h:60
static UUID CreateUUID()
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
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:96
Defines for a given type (such as sint04, fltp08, UUID, etc) a maximum, minimum, and reserved 'invali...
Definition BaseValues.hpp:233
Class which is used to pass arguments and requests for creating a popup dialog or widget....
Definition PopupInfo.h:15