Shown when user is editing lines, to assist them in adjusting the line in 3D space.
More...
|
|
void | init () |
| | Initializes the UI elements and connects signals.
|
|
|
Geometry | m_geometry |
| | The geometry containing the line segment.
|
|
DesignObjectLookup * | m_lookup |
| | The design object lookup for resolving references.
|
|
Model | m_parent |
| | The parent model containing the geometry.
|
|
Vector< 2, uint04 > | m_vertex_index = Vector<2, uint04>(Constant<uint04>::Invalid) |
| | The vertex indices of the segment endpoints.
|
|
Ui::PrimitiveLineSegmentEditorUI * | ui |
| | The auto-generated UI form.
|
Shown when user is editing lines, to assist them in adjusting the line in 3D space.
Definition at line 17 of file PrimitiveLineSegmentEditor.h.
◆ PrimitiveLineSegmentEditor()
| PrimitiveLineSegmentEditor::PrimitiveLineSegmentEditor |
( |
QWidget * | parent = nullptr | ) |
|
Constructs a line segment editor widget.
- Parameters
-
| [in] | parent | The parent widget. |
◆ getSegment()
Gets the current line segment from the UI values.
- Returns
- The 3D line segment defined by the current editor state.
◆ setEndPoint()
| void PrimitiveLineSegmentEditor::setEndPoint |
( |
Vertex< 3, fltp08 > | vector | ) |
|
Sets the end point of the line segment.
- Parameters
-
| [in] | vector | The new endpoint position. |
◆ setPoint()
Sets one of the two segment endpoints by index.
- Parameters
-
| [in] | index | The endpoint index (0 or 1). |
| [in] | vector | The new position for the endpoint. |
◆ setReferenceIndex()
| void PrimitiveLineSegmentEditor::setReferenceIndex |
( |
uint04 | index | ) |
|
Sets which endpoint is treated as the reference (fixed) point.
- Parameters
-
| [in] | index | The vertex index to use as the reference point. |
◆ setSegment()
Sets the line segment to edit by specifying its geometry and vertex indices.
- Parameters
-
| [in] | lookup | The design object lookup for resolving references. |
| [in] | parent | The parent model containing the geometry. |
| [in] | geo | The geometry containing the line segment. |
| [in] | vertex_index | The pair of vertex indices defining the segment endpoints. |
The documentation for this class was generated from the following file: