13#include "GUIViewImageBase.h"
14#include "GUIDefinitions.h"
15#include "GUIViewDrawingDefinitions.h"
27 class CGUIViewImageLayer;
29 class CGUIManagerView;
30 class CInternalViewManager;
31 class CGUIManagerViewDrawingObject;
32 class CGUIManagerViewImageSelectionImage;
33 class CGUIManagerContextMenuViewDrawing;
34 class CGUIManagerContextMenuViewImageObject;
35 class CInternalCanvas;
36 class CGUIViewImageMiniMap;
37 class CGUIViewToolBar;
38 class CGUIDialogImageInfo;
39 class CGUIDialogImagePageList;
40 class CGUIDialogLayerProperties;
41 class CGUIDialogLayerProperties;
301 virtual const CResult Save(
const wchar_t* pWcsFileNameWithPath =
nullptr);
955 virtual const CResult InternalSetScale(
double f64Scale);
972 virtual const CResult InternalZoomIn(POINT ptCanvas,
double f64Ratio = 1.25);
974 virtual const CResult InternalZoomOut(POINT ptCanvas,
double f64Ratio = .8);
1715 virtual CD2DObject* GetD2DObject();
1720 virtual void SetTitle(LPCTSTR lpszTitle)
override;
1722 CGUIViewImageMiniMap* GetMiniMap()
const;
1723 virtual void UpdateTheme()
override;
1724 virtual const CResult UpdateStatusBar();
1725 virtual void ChangeImageCanvasSize();
1726 virtual void ActivatedPopupMenu(CGUIPopupMenuShell* pPopupMenu)
override;
1728 virtual void ShowMultiSelectRect(
bool bShow);
1729 virtual bool IsMultiSelectRectVisible()
const;
1731 virtual void ShowMultiSelectCandidateRect(
bool bShow);
1732 virtual bool IsMultiSelectCandidateRectVisible()
const;
1739 void SetCurrentCursor(UINT nCursor);
1740 UINT GetCurrentCursor()
const;
1742 virtual void SetFileNameOnStatusBar(
bool bSet);
1743 virtual bool IsFileNameOnStatusBar()
const;
1747 virtual void SetVisible(
bool bVisible)
override;
1749 virtual void UpdateScrollBar();
1754 virtual void SetDialogLayerPropertiesPtr(CGUIDialogLayerProperties* pDlg);
1762 virtual const CResult LoadFigure(EFileExtension eFileExt,
const wchar_t* pWcsFileNameWithPath =
nullptr,
bool bErrorMsgBox =
false);
1766 virtual const CResult InternalLoadFigureGBR(
const wchar_t* pWcsFileNameWithPath,
const wchar_t* pWcsLayerName, uint32_t u32Color,
Foundation::CFLFigureArray* pFlfa =
nullptr);
1767 virtual const CResult InternalLoadFigureDXF(
const wchar_t* pWcsFileNameWithPath);
1770 DECLARE_MESSAGE_MAP()
1771 afx_msg
void OnLButtonDblClk(UINT nFlags, CPoint ptClient);
1772 afx_msg
void OnLButtonDown(UINT nFlags, CPoint ptClient);
1773 afx_msg
void OnLButtonUp(UINT nFlags, CPoint ptClient);
1774 afx_msg
void OnMButtonDblClk(UINT nFlags, CPoint ptClient);
1775 afx_msg
void OnMButtonDown(UINT nFlags, CPoint ptClient);
1776 afx_msg
void OnMButtonUp(UINT nFlags, CPoint ptClient);
1777 afx_msg
void OnRButtonDblClk(UINT nFlags, CPoint ptClient);
1778 afx_msg
void OnRButtonDown(UINT nFlags, CPoint ptClient);
1779 afx_msg
void OnRButtonUp(UINT nFlags, CPoint ptClient);
1780 afx_msg BOOL OnMouseWheel(UINT nFlags, int16_t zDelta, CPoint pt);
1781 afx_msg
void OnSize(UINT nType, int32_t cx, int32_t cy);
1782 virtual
void PreSubclassWindow();
1783 virtual BOOL PreTranslateMessage(MSG* pMsg);
1784 virtual
void OnDraw(CDC* );
1785 afx_msg
void OnMouseMove(UINT nFlags, CPoint ptClient);
1786 afx_msg
void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
1787 afx_msg
void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
1788 afx_msg
void OnTimer(UINT_PTR nIDEvent);
1789 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
1790 afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
1791 afx_msg
void OnDropFiles(HDROP hDropInfo);
1792 afx_msg
void OnMouseLeave();
1793 afx_msg
void OnMouseHover(UINT nFlags, CPoint point);
1794 afx_msg
void OnEnterIdle(UINT nWhy, CWnd* pWho);
1797 virtual
void OnInitialUpdate();
1798 afx_msg
void OnFileOpen();
1799 afx_msg
void OnUpdateFileOpen(CCmdUI* pCmdUI);
1800 afx_msg
void OnFileIO(UINT uID);
1801 afx_msg
void OnUpdateFileIO(CCmdUI* pCmdUI);
1802 afx_msg
void OnMoreMenu();
1804 afx_msg
void OnShowImageMiniMap();
1805 afx_msg
void OnUpdateShowImageMiniMap(CCmdUI* pCmdUI);
1807 afx_msg
void OnSetZoomMode(UINT uID);
1808 afx_msg
void OnSetZoomFitMode();
1809 afx_msg
void OnSetPanningMode();
1810 afx_msg
void OnShowScrollBar();
1811 afx_msg
void OnShowStatusBar();
1812 afx_msg
void OnUpdateZoomIn(CCmdUI* pCmdUI);
1813 afx_msg
void OnUpdateZoomOut(CCmdUI* pCmdUI);
1814 afx_msg
void OnUpdateZoomFit(CCmdUI* pCmdUI);
1815 afx_msg
void OnUpdatePanningMode(CCmdUI* pCmdUI);
1816 afx_msg
void OnUpdateShowScrollBarMode(CCmdUI* pCmdUI);
1817 afx_msg
void OnUpdateShowStatusBarMode(CCmdUI* pCmdUI);
1819 afx_msg
void OnMeasurementDistance();
1820 afx_msg
void OnUpdateMeasurement(CCmdUI* pCmdUI);
1821 afx_msg
void OnSetMeasureMode(UINT uID);
1823 afx_msg
void OnFigureMenu();
1824 afx_msg
void OnUpdateFigureMenu(CCmdUI* pCmdUI);
1825 afx_msg
void OnCreateFigure(UINT uID);
1826 afx_msg
void OnUpdateCreateFigure(CCmdUI* pCmdUI);
1827 afx_msg
void OnLoadFigure();
1828 afx_msg
void OnUpdateLoadFigure(CCmdUI* pCmdUI);
1830 afx_msg
void OnLayers();
1831 afx_msg
void OnSetLayers(UINT uID);
1832 afx_msg
void OnUpdateLayers(CCmdUI* pCmdUI);
1834 afx_msg
void OnSyncView();
1835 afx_msg
void OnSetSyncView(UINT uID);
1836 afx_msg
void OnUpdateSyncView(CCmdUI* pCmdUI);
1838 afx_msg
void OnSetSyncWindow(UINT uID);
1840 afx_msg
void OnShowGrid();
1841 afx_msg
void OnUpdateShowGrid(CCmdUI* pCmdUI);
1843 afx_msg
void OnShowCrosshair();
1844 afx_msg
void OnUpdateShowCrosshair(CCmdUI* pCmdUI);
1846 afx_msg
void OnShowImageCoordinateOnCursor();
1847 afx_msg
void OnUpdateShowImageCoordinateOnCursor(CCmdUI* pCmdUI);
1849 afx_msg
void OnSetCanvasColor();
1850 afx_msg
void OnUpdateSetCanvasColor(CCmdUI* pCmdUI);
1852 afx_msg
void OnSetPixelAccuracy();
1853 afx_msg
void OnUpdateSetPixelAccuracy(CCmdUI* pCmdUI);
1855 afx_msg
void OnInformationHelp();
1857 afx_msg
void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
1858 afx_msg
void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
1861 afx_msg
void OnSetFocus(CWnd* pOldWnd);
1862 afx_msg
void OnNcLButtonDown(UINT nHitTest, CPoint point);
1863 afx_msg
void OnNcLButtonUp(UINT nHitTest, CPoint point);
1864 afx_msg LRESULT OnMessageRunOnMainThread(WPARAM wParam, LPARAM lParam);
1865 afx_msg LRESULT OnMessageRunOnMainThreadPost(WPARAM wParam, LPARAM lParam);
1866 afx_msg
void OnClipboardUpdate();
1868 afx_msg
void OnDestroy();
1870 BOOL OnNeedText(UINT
id, NMHDR* pNMHDR, LRESULT* pResult);
1871 virtual
void PostNcDestroy();
1874 virtual const
CResult MoveNamedLayerUp(int32_t i32LayerIndex);
1875 virtual const
CResult MoveNamedLayerDown(int32_t i32LayerIndex);
1877 virtual const
CResult InternalAssign(const CGUIViewBase& rhs) override;
1879 virtual const
CResult InternalConvertLayerToFigure(Foundation::CFLFigureArray& flfaResult);
1881 virtual const
CResult PreDestroy() override;
1883 virtual const
CResult DrawBackground();
1885 virtual const
CResult InitializeDIB();
1886 virtual const
CResult TerminateDIB();
1887 virtual const
CResult CommitDraw(CDC* pDC);
1888 virtual const
CResult SetDefaultView();
1896 LRESULT OnCursorPosChanged(WPARAM wParam, LPARAM lParam);
1897 LRESULT OnScaleChanged(WPARAM wParam, LPARAM lParam);
1898 LRESULT OnLazyBroadcastScaleChanged(WPARAM wParam, LPARAM lParam);
1899 LRESULT OnUpdateStatusBar(WPARAM wParam, LPARAM lParam);
1900 LRESULT OnPaneDialogClosed(WPARAM wParam, LPARAM lParam);
1902 void BroadcastOffsetChanged();
1903 void BroadcastScaleChanged();
1905 virtual
void OnReceiveBroadcast(const Base::CBroadcastMessage* pMessage) override;
1912 virtual const
CResult RestoreButtonInfo();
1913 virtual
void UpdateToolBarButtons() override;
1914 virtual
void UpdateToolBarButtonVisible() override;
1916 const
CResult SetPixelAccuracy(
double f64PixelAccuracyX,
double f64PixelAccuracyY, Foundation::ELengthUnit eLenUnit,
bool bWriteFile);
1918 void SetMinMaxScale();
1919 void SetZoomFitMode(
bool bSet);
1920 bool IsZoomFitMode();
1922 virtual
bool DrawLayerBegin();
1923 virtual
bool DrawLayerEnd();
1924 virtual
bool DrawGrid();
1925 virtual
bool DrawLayerElements();
1926 virtual
bool DrawMiniMap();
1927 virtual
bool DrawCrosshair();
1929 virtual const
CResult CreateDialogOfSetDecimalPlaceOfCoordinate();
1930 virtual const
CResult CreateDialogOfPixelAccuracy();
1931 virtual const
CResult CreateDialogOfSetViewCenterAndScale();
1932 virtual const
CResult CreateDialogOfSetScale();
1933 virtual const
CResult CreateDialogOfLayerProperties();
1934 virtual const
CResult CreateDialogLoadFigureDxf(const std::vector<Base::CFLString<
wchar_t>>& vctDxfPath);
1936 virtual
bool IsLayerPropertiesDialogVisible() const;
1937 virtual
void UpdateAllLayersGeometryFlag(
bool bUpdate);
1938 virtual
void ClearAllLayersOffscreenD2DGeometry();
1939 virtual
void BeginOffsetOnlyChanging();
1940 virtual
void EndOffsetOnlyChanging();
1946 DeclareGetClassType();
1949 CGUIViewImageMiniMap* m_pMiniMap;
1950 CGUIManagerContextMenuViewDrawing* m_pMgrContextMenu;
1951 CGUIManagerViewDrawingObject* m_pMgrViewDrawingObject;
1959 double m_f64MinScale;
1960 double m_f64MaxScale;
1962 uint32_t m_u32ForceZoomFitCount;
1965 bool m_bZoomFitMode;
1966 bool m_bPanningMode;
1967 bool m_bRButtonDragPanningMode;
1970 Foundation::CFLPoint<
double> m_flpOffset;
1971 Foundation::CFLPoint<
double> m_flpOffsetOnBegin;
1972 bool m_bOffsetOnlyChanging;
1976 int32_t m_i32CanvasLeft;
1977 int32_t m_i32CanvasTop;
1978 int32_t m_i32CanvasWidth;
1979 int32_t m_i32CanvasHeight;
1980 COLORREF m_clrClientFillColor;
1984 typedef struct sDibInfo
1986 BITMAPINFOHEADER header;
1987 RGBQUAD acolors[256];
1991 SDibInfo m_bitmapInfo;
1992 HBITMAP m_hDibSection;
1994 uint8_t* m_pDibBase;
1995 uint8_t* m_pOffBuffer;
2000 HGDIOBJ m_hPreviousSelectedGdiObj;
2004 bool m_bShiftKeyDown;
2005 bool m_bNCLButtonDown;
2006 bool m_bContextMenuFromRButtonUp;
2009 bool m_bEnableSystemMenuOnFileDialog;
2010 int16_t m_i16DownKey;
2012 int32_t m_i32LastNCPointX;
2013 int32_t m_i32LastNCPointY;
2015 bool m_bEnableSelection;
2017 bool m_bShowFigureObjectCenterOfGravityGlobal;
2018 bool m_bShowFigureObjectRectCenterGlobal;
2019 bool m_bShowFigureObjectWindingDirectionGlobal;
2020 bool m_bShowFigureObjectWindingSequenceGlobal;
2021 bool m_bShowFigureObjectArrayElementSequenceGlobal;
2022 bool m_bShowFigureObjectArrayElementSequenceRecursivelyGlobal;
2023 bool m_bShowFigureObjectInformationTextGlobal;
2025 bool m_bEnableFigureObjectRotationGlobal;
2026 bool m_bEnableFigureObjectMagnetToImageGlobal;
2027 bool m_bEnableFigureObjectAngleMagnetGlobal;
2028 uint8_t m_u8FigureObjectDecimalPlaceGlobal;
2029 uint8_t m_u8FigureObjectDecimalPlaceForPixelAccuracyGlobal;
2030 bool m_bFigureObjectExponentialNotationGlobal;
2031 bool m_bFigureObjectExponentialNotationForPixelAccuracyGlobal;
2037 bool m_bGrayFillColor;
2038 bool m_bMouseOnView;
2039 bool m_bSetFileNameOnStatusBar;
2051 CPoint m_ptPrevClient;
2052 CPoint m_ptClientRBtnDown;
2053 CPoint m_ptClientLBtnDown;
2054 int32_t m_i32MouseDragDistance;
2055 int32_t m_i32MouseDragDistanceThreshold;
2061 bool m_bShowMultiSelectRect;
2062 bool m_bShowMultiSelectCandidateRect;
2067 double m_f64PixelAccuracyX;
2068 double m_f64PixelAccuracyY;
2071 uint8_t m_u8DecimalPlaceOfCoordinate;
2073 bool m_bToBroadcastScaleChanged;
2075 CD2DObject m_d2dObject;
2078 std::map<EViewDrawingSyncOption, CGUIViewDrawing*> m_mapRootSyncView;
2081 std::vector<CGUIViewImageLayer*> m_vctDrawingLayers;
2082 std::vector<CGUIViewImageLayer*> m_vctDrawingLayersNamed;
2083 std::unordered_map<std::wstring, CGUIViewImageLayer*> m_mapDrawingLayers;
2092 bool m_bCtrlKeyDown;
2099 bool m_bShowCrosshair;
2100 bool m_bShowImageCoordinateOnCursor;
2101 bool m_bFirstShowScrollBar;
2102 bool m_bRotateFigureZOrder;
2109 CGUIPaneDialog* m_pPaneDlgLayerProperties;
2110 CGUIDialogLayerProperties* m_pDlgLayerProperties;
2111 CGUIPaneDialog* m_pPaneDlgFigureGbrAttribute;
2114 friend class CInternalViewImage;
2115 friend class CGUIManagerContextMenuViewDrawing;
2116 friend class CGUIViewImageMiniMap;
2117 friend class CGUIPropertyGridPropertyViewImageList;
2118 friend class CGUIPropertyItemViewImageList;
2119 friend class CGUIPropertyGridPropertyViewFigure;
2120 friend class CGUIPropertyGridPropertyCategory;
2121 friend class CGUIPropertyItemViewFigure;
2122 friend class CGUIChildFrameImage;
2124 friend class CGUIViewImageLayerObject;
2125 friend class CGUIManagerView;
2126 friend class CGUIManager;
2127 friend class CInternalViewManager;
2128 friend class CInternalCanvas;
2129 friend class CGUIManagerViewImageObject;
2130 friend class CGUIManagerDrawingViewImageObject;
2131 friend class CGUIManagerContextMenuViewImageObject;
2132 friend class CGUIViewImageCanvas;
2133 friend class CGUIViewToolBar;
2134 friend class CGUIMainFrame;
2135 friend class CGUIDialogCreateStencil;
2136 friend class CGUIDialogImageInfo;
2137 friend class CGUIDialogImagePageList;
2138 friend class CGUIDialogLayerProperties;
2139 friend class CGUIDialogLayerProperties;
2140 friend class CGUIDialogLoadRawImageSetting;
2141 friend class CGUIDialogLoadRawImageMultiSetting;
2142 friend class CGUIDialogHelp;
2144 friend class CGUIManagerViewDrawingObject;
Template type array class.
Definition RangeTree.h:19
FLIMaging's image class.
Definition FLImage.h:35
Template type string class.
Definition INIUtilities.h:20
FLImaging module execution result object.
Definition ResultsDef.h:1514
A class representing a point.
Definition FLPoint.h:24
A class representing a rectangle.
Definition FLRect.h:24
A class of fixed view declaration.
Definition GUIFixedViewDeclaration.h:30
A class of drawing view.
Definition GUIViewDrawing.h:52
double GetPixelAccuracyX() const
Returns the Pixel Accuracy for the X coordinate of the ImageView.
virtual const CResult Save(const wchar_t *pWcsFileNameWithPath=nullptr)
Save the drawing.
virtual FLImaging::Foundation::CFLPoint< double > GetCursorPosOnLButtonDown() const
Returns the mouse cursor position at the moment the left mouse button is pressed.
virtual const CResult ZoomAtCenter(double f64Scale)
Sets the image view scale to f64Scale while maintaining the current center coordinates.
virtual void ShowCrosshair(bool bShow)
Sets whether to show/hide the crosshair.
virtual void ShowImageCoordinateOnCursor(bool bShow)
Sets whether image coordinates are displayed at the mouse cursor position in Drawing view.
const CResult SetPixelAccuracyY(double f64PixelAccuracyY)
Sets the Pixel Accuracy Y of the ImageView.
virtual const CResult SetLayerAutoClearMode(int32_t i32LayerIndex, ELayerAutoClearMode eMode, bool bSet)
Sets the automatic clear mode of the layer.
const CResult CaptureScreen(Base::CFLImage &fliImage, bool bIncludeFrame=false)
Capture the current screen.
const CResult ClearMeasurement()
Removes all Measurement objects in the ImageView.
virtual Foundation::CFLPoint< int32_t > ConvertImageCoordToClientCoord(double f64X, double f64Y) const
Convert image coordinates to client coordinates.
virtual void SetCanvasColor(COLORREF clrCanvas)
Sets the drawing view's background color.
virtual const CResult SetLayerAutoClearMode(ELayerAutoClearMode eMode, bool bSet)
Sets the auto clear mode for all layers at once. It is applied to both Layers identified by name and ...
virtual void SetAvailableViewDrawingContextMenu(EAvailableViewDrawingContextMenu eMenu)
Sets available context menu in the drawing view.
virtual const CResult ShowToolBar(bool bShow) override
Sets whether to show/hide ToolBar.
virtual void ClearAllLayers()
Clear the drawing objects on the Layers.
const CResult SetPixelAccuracyX(double f64PixelAccuracyX)
Sets the Pixel Accuracy X of the ImageView.
virtual const CResult SetDecimalPlaceOfCoordinate(uint8_t u8DecimalPlace=2)
Sets the number of decimal places displayed when showing image coordinates at the mouse cursor positi...
const CResult ShowStatusBar(bool bShow)
Sets whether to show/hide StatusBar.
const CResult SetPixelAccuracy(double f64PixelAccuracyX, double f64PixelAccuracyY)
Sets the Pixel Accuracy X, Y of the ImageView.
Foundation::ELengthUnit GetPixelAccuracyUnit() const
Retrieves the units for Pixel Accuracy of the ImageView.
virtual Foundation::CFLPoint< double > ConvertCanvasCoordToImageCoord(int32_t i32X, int32_t i32Y) const
Convert canvas coordinates to image coordinates.
virtual void ShowGrid(bool bShow)
Sets whether to show/hide the grid on drawing view.
virtual const CResult SetLayerAutoClearMode(CGUIViewImageLayer *pLayer, ELayerAutoClearMode eMode, bool bSet)
Sets the automatic clear mode of the layer.
CGUIViewDrawing(const CGUIViewDrawing *pRhs)
Copy constructor by pointer.
DECLARE_DYNCREATE(CGUIViewDrawing) virtual ~CGUIViewDrawing()
Default destructor.
virtual Foundation::CFLPoint< double > ConvertClientCoordToImageCoord(const Foundation::CFLPoint< int32_t > &point) const
Convert client coordinates to image coordinates.
virtual Foundation::CFLPoint< int32_t > ConvertCanvasCoordToClientCoord(const Foundation::CFLPoint< int32_t > &flp) const
Convert canvas coordinates to client coordinates.
virtual bool IsSelectionEnabled() const
Determines whether selection is enabled or disabled.
virtual const CResult SelectMenuItem(EMenuItemViewDrawing eMenuItemViewDrawing)
Performs a command on the selected menu item.
virtual Foundation::CFLRect< int32_t > ConvertImageCoordToCanvasCoord(const Foundation::CFLRect< double > &flr) const
Convert image coordinates to canvas coordinates.
const CResult ShowScrollBar(bool bShow)
Sets whether to show/hide ScrollBar.
CGUIViewImageLayer * GetNamedLayer(int32_t i32Index) const
Retrieves the layer defined by name using its index. The index is defined in the order the layers are...
const CResult SetPixelAccuracyUnit(Foundation::ELengthUnit eLenUnit)
Sets the units for the Pixel Accuracy of the ImageView.
virtual double GetScale() const
Returns the current scale of the ImageView.
CGUIViewDrawing(const CGUIViewDrawing &rhs)
Copy constructor by reference.
const CResult DesynchronizePointOfView(CGUIViewDrawing *pTargetView)
Turn off viewpoint synchronization for the parameter's view.
virtual const CResult Load(Base::CFLArray< Base::CFLString< wchar_t > > &flaFilePathToLoad, EViewDrawingLoadOption eOption=EViewDrawingLoadOption_Load)
Load drawing files included in the list.
EGUIViewDrawingHitArea GetHitArea() const
Retrieves the Hit area for the current mouse position in the ImageView.
virtual Foundation::CFLPoint< double > GetViewCenterImageCoord() const
Returns the image coordinates corresponding to the center position of the image view.
virtual void SetManagerContextMenu(const CGUIManagerContextMenuViewDrawing *pMgr)
Sets the context menu manager object.
virtual bool GetLayerAutoClearMode(const CGUIViewImageLayer *pLayer, ELayerAutoClearMode eMode) const
Retrieves the auto-clear status of the layer for the specified mode.
const CResult CaptureScreen(Base::CFLImage *pFliImage, bool bIncludeFrame=false)
Capture the current screen.
virtual void EnableSelection(bool bEnable)
Sets whether to enable or disable selection when a mouse drag event occurs.
virtual Foundation::CFLRect< int32_t > ConvertCanvasCoordToClientCoord(const Foundation::CFLRect< int32_t > &flr) const
Convert canvas coordinates to client coordinates.
virtual const CResult Load(const wchar_t *pWcsPath=nullptr, EViewDrawingLoadOption eOption=EViewDrawingLoadOption_Load)
Load drawing files into the view.
virtual Foundation::CFLRect< int32_t > ConvertImageCoordToClientCoord(const Foundation::CFLRect< double > &flr) const
Convert image coordinates to client coordinates.
CGUIViewImageLayer * GetLayer(int32_t i32Index) const
Retrieves the layer pointer.
virtual EGUIViewDrawingTeachingMode GetTeachingMode() const
Return the teaching mode set for the current view.
virtual const CResult ZoomFit()
Scales the drawing view so that the image is sized to fit the drawing view.
Foundation::CFLPoint< double > GetOffset() const
Retrieves the current offset of the drawing view. When panning or changing the scale,...
virtual EZoomMode GetZoomMode() const
Return the current zoom mode set for the left mouse button click action.
const CResult GetPixelAccuracy(double &f64PixelAccuracyX, double &f64PixelAccuracyY) const
Retrieves the Pixel Accuracy X, Y of the ImageView.
virtual void SetManagerViewDrawingObject(const CGUIManagerViewDrawingObject *pMgr)
Sets the object manager object.
static CGUIViewDrawing * CreateView(int32_t i32L, int32_t i32T, int32_t i32R, int32_t i32B, bool bStandalone=false)
Create a new drawing view and return pointer.
static CGUIViewDrawing * CreateView()
Create a new drawing view and return pointer.
const CResult SynchronizePointOfView(CGUIViewDrawing *pTargetView)
Synchronizes the view point of the parameter and the current view.
int32_t GetNamedLayerCount() const
Returns the number of layers defined by name.
virtual bool IsPanningMode() const
Return whether the current mouse drag action is in panning mode.
virtual Foundation::CFLPoint< int32_t > ConvertClientCoordToCanvasCoord(const Foundation::CFLPoint< int32_t > &flp) const
Convert client coordinates to canvas coordinates.
CGUIViewImageLayer * GetLayerByName(const std::wstring &strLayerName)
Retrieves the layer pointer whose the name is same as the parameter strLayerName.
virtual const CResult SetViewCenterAndScale(const Foundation::CFLPoint< double > &flpImageCoord, double f64Scale)
Sets the view center to the specified coordinate flpImageCoord, then sets the image view scale to f64...
virtual EAvailableViewDrawingFigureContextMenu GetAvailableViewDrawingContextMenuFigure() const
Retrieves available context menu for Image Figure in this drawing view.
bool DoesLayerExist(const std::wstring &strLayerName) const
Returns whether a layer with the specified name exists.
virtual const CResult SetViewCenter(const Foundation::CFLPoint< double > &flpImageCoord)
Sets the view center to the specified coordinate flpImageCoord.
const CResult ResignRootSyncView(EViewDrawingSyncOption eViewDrawingSyncOption)
If the root view of the synchronized views for a specific option is the current drawing view,...
virtual bool IsCrosshairVisible() const
Determines whether the crosshair is shown or hidden.
virtual EAvailableViewDrawingContextMenu GetAvailableViewDrawingContextMenu() const
Retrieves a available context menu in the drawing view.
virtual CGUIManagerContextMenuViewDrawing * GetManagerContextMenu() const
Retrieves the context menu manager object.
const CResult DeleteLayerByName(const std::wstring &strLayerName)
Deletes the layer object with the specified name and releases its memory.
bool IsSynchronized(EViewDrawingSyncOption eViewDrawingSyncOption) const
Returns whether the current drawing view is synchronized with another drawing view for a particular o...
virtual Foundation::CFLRect< double > ConvertClientCoordToImageCoord(const Foundation::CFLRect< int32_t > &rect) const
Convert client coordinates to image coordinates.
virtual bool IsGridVisible() const
Determines whether the grid on drawing view is shown or hidden.
virtual CGUIManagerViewDrawingObject * GetManagerViewDrawingObject() const
Retrieves the object manager object.
virtual const CResult ZoomFitToLayer(int32_t i32LayerIndex)
Adjusts the scale and offset so that the shapes and text drawn over the selected layer fill the scree...
virtual void SetPanningMode(bool bSet)
Set or unset the mouse drag action to panning mode.
virtual FLImaging::Foundation::CFLPoint< double > GetCursorPosOnRButtonDown() const
Returns the mouse cursor position at the moment the right mouse button is pressed.
virtual COLORREF GetCanvasColor() const
Retrieves the background color of the drawing view.
const CResult GetPixelAccuracy(double *pF64PixelAccuracyX, double *pF64PixelAccuracyY) const
Retrieves the Pixel Accuracy X, Y of the ImageView.
const CResult DesynchronizePointOfViewAll()
Desynchronize the current view's viewpoint.
virtual FLImaging::Foundation::CFLPoint< double > GetCursorPosOnMButtonDown() const
Returns the mouse cursor position at the moment the middle mouse button is pressed.
virtual Foundation::CFLPoint< int32_t > ConvertCanvasCoordToClientCoord(int32_t i32X, int32_t i32Y) const
Convert canvas coordinates to client coordinates.
virtual Foundation::CFLRect< int32_t > ConvertClientCoordToCanvasCoord(const Foundation::CFLRect< int32_t > &flr) const
Convert client coordinates to canvas coordinates.
virtual Foundation::CFLPoint< int32_t > ConvertClientCoordToCanvasCoord(int32_t i32X, int32_t i32Y) const
Convert client coordinates to canvas coordinates.
virtual Foundation::CFLPoint< double > ConvertClientCoordToImageCoord(int32_t i32X, int32_t i32Y) const
Convert client coordinates to image coordinates.
virtual const CResult SelectMenuItem(EGUIViewDrawingMeasurementMode eMenuItemViewDrawing)
Performs a command on the selected menu item.
virtual uint8_t GetDecimalPlaceOfCoordinate() const
Retrieves the number of decimal places displayed for the image coordinates at the mouse cursor positi...
virtual Foundation::CFLRect< double > ConvertCanvasCoordToImageCoord(const Foundation::CFLRect< int32_t > &flr) const
Convert canvas coordinates to image coordinates.
CGUIViewImageLayer * GetLayerByName(const std::wstring &strLayerName, const CGUIViewImageLayer *pLayerRTTI)
Retrieves the layer pointer whose the name is same as the parameter strLayerName. If the layer does n...
virtual const CResult ClearFile()
Clear this view.
virtual Foundation::CFLPoint< int32_t > ConvertImageCoordToCanvasCoord(const Foundation::CFLPoint< double > &flp) const
Convert image coordinates to canvas coordinates.
EStatusPaneItem
Status Pane Item.
Definition GUIViewDrawing.h:97
@ EStatusPaneItem_CursorXValue
Mouse cursor X coordinate value.
Definition GUIViewDrawing.h:176
@ EStatusPaneItem_CursorXCaption
Mouse cursor X coordinate caption.
Definition GUIViewDrawing.h:168
@ EStatusPaneItem_WidthValue
Width value.
Definition GUIViewDrawing.h:128
@ EStatusPaneItem_FileNameCaption
File name caption item.
Definition GUIViewDrawing.h:104
@ EStatusPaneItem_WidthCaption
Width caption.
Definition GUIViewDrawing.h:120
@ EStatusPaneItem_ZoomCaption
Zoom caption.
Definition GUIViewDrawing.h:152
@ EStatusPaneItem_ItemCount
enum item count
Definition GUIViewDrawing.h:200
@ EStatusPaneItem_FileNameValue
File name value item.
Definition GUIViewDrawing.h:112
@ EStatusPaneItem_ZoomValue
Zoom value.
Definition GUIViewDrawing.h:160
@ EStatusPaneItem_CursorYValue
Mouse cursor Y coordinate value.
Definition GUIViewDrawing.h:192
@ EStatusPaneItem_HeightCaption
Height caption.
Definition GUIViewDrawing.h:136
@ EStatusPaneItem_HeightValue
Height value.
Definition GUIViewDrawing.h:144
@ EStatusPaneItem_CursorYCaption
Mouse cursor Y coordinate caption.
Definition GUIViewDrawing.h:184
virtual void SetAvailableViewDrawingContextMenuFigure(EAvailableViewDrawingFigureContextMenu eMenu)
Sets available context menu for Image Figure in this drawing view.
virtual Foundation::CFLPoint< int32_t > ConvertImageCoordToCanvasCoord(double f64X, double f64Y) const
Convert image coordinates to canvas coordinates.
double GetPixelAccuracyY() const
Retrieves the Pixel Accuracy X of the ImageView.
virtual Foundation::CFLPoint< double > ConvertCanvasCoordToImageCoord(const Foundation::CFLPoint< int32_t > &flp) const
Convert canvas coordinates to image coordinates.
CGUIViewDrawing()
Default constructor.
virtual const CResult ZoomFitToLayer(const CGUIViewImageLayer *pLayer)
Adjusts the scale and offset so that the shapes and text drawn over the selected layer fill the scree...
virtual bool IsImageCoordinateOnCursorVisible() const
Determines whether the image coordinates are displayed at the mouse cursor position in the drawing vi...
virtual const CResult SetTeachingMode(EGUIViewDrawingTeachingMode eTeachingMode)
Set or unset the current view to a mode for teaching shapes, measurements, etc.
virtual bool IsImageMiniMapVisible() const
Determines whether the minimap is shown or hidden.
virtual void SetZoomMode(EZoomMode eZoomMode)
Set or unset the Zoom mode for the left mouse button click action.
virtual void ShowImageMiniMap(bool bShow)
Sets whether to show/hide the minimap.
virtual Foundation::CFLPoint< int32_t > ConvertImageCoordToClientCoord(const Foundation::CFLPoint< double > &flp) const
Convert image coordinates to client coordinates.
double GetZoomFitScale(double f64CanvasWidth, double f64CanvasHeight) const
Retrieves the scale in zoom fit state according to the width and height of the image and the width an...
CGUIViewDrawing * GetRootSyncView(EViewDrawingSyncOption eViewDrawingSyncOption) const
Retrieves the root view synchronized with the current drawing view for a specific option.
virtual bool GetLayerAutoClearMode(int32_t i32LayerIndex, ELayerAutoClearMode eMode) const
Retrieves the auto-clear status of the layer for the specified mode.
A class of view base.
Definition GUIViewImageBase.h:43
A class of image view layer that can be drawn figures or text.
Definition GUIViewImageLayer.h:45
ELengthUnit
Indicates a unit of length.
Definition DefinitionsFoundation.h:77
EMenuItemViewDrawing
Drawing View Menu Item.
Definition GUIViewDrawingDefinitions.h:29
EViewDrawingLoadOption
Drawing View Load Options Example. The following code will load folder with recursive....
Definition GUIViewDrawingDefinitions.h:1436
EGUIViewDrawingTeachingMode
Teaching mode in Drawing view.
Definition GUIViewDrawingDefinitions.h:1125
EFigureObjectInformationText
Text options representing information for a figure object.
Definition GUIDefinitions.h:6804
EGUIViewDrawingHitArea
The area where the mouse is located on the Drawing view.
Definition GUIViewDrawingDefinitions.h:1301
ELayerAutoClearMode
In auto clear mode of the image view layer, lists cases in which auto clear of the layer is applied a...
Definition GUIDefinitions.h:5405
EGUIViewDrawingMeasurementMode
Measurement mode in Drawing view.
Definition GUIViewDrawingDefinitions.h:1162
EAvailableViewDrawingContextMenu
Available context menu for Drawing views.
Definition GUIViewDrawingDefinitions.h:692
EViewDrawingSyncOption
Drawing view synchronization options.
Definition GUIViewDrawingDefinitions.h:1700
EZoomMode
Zoom in and out mode.
Definition GUIDefinitions.h:5245
EAvailableViewDrawingFigureContextMenu
Available Context Menu for Figure Objects.
Definition GUIViewDrawingDefinitions.h:1532