NDEVR
API Documentation
TopDownLineworkChart

Creates an NDEVRRadialChart chart for models containing linework. More...

Inheritance diagram for TopDownLineworkChart:
[legend]
Collaboration diagram for TopDownLineworkChart:
[legend]

Public Member Functions

 TopDownLineworkChart (QWidget *parent=nullptr)
 Construct the top-down linework chart.
void onModelClickedSignal (const UUID &id, uint04 segment_index)
 Emitted when the user clicks on a model segment in the chart.
void onModelHoveredSignal (const UUID &id, uint04 segment_index, bool hovered)
 Emitted when the user hovers over or leaves a model segment.
void onSceneHoveredSignal (const Vertex< 3, fltp08 > &vertex)
 Emitted when the user hovers over the chart background.
void updateData (const Buffer< Model > &models, bool align_with_scan)
 Update the chart with model data, optionally aligning to the scan orientation.
void updateData (const Buffer< Model > &models, const Matrix< fltp08 > &transform)
 Update the chart with model data using an explicit transform.

Protected Member Functions

void addModel (const Model &deployment, const TranslatedString &point_names, const Matrix< fltp08 > &transform, QPen pen)
 Add a single model's linework to the chart.
void updateHint (TranslatedString title, const Vertex< 3, fltp08 > &vertex)
 Update the tooltip hint with the given title and vertex position.

Protected Attributes

Buffer< UUIDm_ids
 UUIDs of models currently plotted.

Detailed Description

Creates an NDEVRRadialChart chart for models containing linework.


Definition at line 10 of file GeometryLineworkCharts.h.

Constructor & Destructor Documentation

◆ TopDownLineworkChart()

TopDownLineworkChart::TopDownLineworkChart ( QWidget * parent = nullptr)

Construct the top-down linework chart.

Parameters
[in]parentOptional parent widget.

Member Function Documentation

◆ addModel()

void TopDownLineworkChart::addModel ( const Model & deployment,
const TranslatedString & point_names,
const Matrix< fltp08 > & transform,
QPen pen )
protected

Add a single model's linework to the chart.

Parameters
[in]deploymentThe model to add.
[in]point_namesDisplay label for the model.
[in]transformTransform to apply.
[in]penLine style for rendering.

◆ onModelClickedSignal()

void TopDownLineworkChart::onModelClickedSignal ( const UUID & id,
uint04 segment_index )

Emitted when the user clicks on a model segment in the chart.

Parameters
[in]idThe UUID of the clicked model.
[in]segment_indexThe index of the clicked segment.

◆ onModelHoveredSignal()

void TopDownLineworkChart::onModelHoveredSignal ( const UUID & id,
uint04 segment_index,
bool hovered )

Emitted when the user hovers over or leaves a model segment.

Parameters
[in]idThe UUID of the model.
[in]segment_indexThe segment index.
[in]hoveredTrue if entering, false if leaving.

◆ onSceneHoveredSignal()

void TopDownLineworkChart::onSceneHoveredSignal ( const Vertex< 3, fltp08 > & vertex)

Emitted when the user hovers over the chart background.

Parameters
[in]vertexThe world-space position under the cursor.

◆ updateData() [1/2]

void TopDownLineworkChart::updateData ( const Buffer< Model > & models,
bool align_with_scan )

Update the chart with model data, optionally aligning to the scan orientation.

Parameters
[in]modelsThe models containing linework geometry.
[in]align_with_scanWhether to align the chart with the scan orientation.

◆ updateData() [2/2]

void TopDownLineworkChart::updateData ( const Buffer< Model > & models,
const Matrix< fltp08 > & transform )

Update the chart with model data using an explicit transform.

Parameters
[in]modelsThe models containing linework geometry.
[in]transformThe transform to apply to the data.

◆ updateHint()

void TopDownLineworkChart::updateHint ( TranslatedString title,
const Vertex< 3, fltp08 > & vertex )
protected

Update the tooltip hint with the given title and vertex position.

Parameters
[in]titleThe tooltip label.
[in]vertexThe 3D position to display.

The documentation for this class was generated from the following file: