Allows the user to adjust properties for a particular Geometry Vertex node.
More...
|
| Buffer< Vector< 2, uint04 > > | findAttachedLineSegments () const |
| | Finds all line segments attached to this vertex.
|
|
void | init () |
| | Initializes the UI elements and connects signals.
|
| void | showSegmentEditor (Vector< 2, uint04 > segment, PopupInfo info) |
| | Shows a line segment editor for the given segment.
|
|
void | updateFromUI () |
| | Writes the current UI values back to the geometry vertex.
|
|
void | updateFromVertex () |
| | Updates the UI fields from the current vertex data.
|
|
|
Geometry | m_geometry |
| | The geometry containing the vertex.
|
|
DesignObjectLookup * | m_lookup |
| | The design object lookup for resolving references.
|
|
Model | m_parent |
| | The parent model containing the geometry.
|
|
PointWidget * | m_point_widget |
| | The point widget for editing the vertex position.
|
|
QVBoxLayout * | m_segment_layout = new QVBoxLayout() |
| | Layout for the attached segment buttons.
|
|
Buffer< Button * > | m_segments_buttons |
| | Buttons for opening editors of attached line segments.
|
|
uint04 | m_vertex_index = Constant<uint04>::Invalid |
| | The index of the vertex being edited.
|
Allows the user to adjust properties for a particular Geometry Vertex node.
Definition at line 14 of file PrimitiveVertexEditor.h.
◆ PrimitiveVertexEditor()
| PrimitiveVertexEditor::PrimitiveVertexEditor |
( |
QWidget * | parent = nullptr | ) |
|
Constructs a vertex editor widget.
- Parameters
-
| [in] | parent | The parent widget. |
◆ findAttachedLineSegments()
Finds all line segments attached to this vertex.
- Returns
- A buffer of vertex index pairs for attached segments.
◆ HideVertexVisualModel()
Hides the visual indicator model in the given lookup.
- Parameters
-
| [in] | lookup | The design object lookup containing the visual model. |
| [in] | id | The UUID of the visual model to hide. |
- Returns
- The hidden visual model.
References UUID::CreateUUID().
◆ location()
| Vertex< 3, fltp08 > PrimitiveVertexEditor::location |
( |
| ) |
const |
◆ setVertex()
Sets the vertex to edit by specifying its geometry and index.
- Parameters
-
| [in] | lookup | The design object lookup for resolving references. |
| [in] | parent | The parent model containing the geometry. |
| [in] | geo | The geometry containing the vertex. |
| [in] | vertex_index | The index of the vertex within the geometry. |
◆ SetVertexVisualModel()
Creates or updates a visual indicator model at the given location in the lookup.
- Parameters
-
| [in] | location | The 3D position for the visual model. |
| [in] | lookup | The design object lookup to place the visual model in. |
| [in] | id | The UUID to assign to the visual model. |
- Returns
- The visual indicator model.
References UUID::CreateUUID(), and location().
◆ setVertexVisualModel()
| Model PrimitiveVertexEditor::setVertexVisualModel |
( |
const Vertex< 3, fltp08 > & | location | ) |
|
Creates or updates a visual indicator model at the vertex location.
- Parameters
-
| [in] | location | The 3D position for the visual model. |
- Returns
- The visual indicator model.
References location().
◆ showSegmentEditor()
Shows a line segment editor for the given segment.
- Parameters
-
| [in] | segment | The vertex index pair defining the line segment. |
| [in] | info | Popup positioning information for the editor dialog. |
The documentation for this class was generated from the following file: