class CODMeasurePropSheet: public CDialog, public IODRuler
Dialog to set diagram size, unit of measure, drawing scale, and coordinate mapping information. This property sheet contains three pages. A page mask value can be passed into the constructor to determine which pages are displayed. By default, all three pages are visible.
Defined in: OdMeasurePropSheet.h
VIEWS_API CODMeasurePropSheet(UINT nIDCaption, CWnd *pParentWnd = NULL, UINT iSelectPage = 0, const int nPageMask = 0)
Constructor.
VIEWS_API CODMeasurePropSheet(LPCTSTR pszCaption, CWnd *pParentWnd = NULL, UINT iSelectPage = 0, const int nPageMask = 0)
Constructor.
VIEWS_API virtual ~CODMeasurePropSheet()
Destructor.
VIEWS_API virtual SEC_INT DoModal()
Creates a modal component property sheet.
VIEWS_API virtual BOOL Create(CWnd* pParentWnd = NULL, DWORD dwStyle = (DWORD)1, DWORD dwExStyle = 0)
Creates a modeless component property sheet.
VIEWS_API void SetDefaults()
Initialize default values for the property pages.
VIEWS_API virtual void SetUnitOfMeasure(const OD_UNIT_OF_MEASURE units)
Sets the current unit of measure.
VIEWS_API virtual OD_UNIT_OF_MEASURE GetUnitOfMeasure() const
Gets the current unit of measure.
VIEWS_API virtual void SetMeasurementScale(const CODMeasure& scaleFrom, const CODMeasure& scaleTo)
Sets a scaling factor for measurements.
VIEWS_API virtual float GetScaleRatio() const
Returns the ratio used to scale measurements.
VIEWS_API virtual void MeasureToLog(const CODMeasure& measure, float& fLog, const BOOL bVertical = TRUE)
Converts from real measurement to logical units.
VIEWS_API virtual void LogToMeasure(const float& fLog, CODMeasure& measure, const BOOL bVertical = TRUE)
Converts from logical units to real measurement.
VIEWS_API virtual void MeasureSize(CODComponent* pComp, CODMeasure& width, CODMeasure& height)
Measure the width and height of a component.
VIEWS_API virtual void MeasurePosition(CODComponent* pComp, CODMeasure& x, CODMeasure& y, const OD_CONTROL_POINT nControlPoint = OD_TOP_LEFT)
Measure the position of a component.
VIEWS_API void SetMapMode(const int nMapMode)
Set the mapping mode value in the coordinate mapping page.
VIEWS_API int GetMapMode() const
Get the mapping mode value in the coordinate mapping page.
VIEWS_API void SetExtents(const CSize& szExtents)
Set the extents value in the coordinate mapping page.
VIEWS_API CSize GetExtents() const
Get the extents value in the coordinate mapping page.
VIEWS_API void SetLogExtents(const CSize& szLogExtents)
Set the logical extents value in the coordinate mapping page.
VIEWS_API CSize GetLogExtents() const
Get the logical extents value in the coordinate mapping page.
VIEWS_API void SetCanvasSize(const CSize& szCanvas)
Set the diagram size value.
VIEWS_API CSize GetCanvasSize()
Get the diagram size value.
VIEWS_API void GetMeasurementScale(CODMeasure& scaleFrom, CODMeasure& scaleTo)
Get the measurement scale values.
VIEWS_API BOOL GetYAxisUp() const
Get the direction of the YAxis.
VIEWS_API void SetYAxisUp(BOOL bIsAxisUp)
Set the direction of the YAxis
int m_nPageMask
Mask that determines which pages are visible.
CODCanvasSizePage* m_pCanvasSize
Canvas size property page.
CODDrawingScalePage* m_pDrawingScale
Drawing scale property page.
CODCoordinateMappingPage* m_pCoordinateMapping
Coordinate mapping property page.
VIEWS_API virtual void InitPages()
Initializes the property pages and adds them to the property sheet.