HPS.Exchange.CommonMeasurementOperator
- class HPS.Exchange.CommonMeasurementOperator : public HPS.Operator
The CommonMeasurementOperator class defines an operator which contains many often used functions when inserting measurements. Users can build a custom measurement operator by deriving from this class. This operator requires the model be loaded using the Exchange bridge, and the model must contain B-rep.
Subclassed by HPS.Exchange.MeasurementOperator
Public Functions
- void DeleteMeasurements ()
Deletes all measurements
- HPS.MaterialMappingKit GetMaterial ()
Returns the material used for the measurements
- HPS.SegmentKey GetMeasurementSegment ()
Returns the top measurement segment containing all measurements
- override string GetName ()
Returns the name of the operator.
- ulong GetPrecision ()
Returns the precision used in the measurement (number of digits after the decimal point)
- HPS.TextAttributeKit GetTextAttributes ()
Returns the text attributes used for the measurements
- override void OnViewAttached (HPS.View in_attached_view)
This function is called whenever a view is attached to this operator.
- Param in_attached_view
The view attached to this operator.
- override void OnViewDetached (HPS.View in_detached_view)
This function is called whenever a view is detached from this operator.
- Param in_detached_view
The view detached from this operator.
- void SetMaterial (HPS.MaterialMappingKit in_material_mapping)
Changes the material used for the measurements. Affects all measurements, even those already inserted.
- void SetPrecision (ulong in_precision)
Changes the precision used in the measurement (number of digits after the decimal point) Only affects future measurements.
- void SetTextAttribute (HPS.TextAttributeKit in_text_attributes)
Changes the text attributes used for the measurements. Affects all measurements, even those already inserted.
- class MeasurementDeletedEvent : public HPS.Event
Public Functions
- override HPS.Event Clone ()
Allocates and returns a copy of this MeasurementDeletedEvent.
- Return
A copy of this MeasurementDeletedEvent.
- MeasurementDeletedEvent ()
The default constructor creates an empty MeasurementDeletedEvent object.
- class MeasurementInsertedEvent : public HPS.Event
Public Functions
- override HPS.Event Clone ()
Allocates and returns a copy of this MeasurementInsertedEvent.
- Return
A copy of this MeasurementInsertedEvent.
- MeasurementInsertedEvent ()
The default constructor creates an empty MeasurementInsertedEvent object.