13#include "GUIViewImageBase.h"
14#include "DefinitionsGUI.h"
15#include "DefinitionsGUIViewDrawing.h"
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;
302 virtual const CResult Save(
const wchar_t* pWcsFileNameWithPath =
nullptr);
623 CGUIViewImageLayer*
GetLayer(int32_t i32Index)
const;
656 CGUIViewImageLayer*
GetLayerByName(
const std::wstring& strLayerName,
const CGUIViewImageLayer* pLayerRTTI);
956 virtual const CResult InternalSetScale(
double f64Scale);
973 virtual const CResult InternalZoomIn(POINT ptCanvas,
double f64Ratio = 1.25);
975 virtual const CResult InternalZoomOut(POINT ptCanvas,
double f64Ratio = .8);
1926 virtual CD2DObject* GetD2DObject();
1931 virtual void SetTitle(LPCTSTR lpszTitle)
override;
1933 CGUIViewImageMiniMap* GetMiniMap()
const;
1934 virtual void UpdateTheme()
override;
1935 virtual const CResult UpdateStatusBar();
1936 virtual void ChangeImageCanvasSize();
1937 virtual void ActivatedPopupMenu(CGUIPopupMenuShell* pPopupMenu)
override;
1939 virtual void ShowMultiSelectRect(
bool bShow);
1940 virtual bool IsMultiSelectRectVisible()
const;
1942 virtual void ShowMultiSelectCandidateRect(
bool bShow);
1943 virtual bool IsMultiSelectCandidateRectVisible()
const;
1947 UINT GetViewDrawingContextMenuFlag(
const EMenuItemViewDrawing* pArrMenuItem, int64_t i64Count)
const;
1951 void SetCurrentCursor(UINT nCursor);
1952 UINT GetCurrentCursor()
const;
1954 virtual void SetFileNameOnStatusBar(
bool bSet);
1955 virtual bool IsFileNameOnStatusBar()
const;
1959 virtual void SetVisible(
bool bVisible)
override;
1961 virtual void UpdateScrollBar();
1966 virtual void SetDialogLayerPropertiesPtr(CGUIDialogLayerProperties* pDlg);
1974 virtual const CResult LoadFigure(EFileExtension eFileExt,
const wchar_t* pWcsFileNameWithPath =
nullptr,
bool bErrorMsgBox =
false);
1978 virtual const CResult InternalLoadFigureGBR(
const wchar_t* pWcsFileNameWithPath,
const wchar_t* pWcsLayerName, uint32_t u32Color,
Foundation::CFLFigureArray* pFlfa =
nullptr);
1979 virtual const CResult InternalLoadFigureDXF(
const wchar_t* pWcsFileNameWithPath);
1980 virtual const CResult SynchronizePointOfViewFromPopupMenu(int32_t i32ViewIndex);
1982 DECLARE_MESSAGE_MAP()
1983 afx_msg
void OnLButtonDblClk(UINT nFlags, CPoint ptClient);
1984 afx_msg
void OnLButtonDown(UINT nFlags, CPoint ptClient);
1985 afx_msg
void OnLButtonUp(UINT nFlags, CPoint ptClient);
1986 afx_msg
void OnMButtonDblClk(UINT nFlags, CPoint ptClient);
1987 afx_msg
void OnMButtonDown(UINT nFlags, CPoint ptClient);
1988 afx_msg
void OnMButtonUp(UINT nFlags, CPoint ptClient);
1989 afx_msg
void OnRButtonDblClk(UINT nFlags, CPoint ptClient);
1990 afx_msg
void OnRButtonDown(UINT nFlags, CPoint ptClient);
1991 afx_msg
void OnRButtonUp(UINT nFlags, CPoint ptClient);
1992 afx_msg BOOL OnMouseWheel(UINT nFlags, int16_t zDelta, CPoint pt);
1993 afx_msg
void OnSize(UINT nType, int32_t cx, int32_t cy);
1994 virtual
void PreSubclassWindow();
1995 virtual BOOL PreTranslateMessage(MSG* pMsg);
1996 virtual
void OnDraw(CDC* );
1997 afx_msg
void OnMouseMove(UINT nFlags, CPoint ptClient);
1998 afx_msg
void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
1999 afx_msg
void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
2000 afx_msg
void OnTimer(UINT_PTR nIDEvent);
2001 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
2002 afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
2003 afx_msg
void OnDropFiles(HDROP hDropInfo);
2004 afx_msg
void OnMouseLeave();
2005 afx_msg
void OnMouseHover(UINT nFlags, CPoint point);
2006 afx_msg
void OnEnterIdle(UINT nWhy, CWnd* pWho);
2009 virtual
void OnInitialUpdate();
2010 afx_msg
void OnFileOpen();
2011 afx_msg
void OnUpdateFileOpen(CCmdUI* pCmdUI);
2012 afx_msg
void OnFileIO(UINT uID);
2013 afx_msg
void OnUpdateFileIO(CCmdUI* pCmdUI);
2014 afx_msg
void OnMoreMenu();
2016 afx_msg
void OnSetZoomMode(UINT uID);
2017 afx_msg
void OnSetZoomFitMode();
2018 afx_msg
void OnSetPanningMode();
2019 afx_msg
void OnShowScrollBar();
2020 afx_msg
void OnShowStatusBar();
2021 afx_msg
void OnUpdateZoomIn(CCmdUI* pCmdUI);
2022 afx_msg
void OnUpdateZoomOut(CCmdUI* pCmdUI);
2023 afx_msg
void OnUpdateZoomFit(CCmdUI* pCmdUI);
2024 afx_msg
void OnUpdatePanningMode(CCmdUI* pCmdUI);
2025 afx_msg
void OnUpdateShowScrollBarMode(CCmdUI* pCmdUI);
2026 afx_msg
void OnUpdateShowStatusBarMode(CCmdUI* pCmdUI);
2028 afx_msg
void OnMeasurementDistance();
2029 afx_msg
void OnUpdateMeasurement(CCmdUI* pCmdUI);
2030 afx_msg
void OnSetMeasureMode(UINT uID);
2032 afx_msg
void OnLayers();
2033 afx_msg
void OnSetLayers(UINT uID);
2034 afx_msg
void OnUpdateLayers(CCmdUI* pCmdUI);
2036 afx_msg
void OnSyncView();
2037 afx_msg
void OnSetSyncView(UINT uID);
2038 afx_msg
void OnUpdateSyncView(CCmdUI* pCmdUI);
2040 afx_msg
void OnSetSyncWindow(UINT uID);
2042 afx_msg
void OnShowGrid();
2043 afx_msg
void OnUpdateShowGrid(CCmdUI* pCmdUI);
2045 afx_msg
void OnShowCrosshair();
2046 afx_msg
void OnUpdateShowCrosshair(CCmdUI* pCmdUI);
2048 afx_msg
void OnShowImageCoordinateOnCursor();
2049 afx_msg
void OnUpdateShowImageCoordinateOnCursor(CCmdUI* pCmdUI);
2051 afx_msg
void OnSetCanvasColor();
2052 afx_msg
void OnUpdateSetCanvasColor(CCmdUI* pCmdUI);
2054 afx_msg
void OnSetPixelAccuracy();
2055 afx_msg
void OnUpdateSetPixelAccuracy(CCmdUI* pCmdUI);
2057 afx_msg
void OnInformationHelp();
2059 afx_msg
void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
2060 afx_msg
void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
2063 afx_msg
void OnSetFocus(CWnd* pOldWnd);
2064 afx_msg
void OnNcLButtonDown(UINT nHitTest, CPoint point);
2065 afx_msg
void OnNcLButtonUp(UINT nHitTest, CPoint point);
2066 afx_msg LRESULT OnMessageRunOnMainThread(WPARAM wParam, LPARAM lParam);
2067 afx_msg LRESULT OnMessageRunOnMainThreadPost(WPARAM wParam, LPARAM lParam);
2068 afx_msg
void OnClipboardUpdate();
2070 afx_msg
void OnDestroy();
2072 BOOL OnNeedText(UINT
id, NMHDR* pNMHDR, LRESULT* pResult);
2073 virtual
void PostNcDestroy();
2076 virtual const
CResult MoveNamedLayerUp(int32_t i32LayerIndex);
2077 virtual const
CResult MoveNamedLayerDown(int32_t i32LayerIndex);
2079 virtual const
CResult InternalAssign(const CGUIViewBase& rhs) override;
2081 virtual const
CResult InternalConvertLayerToFigure(
Foundation::CFLFigureArray& flfaResult);
2083 virtual const
CResult PreDestroy() override;
2085 virtual const
CResult DrawBackground();
2087 virtual const
CResult InitializeDIB();
2088 virtual const
CResult TerminateDIB();
2089 virtual const
CResult CommitDraw(CDC* pDC);
2090 virtual const
CResult SetDefaultView();
2095 CGUIViewImageLayer* GetObjectLayer() const;
2097 LRESULT OnCursorPosChanged(WPARAM wParam, LPARAM lParam);
2098 LRESULT OnScaleChanged(WPARAM wParam, LPARAM lParam);
2099 LRESULT OnLazyBroadcastScaleChanged(WPARAM wParam, LPARAM lParam);
2100 LRESULT OnUpdateStatusBar(WPARAM wParam, LPARAM lParam);
2101 LRESULT OnPaneDialogClosed(WPARAM wParam, LPARAM lParam);
2103 void BroadcastOffsetChanged();
2104 void BroadcastScaleChanged();
2113 virtual const
CResult RestoreButtonInfo();
2114 virtual
void UpdateToolBarButtons() override;
2115 virtual
void UpdateToolBarButtonVisible() override;
2119 void SetMinMaxScale();
2120 void SetZoomFitMode(
bool bSet);
2121 bool IsZoomFitMode();
2123 virtual
bool DrawLayerBegin();
2124 virtual
bool DrawLayerEnd();
2125 virtual
bool DrawGrid();
2126 virtual
bool DrawLayerElements();
2127 virtual
bool DrawMiniMap();
2128 virtual
bool DrawCrosshair();
2130 virtual const
CResult CreateDialogOfSetDecimalPlacesOfCoordinate();
2131 virtual const
CResult CreateDialogOfPixelAccuracy();
2132 virtual const
CResult CreateDialogOfSetViewCenterAndScale();
2133 virtual const
CResult CreateDialogOfSetScale();
2134 virtual const
CResult CreateDialogOfLayerProperties();
2135 virtual const
CResult CreateDialogLoadFigureDxf(const std::vector<
Base::CFLString<
wchar_t>>& vctDxfPath);
2137 virtual
bool IsLayerPropertiesDialogVisible() const;
2138 virtual
void UpdateAllLayersGeometryFlag(
bool bUpdate);
2139 virtual
void ClearAllLayersOffscreenD2DGeometry();
2140 virtual
void BeginOffsetOnlyChanging();
2141 virtual
void EndOffsetOnlyChanging();
2147 virtual
void UpdateDragAndDropState();
2149 DeclareGetClassType();
2152 CGUIViewImageMiniMap* m_pMiniMap;
2153 CGUIManagerContextMenuViewDrawing* m_pMgrContextMenu;
2154 CGUIManagerViewDrawingObject* m_pMgrViewDrawingObject;
2162 double m_f64MinScale;
2163 double m_f64MaxScale;
2165 uint32_t m_u32ForceZoomFitCount;
2168 bool m_bZoomFitMode;
2169 bool m_bPanningMode;
2170 bool m_bRButtonDragPanningMode;
2174 Foundation::CFLPoint<
double> m_flpOffsetOnBegin;
2175 bool m_bOffsetOnlyChanging;
2179 int32_t m_i32CanvasLeft;
2180 int32_t m_i32CanvasTop;
2181 int32_t m_i32CanvasWidth;
2182 int32_t m_i32CanvasHeight;
2183 COLORREF m_clrClientFillColor;
2187 typedef struct sDibInfo
2189 BITMAPINFOHEADER header;
2190 RGBQUAD acolors[256];
2194 SDibInfo m_bitmapInfo;
2195 HBITMAP m_hDibSection;
2197 uint8_t* m_pDibBase;
2198 uint8_t* m_pOffBuffer;
2203 HGDIOBJ m_hPreviousSelectedGdiObj;
2207 bool m_bShiftKeyDown;
2208 bool m_bNCLButtonDown;
2209 bool m_bContextMenuFromRButtonUp;
2212 bool m_bEnableSystemMenuOnFileDialog;
2213 int16_t m_i16DownKey;
2215 int32_t m_i32LastNCPointX;
2216 int32_t m_i32LastNCPointY;
2218 bool m_bEnableSelection;
2220 SViewImageObjectSettings m_sVioSettings;
2221 SViofSettings m_sViofSettings;
2227 bool m_bGrayFillColor;
2228 bool m_bMouseOnView;
2229 bool m_bSetFileNameOnStatusBar;
2239 CPoint m_ptPrevClient;
2240 CPoint m_ptClientRBtnDown;
2241 CPoint m_ptClientLBtnDown;
2242 int32_t m_i32MouseDragDistance;
2243 int32_t m_i32MouseDragDistanceThreshold;
2249 bool m_bShowMultiSelectRect;
2250 bool m_bShowMultiSelectCandidateRect;
2255 double m_f64PixelAccuracyX;
2256 double m_f64PixelAccuracyY;
2259 uint8_t m_u8DecimalPlacesOfCoordinate;
2261 bool m_bToBroadcastScaleChanged;
2263 CD2DObject m_d2dObject;
2266 std::map<EViewDrawingSyncOption, CGUIViewDrawing*> m_mapRootSyncView;
2269 std::vector<CGUIViewImageLayer*> m_vctDrawingLayers;
2270 std::vector<CGUIViewImageLayer*> m_vctDrawingLayersNamed;
2271 std::unordered_map<std::wstring, CGUIViewImageLayer*> m_mapDrawingLayers;
2280 bool m_bCtrlKeyDown;
2287 bool m_bShowCrosshair;
2288 bool m_bShowImageCoordinateOnCursor;
2289 bool m_bFirstShowScrollBar;
2290 bool m_bRotateFigureZOrder;
2297 CGUIPaneDialog* m_pPaneDlgLayerProperties;
2298 CGUIDialogLayerProperties* m_pDlgLayerProperties;
2299 CGUIPaneDialog* m_pPaneDlgFigureGbrAttribute;
2302 friend class CInternalViewImage;
2303 friend class CGUIManagerContextMenuViewDrawing;
2304 friend class CGUIViewImageMiniMap;
2305 friend class CGUIPropertyGridPropertyViewImageList;
2307 friend class CGUIPropertyGridPropertyViewFigure;
2308 friend class CGUIPropertyGridPropertyCategory;
2309 friend class CGUIPropertyItemViewFigure;
2310 friend class CGUIChildFrameImage;
2312 friend class CGUIViewImageLayerObject;
2314 friend class CGUIManager;
2315 friend class CInternalViewManager;
2316 friend class CInternalCanvas;
2317 friend class CGUIManagerViewImageObject;
2318 friend class CGUIManagerDrawingViewImageObject;
2319 friend class CGUIManagerContextMenuViewImageObject;
2320 friend class CGUIViewImageCanvas;
2321 friend class CGUIViewToolBar;
2322 friend class CGUIMainFrame;
2323 friend class CGUIDialogCreateStencil;
2324 friend class CGUIDialogImageInfo;
2325 friend class CGUIDialogImagePageList;
2326 friend class CGUIDialogLayerProperties;
2327 friend class CGUIDialogLayerProperties;
2328 friend class CGUIDialogLoadRawImageSetting;
2329 friend class CGUIDialogLoadRawImageMultiSetting;
2330 friend class CGUIDialogHelp;
2332 friend class CGUIManagerViewDrawingObject;
Template type array class.
Definition FLArray.h:71
FLImaging's image class.
Definition FLImagingBase/FLImage.h:35
Template type string class.
Definition FLString.h:34
FLImaging module execution result object.
Definition FLImagingBase/ResultsDef.h:1739
A class representing a point.
Definition FLImagingFoundation/FLPoint.h:24
A class representing a rectangle.
Definition FLImagingFoundation/FLRect.h:24
A class of fixed view declaration.
Definition GUIFixedViewDeclaration.h:31
Manager class responsible for the creation, destruction, and overall management of all GUI view insta...
Definition GUIManagerView.h:58
Image View list property item class.
Definition GUIPropertyItemViewImageList.h:31
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.
void GetAvailableViewDrawingContextMenu(CGUIViewDrawingContextMenuFilter &cmFilter) const
Retrieves the current available context menu items in the Drawing view.
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.
void AddAvailableViewDrawingContextMenu(FLImaging::GUI::EMenuItemViewDrawing eMenu)
Adds specified items to the current available context menu in the Drawing view.
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 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.
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.
@ EMaxLayerCount
Maximum number of layers.
Definition GUIViewDrawing.h:212
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.
virtual const CResult SetDecimalPlacesOfCoordinate(uint8_t u8DecimalPlaces=2)
Sets the number of decimal places displayed when showing image coordinates at the mouse cursor positi...
CGUIViewDrawing(const CGUIViewDrawing *pRhs)
Copy constructor by pointer.
virtual uint8_t GetDecimalPlacesOfCoordinate() const
Retrieves the number of decimal places displayed for the image coordinates at the mouse cursor positi...
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.
static void GetViewDrawingContextMenuChildren(FLImaging::GUI::EMenuItemViewDrawing eMenu, Base::CFLArray< int32_t > &flaEnum)
Retrieves child menu items of the specified parent context menu item. If eMenu is a parent menu item ...
static Base::CFLString< wchar_t > GetViewDrawingContextMenuString(EMenuItemViewDrawing eMenu)
Retrieves the string of the specified context menu item.
virtual const CResult SelectMenuItem(EMenuItemViewDrawing eMenuItemViewDrawing)
Performs a command on the selected menu item.
bool IsViewDrawingContextMenuAvailable(const CGUIViewDrawingContextMenuFilter &cmFilter) const
Checks whether the specified context menu items are currently available in the Drawing view.
void SetAvailableViewDrawingContextMenu(FLImaging::GUI::EMenuItemViewDrawing eMenu)
Clears the current available context menu items and sets the specified items in the Drawing view.
virtual Foundation::CFLRect< int32_t > ConvertImageCoordToCanvasCoord(const Foundation::CFLRect< double > &flr) const
Convert image coordinates to canvas coordinates.
bool IsViewDrawingContextMenuAvailable(FLImaging::GUI::EMenuItemViewDrawing eMenu) const
Checks whether the specified context menu items are currently available in the Drawing view.
void RemoveAvailableViewDrawingContextMenu(const CGUIViewDrawingContextMenuFilter &cmFilter)
Removes specified items from the current available context menu in the Drawing view.
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.
void EnableAvailableViewDrawingContextMenuAll(bool bEnable)
Enables or disables all items in the available context menu in the Drawing view.
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.
void SetAvailableViewDrawingContextMenu(const FLImaging::GUI::EMenuItemViewDrawing *pArrEnum, int64_t i64Count)
Clears the current available context menu items and sets the specified items in the Drawing 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.
void AddAvailableViewDrawingContextMenu(const CGUIViewDrawingContextMenuFilter &cmFilter)
Adds specified items to the current available context menu in the Drawing view.
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.
bool IsViewDrawingContextMenuAvailable(const FLImaging::GUI::EMenuItemViewDrawing *pArrEnum, int64_t i64Count, bool bAll=false) const
Checks whether the specified context menu items are currently available in the Drawing view.
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...
bool DoesLayerExist(const std::wstring &strLayerName) const
Returns whether a layer with the specified name exists.
void GetAvailableViewDrawingContextMenu(Base::CFLArray< int32_t > &flaEnum) const
Retrieves the current available context menu items in the Drawing view.
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 CGUIManagerContextMenuViewDrawing * GetManagerContextMenu() const
Retrieves the context menu manager object.
void RemoveAvailableViewDrawingContextMenu(const FLImaging::GUI::EMenuItemViewDrawing *pArrEnum, int64_t i64Count)
Removes specified items from the current available context menu in the Drawing view.
const CResult DeleteLayerByName(const std::wstring &strLayerName)
Deletes the layer object with the specified name and releases its memory.
virtual void OnReceiveBroadcast(const Base::CBroadcastMessage *pMessage) override
Callback function. A function that receives a BroadcastMessage.
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.
void SetAvailableViewDrawingContextMenu(const CGUIViewDrawingContextMenuFilter &cmFilter)
Clears the current available context menu items and sets the specified items in the Drawing view.
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.
void AddAvailableViewDrawingContextMenu(const FLImaging::GUI::EMenuItemViewDrawing *pArrEnum, int64_t i64Count)
Adds specified items to the current available context menu in the Drawing view.
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.
void RemoveAvailableViewDrawingContextMenu(FLImaging::GUI::EMenuItemViewDrawing eMenu)
Removes specified items from the current available context menu in the Drawing view.
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 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:98
@ EStatusPaneItem_CursorXValue
Mouse cursor X coordinate value.
Definition GUIViewDrawing.h:177
@ EStatusPaneItem_CursorXCaption
Mouse cursor X coordinate caption.
Definition GUIViewDrawing.h:169
@ EStatusPaneItem_WidthValue
Width value.
Definition GUIViewDrawing.h:129
@ EStatusPaneItem_FileNameCaption
File name caption item.
Definition GUIViewDrawing.h:105
@ EStatusPaneItem_WidthCaption
Width caption.
Definition GUIViewDrawing.h:121
@ EStatusPaneItem_ZoomCaption
Zoom caption.
Definition GUIViewDrawing.h:153
@ EStatusPaneItem_ItemCount
enum item count
Definition GUIViewDrawing.h:201
@ EStatusPaneItem_FileNameValue
File name value item.
Definition GUIViewDrawing.h:113
@ EStatusPaneItem_ZoomValue
Zoom value.
Definition GUIViewDrawing.h:161
@ EStatusPaneItem_CursorYValue
Mouse cursor Y coordinate value.
Definition GUIViewDrawing.h:193
@ EStatusPaneItem_HeightCaption
Height caption.
Definition GUIViewDrawing.h:137
@ EStatusPaneItem_HeightValue
Height value.
Definition GUIViewDrawing.h:145
@ EStatusPaneItem_CursorYCaption
Mouse cursor Y coordinate caption.
Definition GUIViewDrawing.h:185
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 image view layer that can be drawn figures or text.
Definition FLImagingGUI/GUIViewImageLayer.h:46
Definition FLImagingBase/AESCryptography.h:18
Definition FLImagingFoundation/AlgorithmBase.h:16
ELengthUnit
Indicates a unit of length.
Definition FLImagingFoundation/DefinitionsFoundation.h:77
Definition D2DObject.h:12
EMenuItemViewDrawing
Drawing View Menu Item.
Definition DefinitionsGUIViewDrawing.h:29
EViewDrawingLoadOption
Drawing View Load Options Example. The following code will load folder with recursive....
Definition DefinitionsGUIViewDrawing.h:900
@ EViewDrawingLoadOption_Load
Default Load.
Definition DefinitionsGUIViewDrawing.h:915
EGUIViewDrawingTeachingMode
Teaching mode in Drawing view.
Definition DefinitionsGUIViewDrawing.h:728
EGUIViewDrawingHitArea
The area where the mouse is located on the Drawing view.
Definition DefinitionsGUIViewDrawing.h:765
ELayerAutoClearMode
In auto clear mode of the image view layer, lists cases in which auto clear of the layer is applied a...
Definition FLImagingGUI/DefinitionsGUI.h:9975
EViewDrawingSyncOption
Drawing view synchronization options.
Definition DefinitionsGUIViewDrawing.h:996
EZoomMode
Zoom in and out mode.
Definition FLImagingGUI/DefinitionsGUI.h:9701