IODRuler Class
class IODRuler
Interface for conversion of logical units to and from real-world measurements.Defined in: OdRuler.h
Class Members
virtual void SetUnitOfMeasure(const OD_UNIT_OF_MEASURE units)
Sets the current unit of measure.
virtual OD_UNIT_OF_MEASURE GetUnitOfMeasure() const
Gets the current unit of measure.
virtual void SetMeasurementScale(const CODMeasure& scaleFrom, const CODMeasure& scaleTo)
Sets a scaling factor for measurements.
virtual float GetScaleRatio() const
Returns the ratio used to scale measurements.
virtual void MeasureToLog(const CODMeasure& measure, float& fLog, const BOOL bVertical = TRUE)
Converts from real measurement to logical units.
virtual void LogToMeasure(const float& fLog, CODMeasure& measure, const BOOL bVertical = TRUE)
Converts from logical units to real measurement.
virtual void MeasureSize(CODComponent* pComp, CODMeasure& width, CODMeasure& height)
Measure the width and height of a component.
virtual void MeasurePosition(CODComponent* pComp, CODMeasure& x, CODMeasure& y, const OD_CONTROL_POINT nControlPoint = OD_TOP_LEFT)
Measure the position of a component.