Measurement

class HPS::Measurement

Measurement class, to handle the visibility of measurements

Public Functions

bool BelongToOneComponent(ComponentPathArray const &components) const

Check if the measurement is related to a set of components.

Parameters

components – The components to check

Returns

True if every measurement points belongs to a component in the list, false otherwise

inline HPS::ComponentPathArray const &Components() const
inline SegmentKey GetMeasurementSegment() const
inline MeasurementType GetMeasurementType() const
bool IsKitVisible() const

Check if the measurement VisibilityKit is visible, but not the meta visibility.

Returns

true if lines are visible, false otherwise

bool IsMetaVisible() const

Check if the measurement is meta visible.

Returns

true if the measurement is highlighted by the meta visibility, false otherwise

bool IsVisible() const

Check if the measurement is visible and meta visible.

Returns

true if lines are visible, false otherwise

Measurement() = default
Measurement(HPS::ComponentPathArray components, SegmentKey segment, MeasurementType type, KeyPath path, Canvas canvas)

Constructor, creates a measurement object

Parameters
  • paths – The paths of the measurement

  • segment – The graphic segment of the measurement

void ResetMetaVisibility()

Remove the meta visibility state of the measurement.

void SetMetaVisible(bool visible)

Modify the meta visibility of the measurement. The meta visibility is the ability to show a measurement with the Isolate activated.

Parameters

visible – the wanted visibility

void SetVisible(bool visible)

Modify the visibility of the measurement.

Parameters

visible – the wanted visibility