FLImaging 7.9.24.1
GUIViewImageWrap.h
1#pragma once
2
10
11#include "GUIViewImageBaseWrap.h"
12
13#include "GUIViewImageLayerWrap.h"
14#include "DefinitionsGUIBroadcast.h"
15
17namespace FLImaging
18{
20 namespace GUI
21 {
24
33 {
34 SupportToDuplicateObject(CGUIViewImageWrap);
35
36 public:
45
54
76 const CResult Create(int32_t i32L, int32_t i32T, int32_t i32R, int32_t i32B, size_t stParentWindowHandle = 0);
77
93 const CResult CreateAndFitParent(size_t stParentWindowHandle, bool bAutoFit = true);
94
107
118
131
149 virtual const CResult Load(const wchar_t* pWcsPath = nullptr, FLImaging::GUI::EViewImageLoadOption eOption = EViewImageLoadOption_Default);
150
170 virtual const CResult LoadAsync(const wchar_t* pWcsPath = nullptr, EViewImageLoadOption eOption = EViewImageLoadOption_Load);
171
190
211
229 virtual const CResult LoadRaw(const wchar_t* pWcsPath = nullptr, FLImaging::GUI::EViewImageLoadOption eOption = EViewImageLoadOption_Load);
230
262 virtual const CResult LoadRaw(const wchar_t* pWcsPath, int64_t i64Width, int64_t i64Height, Base::EPixelFormat ePixelFormat = Base::EPixelFormat_C1_U8, int32_t i32AlignByte = 4, int64_t i64OffsetByteFromBegin = 0, int64_t i64OffsetByteFromEnd = 0, FLImaging::GUI::EViewImageLoadOption eOption = EViewImageLoadOption_Load);
263
281 virtual const CResult Save(const wchar_t* pWcsFileNameWithPath = nullptr, bool bSaveCurrentPage = false, bool bWithLayers = false);
282
298 virtual const CResult SavePage(int32_t i32PageIndex, const wchar_t* pWcsFileNameWithPath = nullptr);
299
317 virtual const CResult SavePages(Base::CFLArray<int32_t>* pFlaPageIndices, const wchar_t* pWcsFileNameWithPath = nullptr);
318
334 virtual const CResult LoadFigure(const wchar_t* pWcsPath = nullptr, bool bErrorMsgBox = false);
335
353 virtual const CResult LoadFigureGBR(const wchar_t* pWcsPath = nullptr, const wchar_t* pWcsLayerName = nullptr, uint32_t u32Color = -1);
354
373 virtual const CResult LoadFigureGBR(const wchar_t* pWcsPath, int32_t i32LayerNo, bool bClearLayer);
374
390 virtual const CResult LoadFigureDXF(const wchar_t* pWcsPath = nullptr, bool bErrorMsgBox = false);
391
407 virtual const CResult SaveFigure(Foundation::CFLFigure* pFigure, const wchar_t* pWcsPath = nullptr);
408
420 virtual const CResult ClearFile();
421
433 virtual const CResult ClearPage();
434
450 virtual const CResult ClearPages(Base::CFLArray<int32_t>* pFlaPageIndices);
451
469
501 template<typename T>
502 const CResult CreateImage(int64_t i64Width, int64_t i64Height, int32_t i32Channel, int32_t i32Depth, Base::EValueType eType, bool bOptSeparateChannel, const Base::CMultiVar<T>& flmvFillVal, int32_t i32AlignByte = 4);
503
515
526
539
552
568 virtual const CResult SetImagePtr(Base::CFLImage* pImage);
569
584
599
616
631
646
663
664
679
694
711
726
741
758
773
788
805
820
835
852
860 virtual void ClearAllLayers();
861
885 CGUIViewImageLayerWrap GetLayer(int32_t i32Index) const;
886
910 int32_t GetLayerCount() const;
911
925 CGUIViewImageLayerWrap GetLayerByName(const wchar_t* pWcsLayerName);
926
942 const CResult DeleteLayerByName(const wchar_t* pWcsLayerName);
943
957 bool DoesLayerExist(const wchar_t* pWcsLayerName) const;
958
970 int32_t GetNamedLayerCount() const;
971
985 CGUIViewImageLayerWrap GetNamedLayer(int32_t i32Index) const;
986
1006 virtual const CResult SetLayerAutoClearMode(int32_t i32LayerIndex, ELayerAutoClearMode eMode, bool bSet);
1007
1030
1050 virtual const CResult SetLayerAutoClearMode(ELayerAutoClearMode eMode, bool bSet);
1051
1069 virtual bool GetLayerAutoClearMode(int32_t i32LayerIndex, FLImaging::GUI::ELayerAutoClearMode eMode) const;
1070
1088 virtual bool GetLayerAutoClearMode(const CGUIViewImageLayerWrap* pLayer, ELayerAutoClearMode eMode) const;
1089
1103 virtual const CResult ZoomFitToLayer(int32_t i32LayerIndex);
1104
1120 virtual const CResult ZoomFitToLayer(const CGUIViewImageLayerWrap* pLayer);
1121
1134
1149 const CResult ConvertLayerToFigureObject(int32_t i32LayerIndex);
1150
1169
1185 const CResult ConvertSelectedFigureObjectToLayer(int32_t i32LayerIndex, uint32_t u32Color = -1);
1186
1205
1221 const CResult ConvertAllFigureObjectsToLayer(int32_t i32LayerIndex, uint32_t u32Color = -1);
1222
1240 const CResult ConvertAllFigureObjectsToLayer(CGUIViewImageLayerWrap* pLayer, uint32_t u32Color = -1);
1241
1255 const CResult SelectFigureObject(int32_t i32Index);
1256
1269
1300
1318 const CResult PushFrontFigureObject(Foundation::CFLFigure& flf, bool bEnableAll = true);
1319
1342
1373
1391 const CResult PushFrontFigureObject(Foundation::CFLFigure* pFlf, bool bEnableAll = true);
1392
1415
1446
1467
1498
1516 const CResult PushBackFigureObject(Foundation::CFLFigure& flf, bool bEnableAll = true);
1517
1540
1571
1589 const CResult PushBackFigureObject(Foundation::CFLFigure* pFlf, bool bEnableAll = true);
1590
1613
1637
1658
1672 const CResult DeleteFigureObject(int32_t i32Index);
1673
1687 const CResult DeleteFigureObject(const wchar_t* pWcsObjectName);
1688
1710 Foundation::CFLFigure* GetFigureObject(int32_t i32Index) const;
1711
1734
1758 const CResult UpdateFigureObject(int32_t i32Index);
1759
1787 Foundation::CFLFigure* GetFigureObject(const wchar_t* pWcsObjectName) const;
1788
1811
1834
1857
1882
1912 Foundation::CFLFigure* PopFigureObject(const wchar_t* pWcsObjectName);
1913
1938
1950 bool DoesFigureObjectExist(int32_t i32Index);
1951
1963 bool DoesFigureObjectExist(const wchar_t* pWcsObjectName);
1964
1965
1975 int32_t GetFigureObjectCount() const;
1976
1977
1990
2006 virtual const CResult SetViewCenter(const Foundation::CFLPoint<double>& flpImageCoord);
2007
2025 virtual const CResult SetViewCenterAndScale(const Foundation::CFLPoint<double>& flpImageCoord, double f64Scale);
2026
2040 virtual const CResult ZoomAtCenter(double f64Scale);
2041
2054
2055 virtual const CResult InternalSetOffset(const Foundation::CFLPoint<double>& flpOffset);
2056
2057
2067 virtual double GetScale() const;
2068
2069 virtual const CResult InternalSetScale(double f64Scale);
2070
2084 double GetZoomFitScale(double f64ClientWidth, double f64ClientHeight) const;
2085
2086
2087 virtual const CResult InternalZoomIn(int32_t i32CanvasX, int32_t i32CanvasY, double f64Ratio = 1.25);
2088
2089 virtual const CResult InternalZoomOut(int32_t i32CanvasX, int32_t i32CanvasY, double f64Ratio = 0.8);
2090
2102 virtual const CResult ZoomFit();
2103
2124
2137
2157 virtual const CResult SetAutoZoomFitTolerance(double f64ImageSizeDiffToleranceRatio = 0.);
2158
2168 virtual double GetAutoZoomFitTolerance() const;
2169
2181 virtual const CResult MoveToPrevPage();
2182
2194 virtual const CResult MoveToNextPage();
2195
2209 virtual const CResult MoveToPage(int32_t i32PageNum);
2210
2223
2233 virtual void SetCanvasColor(uint32_t u32Color);
2234
2244 virtual uint32_t GetCanvasColor() const;
2245
2255 virtual void ShowImage(bool bShow);
2256
2266 virtual bool IsImageVisible() const;
2267
2277 virtual void ShowThumbnailView(bool bShow);
2278
2288 virtual bool IsThumbnailViewVisible() const;
2289
2299 virtual void SetFixThumbnailView(bool bFix);
2300
2310 virtual bool IsThumbnailViewFixed() const;
2311
2312
2322 virtual void ShowImageMiniMap(bool bShow);
2323
2333 virtual bool IsImageMiniMapVisible() const;
2334
2344 virtual void ShowPageIndex(bool bShow);
2345
2355 virtual bool IsPageIndexVisible() const;
2356
2357
2367 virtual void ShowGrid(bool bShow);
2368
2378 virtual bool IsGridVisible() const;
2379
2380
2390 virtual void ShowImageCenter(bool bShow);
2391
2401 virtual bool IsImageCenterVisible() const;
2402
2412 virtual void ShowImageBorder(bool bShow);
2413
2423 virtual bool IsImageBorderVisible() const;
2424
2434 virtual void ShowCrosshair(bool bShow);
2435
2445 virtual bool IsCrosshairVisible() const;
2446
2456 virtual void ShowImageCoordinateOnCursor(bool bShow);
2457
2468
2478 virtual void ShowFigureCoordinateOnCursor(bool bShow);
2479
2490
2500 virtual void ShowImagePixelValueOnCursor(bool bShow);
2501
2512
2526 virtual const CResult SetDecimalPlacesOfCoordinate(uint8_t u8DecimalPlaces = 2);
2527
2537 virtual uint8_t GetDecimalPlacesOfCoordinate() const;
2538
2548 virtual void ShowIntensitySpectrum(bool bShow);
2549
2559 virtual bool IsIntensitySpectrumVisible() const;
2560
2561
2571 virtual void ShowPixelValue(bool bShow);
2572
2582 virtual bool IsPixelValueVisible() const;
2583
2596
2609
2625 const CResult SetPixelAccuracy(double f64PixelAccuracyX, double f64PixelAccuracyY);
2626
2642 const CResult GetPixelAccuracy(double* pF64PixelAccuracyX, double* pF64PixelAccuracyY) const;
2643
2659 const CResult GetPixelAccuracy(double& f64PixelAccuracyX, double& f64PixelAccuracyY) const;
2660
2661
2675 const CResult SetPixelAccuracyX(double f64PixelAccuracyX);
2676
2686 double GetPixelAccuracyX() const;
2687
2688
2702 const CResult SetPixelAccuracyY(double f64PixelAccuracyY);
2703
2713 double GetPixelAccuracyY() const;
2714
2715
2732
2745
2747
2762 virtual const CResult SelectMenuItem(EMenuItem eMenuItem);
2763
2780
2797
2815
2817
2841 virtual const CResult InvokeMenuItem(EMenuItem eMenuItem);
2842
2861
2880
2900
2915
2932
2949
2963 const CResult SynchronizePointOfView(const CGUIViewImageWrap* pViewImageTarget);
2964
2979
2992
3018 void EnableRatioSyncPointOfView(bool bEnabled);
3019
3030
3044 const CResult SynchronizePageIndex(const CGUIViewImageWrap* pViewImageTarget);
3045
3059 const CResult DesynchronizePageIndex(const CGUIViewImageWrap* pViewImageTarget);
3060
3073
3074
3088 const CResult ShowScrollBar(bool bShow);
3089
3103 const CResult ShowStatusBar(bool bShow);
3104
3123
3138
3157
3174
3192 const CResult GetStatusBarItemElasticMinimumWidth(EViewImageStatusBarItem eItem, int32_t& i32MinimumWidth) const;
3193
3211 const CResult CaptureScreen(Base::CFLImage& fliImage, bool bIncludeFrame = false);
3212
3230 const CResult CaptureScreen(Base::CFLImage* pFliImage, bool bIncludeFrame = false);
3231
3232
3245
3266
3278
3296 const CResult PasteImageAt(int32_t i32PageIndex);
3297
3314
3331
3349 const CResult RearrangePageOrder(int32_t i32OrigPageIndex, int32_t i32TargetPageIndex);
3350
3370 const CResult RearrangePageOrder(Base::CFLArray<int32_t>* pFlaPageIndices, int32_t i32TargetPageIndex);
3371
3387 virtual const CResult SetThumbnailViewHeight(double f64ThumbnailViewRatio);
3388
3408 virtual const CResult SetThumbnailViewHeight(double f64ThumbnailViewRatio, double f64ThumbnailViewRatioMin, double f64ThumbnailViewRatioMax);
3409
3427 virtual const CResult SetThumbnailViewHeightRange(double f64ThumbnailViewRatioMin, double f64ThumbnailViewRatioMax);
3428
3438 virtual double GetThumbnailViewHeight() const;
3439
3449 virtual double GetThumbnailViewHeightMin() const;
3450
3460 virtual double GetThumbnailViewHeightMax() const;
3461
3479 virtual const CResult SetFloatingImageValueRange(float f32Min, float f32Max);
3480
3498 virtual const CResult GetFloatingImageValueRange(float& f32Min, float& f32Max) const;
3499
3517 virtual const CResult SetFloatingImageValueRange(double f64Min, double f64Max);
3518
3536 virtual const CResult GetFloatingImageValueRange(double& f64Min, double& f64Max) const;
3537
3547 virtual void EnableSelection(bool bEnable);
3548
3558 virtual bool IsSelectionEnabled() const;
3559
3569 virtual void EnableDragAndDrop(bool bEnable);
3570
3580 virtual bool IsDragAndDropEnabled() const;
3581
3582
3595
3608
3621
3634
3644 virtual void SetFigureObjectFillColorAlphaRatio(float f32Ratio);
3645
3656
3667
3678
3690 virtual void SetFigureObjectName(int32_t i32FigureObjectIndex, const wchar_t* pWcsName);
3691
3705 virtual Base::CFLString<wchar_t> GetFigureObjectName(int32_t i32FigureObjectIndex) const;
3706
3737
3750
3763
3776
3778
3803 void AddAvailableViewImageContextMenu(const FLImaging::GUI::EMenuItem* pArrEnum, int64_t i64Count);
3804
3817
3831
3833
3857
3870
3884
3903
3905
3929 bool IsViewImageContextMenuAvailable(const FLImaging::GUI::EMenuItem* pArrEnum, int64_t i64Count, bool bAll = true) const;
3930
3945
3961
3963
3988 void SetAvailableViewImageContextMenu(const FLImaging::GUI::EMenuItem* pArrEnum, int64_t i64Count);
3989
4002
4016
4018
4038
4052
4079
4096
4108 virtual void EnableFigureObjectRotation(int32_t i32FigureObjectIndex, bool bEnable);
4109
4121 virtual bool IsFigureObjectRotationEnabled(int32_t i32FigureObjectIndex) const;
4122
4132 virtual void EnableMouseWheel(bool bEnable);
4133
4143 virtual bool IsMouseWheelEnabled() const;
4144
4154 virtual void EnableMouseWheelButton(bool bEnable);
4155
4165 virtual bool IsMouseWheelButtonEnabled() const;
4166
4178 virtual void ShowFigureObjectInformationText(bool bShow = true, bool bSaveToConfig = true);
4179
4191 static void SetDefaultFigureObjectInformationTextVisible(bool bVisible = true, bool bSaveToConfig = true);
4192
4203
4214
4230 virtual void EnableFigureObjectInformationTextRealSize(bool bEnable = false, bool bSaveToConfig = true);
4231
4247 static void SetDefaultFigureObjectInformationTextRealSizeEnabled(bool bEnable = false, bool bSaveToConfig = true);
4248
4259
4270
4282 virtual void SetFigureObjectInformationTextFontSize(float f32FontSize = Foundation::g_f32GlobalDefaultDrawingFigureTextFontSize, bool bSaveToConfig = true);
4283
4295 static void SetDefaultFigureObjectInformationTextFontSize(float f32FontSize = Foundation::g_f32GlobalDefaultDrawingFigureTextFontSize, bool bSaveToConfig = true);
4296
4307
4318
4332 virtual void SetFigureObjectInformationTextOption(EFigureObjectInformationText eFigureObjectInformationText, bool bSaveToConfig = true);
4333
4347 static void SetDefaultFigureObjectInformationTextOption(EFigureObjectInformationText eFigureObjectInformationText, bool bSaveToConfig = true);
4348
4361
4374
4388 virtual void SetFigureObjectStringDecimalPlaces(uint32_t u32DecimalPlaces = 2, bool bExponentialNotation = false, bool bSaveToConfig = true);
4389
4403 static void SetDefaultFigureObjectStringDecimalPlaces(uint32_t u32DecimalPlaces = 2, bool bExponentialNotation = false, bool bSaveToConfig = true);
4404
4418 virtual void SetFigureObjectStringDecimalPlacesForPixelAccuracy(uint32_t u32DecimalPlaces = 2, bool bExponentialNotationForPixelAccuracy = false, bool bSaveToConfig = true);
4419
4433 static void SetDefaultFigureObjectStringDecimalPlacesForPixelAccuracy(uint32_t u32DecimalPlaces = 2, bool bExponentialNotationForPixelAccuracy = false, bool bSaveToConfig = true);
4434
4444 virtual uint32_t GetFigureObjectStringDecimalPlaces() const;
4445
4456
4467
4478
4489
4500
4511
4522
4536 template<typename T>
4537 FLImaging::Base::CFLString<wchar_t> GetFigureObjectFormatString(bool* pBExponentialNotation = nullptr) const;
4538
4553
4565 virtual void EnableFigureObjectMagnetToImage(bool bEnable, bool bSaveToConfig = true);
4566
4578 static void SetDefaultFigureObjectMagnetToImageEnabled(bool bEnable, bool bSaveToConfig = true);
4579
4590
4601
4613 virtual void EnableFigureObjectAngleMagnet(bool bEnable, bool bSaveToConfig = true);
4614
4626 static void SetDefaultFigureObjectAngleMagnetEnabled(bool bEnable, bool bSaveToConfig = true);
4627
4638
4649
4663 virtual const CResult PopupImageFigure(int32_t i32Idx);
4664
4680 virtual const CResult PopupImageFigure(const Base::CFLArray<int32_t>* pFlaI32Index);
4681
4694
4716 virtual const CResult PopupImageFigureByConditions(const Base::CFLString<wchar_t>& strExpression, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
4717
4733 virtual const CResult RemoveImageFigure(int32_t i32Idx, bool bPopupMsgBox = false);
4734
4752 virtual const CResult RemoveImageFigure(const Base::CFLArray<int32_t>* pFlaI32Index, bool bPopupMsgBox = false);
4753
4777 virtual const CResult RemoveImageFiguresByConditions(const Base::CFLString<wchar_t>& strExpression, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false, bool bPopupMsgBox = false);
4778
4802 virtual const CResult RemoveImageFiguresByConditionsFromAllPages(const Base::CFLString<wchar_t>& strExpression, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false, bool bPopupMsgBox = false);
4803
4817 virtual const CResult ClearImageFiguresAll(bool bPopupMsgBox = false);
4818
4832 virtual const CResult ClearImageFiguresAllPages(bool bPopupMsgBox = false);
4833
4849 virtual const CResult SetImageFigureRealSizeText(bool bRealSize = false, bool bSaveToConfig = true);
4850
4860 virtual bool IsImageFigureRealSizeText() const;
4861
4885 virtual const CResult SetImageFigureTextFont(const wchar_t* pStrFontName = nullptr, int32_t i32FontSize = 12, EGUIViewImageFontWeight eFontWeight = EGUIViewImageFontWeight_BOLD, bool bItalic = false, bool bSaveToConfig = true);
4886
4908 virtual const CResult GetImageFigureTextFont(wchar_t** ppStrFontName, int32_t& i32FontSize, EGUIViewImageFontWeight& eFontWeight, bool& bItalic) const;
4909
4925 virtual const CResult SetImageFigureBorderWidth(int32_t i32BorderWidth = 1, bool bSaveToConfig = true);
4926
4936 virtual int32_t GetImageFigureBorderWidth() const;
4937
4953 virtual const CResult SetImageFigureOpacityBorder(float f32Opacity = 1.f, bool bSaveToConfig = true);
4954
4964 virtual float GetImageFigureOpacityBorder() const;
4965
4981 virtual const CResult SetImageFigureOpacityFill(float f32Opacity = 0.3f, bool bSaveToConfig = true);
4982
4992 virtual float GetImageFigureOpacityFill() const;
4993
5009 virtual const CResult SetImageFigureTextOpacityBorder(float f32Opacity = 1.f, bool bSaveToConfig = true);
5010
5020 virtual float GetImageFigureTextOpacityBorder() const;
5021
5037 virtual const CResult SetImageFigureTextOpacityFill(float f32Opacity = 1.f, bool bSaveToConfig = true);
5038
5048 virtual float GetImageFigureTextOpacityFill() const;
5049
5059 virtual void ShowImageFigure(bool bShow);
5060
5070 virtual bool IsImageFigureVisible() const;
5071
5081 virtual void ShowImageFigureText(bool bShow);
5082
5092 virtual bool IsImageFigureTextVisible() const;
5093
5103 virtual void EnableHoverImageFigure(bool bEnable);
5104
5114 virtual bool IsHoverImageFigureEnabled() const;
5115
5126
5136 virtual void EnablePixelSegmentationMode(bool bEnable);
5137
5151 virtual void SetSegmentationLabelText(int32_t i32Channel, double f64Value, const Base::CFLString<wchar_t>& strLabelText);
5152
5170 virtual const CResult GetSegmentationLabelText(int32_t i32Channel, double f64Value, Base::CFLString<wchar_t>& strLabelTextResult) const;
5171
5184
5195
5205 virtual void EnableReductionInterpolation(bool bEnable);
5206
5216 virtual void SetPanningMode(bool bSet);
5217
5227 virtual bool IsPanningMode() const;
5228
5240 virtual void SetZoomMode(EZoomMode eZoomMode);
5241
5253 virtual EZoomMode GetZoomMode() const;
5254
5270 virtual const CResult SetTeachingMode(ETeachingMode eTeachingMode);
5271
5284
5295
5306
5328 virtual const CResult SetFreeDrawOutputMode(EFreeDrawOutputMode eFreeDrawOutputMode);
5329
5344
5366 virtual const CResult SetFreeDrawMergeMode(EFreeDrawMergeMode eFreeDrawMergeMode);
5367
5382
5392 virtual void EnableSystemMenuOnFileDialog(bool bEnable);
5393
5404
5420 virtual const CResult StartAutoPageScroll(int64_t i64PageStep = 1, double f64PeriodMs = 1000.);
5421
5434
5448 virtual const CResult StartAutoSaveImage(double f64PeriodMs = 60000.);
5449
5462
5475
5488
5507
5522
5559
5560
5580 static const CResult EnableDefaultActionConfirmation(EMenuItem eMenuItem, bool bEnable = true);
5581
5601 static const CResult EnableDefaultActionConfirmation(EMenuItemImageFigure eMenuItem, bool bEnable = true);
5602
5622 static const CResult EnableDefaultActionConfirmation(EMenuItemObjectFigure eMenuItem, bool bEnable = true);
5623
5643 static const CResult EnableDefaultActionConfirmation(EMenuItemObjectMeasure eMenuItem, bool bEnable = true);
5644
5662 static const CResult EnableDefaultActionConfirmation(uint32_t u32MenuItem, bool bEnable = true);
5663
5678
5693
5708
5723
5735 static bool IsDefaultActionConfirmationEnabled(uint32_t u32MenuItem);
5736
5756 virtual const CResult EnableActionConfirmation(EMenuItem eMenuItem, bool bEnable = true);
5757
5777 virtual const CResult EnableActionConfirmation(EMenuItemImageFigure eMenuItem, bool bEnable = true);
5778
5798 virtual const CResult EnableActionConfirmation(EMenuItemObjectFigure eMenuItem, bool bEnable = true);
5799
5819 virtual const CResult EnableActionConfirmation(EMenuItemObjectMeasure eMenuItem, bool bEnable = true);
5820
5838 virtual const CResult EnableActionConfirmation(uint32_t u32MenuItem, bool bEnable = true);
5839
5853 virtual bool IsActionConfirmationEnabled(EMenuItem eMenuItem) const;
5896
5908 virtual bool IsActionConfirmationEnabled(uint32_t u32MenuItem) const;
5909
5929
5930 private:
5931 void operator=(const CGUIViewImageWrap& rh);
5933
5934 DeclareGetClassType();
5935 };
5936}
5937}
5938
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
Multi variable class.
Definition FLImagingBase/MultiVar.h:31
Processing unit base class.
Definition FLImagingBase/ProcessingUnitBase.h:27
FLImaging module execution result object.
Definition FLImagingBase/ResultsDef.h:1704
A base class of classes representing figures.
Definition FLImagingFoundation/FLFigure.h:27
A class representing a point.
Definition FLImagingFoundation/FLPoint.h:24
A class representing a rectangle.
Definition FLImagingFoundation/FLRect.h:24
CGUIViewImageBaseWrap()
Default constructor.
Light-weight array wrapper to represent the context menu availability for Image View.
Definition FLImagingGUI/GUIViewImageContextMenuFilter.h:29
Image view layer C API wrapping class.
Definition GUIViewImageLayerWrap.h:30
Light-weight array wrapper to represent the context menu availability for figure.
Definition FLImagingGUI/GUIViewImageObjectFigureContextMenuFilter.h:31
virtual const CResult PopupImageFigureAll()
Creates figure objects from all figures stored in the current view's image.
virtual bool IsPanningMode() const
Return whether the current mouse drag action is in panning mode.
const CResult ShowStatusBarItem(EViewImageStatusBarItem eItem, bool bShow)
Shows or hides a specific item in the status bar.
static const CResult EnableDefaultActionConfirmation(EMenuItemObjectMeasure eMenuItem, bool bEnable=true)
Sets the default action confirmation state for each popup menu item.
virtual bool IsGridVisible() const
Determines whether the grid on image is shown or hidden.
const CResult ShowScrollBar(bool bShow)
Sets whether to show/hide ScrollBar.
virtual const CResult PopupImageFigure(int32_t i32Idx)
Creates the Figure object for the i32Idx-th figure stored in the current view's image.
virtual const CResult SetImagePtr(Base::CFLImage *pImage)
Sets a pointer to the image to displayed in the image view.
virtual void ShowImageMiniMap(bool bShow)
Sets whether to show/hide the minimap.
static bool IsDefaultActionConfirmationEnabled(EMenuItemObjectMeasure eMenuItem)
Gets the default action confirmation state for each popup menu item.
FLImaging::Base::CFLString< wchar_t > GetFigureObjectFormatString(bool *pBExponentialNotation=nullptr) const
Gets the format string for representing information about the figure object as a string.
virtual double GetScale() const
Returns the current scale of the ImageView.
bool IsStatusBarItemVisible(EViewImageStatusBarItem eItem) const
Checks whether a specific item in the status bar is currently visible.
virtual const CResult SetImageFigureTextFont(const wchar_t *pStrFontName=nullptr, int32_t i32FontSize=12, EGUIViewImageFontWeight eFontWeight=EGUIViewImageFontWeight_BOLD, bool bItalic=false, bool bSaveToConfig=true)
Sets the font for the string in the Image Figure.
virtual Foundation::CFLPoint< double > ConvertClientCoordToImageCoord(const Foundation::CFLPoint< int32_t > &flp)
Convert client coordinates to image coordinates.
static const CResult EnableDefaultActionConfirmation(uint32_t u32MenuItem, bool bEnable=true)
Sets the default action confirmation state for each popup menu item.
const CResult SetPixelAccuracyX(double f64PixelAccuracyX)
Sets the Pixel Accuracy X of the ImageView.
virtual const CResult RemoveImageFiguresByConditionsFromAllPages(const Base::CFLString< wchar_t > &strExpression, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false, bool bPopupMsgBox=false)
Removes shapes that meet certain conditions (e.g., width is 10 or greater, type is 'rect',...
virtual bool IsActionConfirmationEnabled(EMenuItemObjectMeasure eMenuItem) const
Returns whether action confirmation is enabled for this image view instance.
bool DoesFLImageExist()
Determines whether there is an image in the image view.
bool DoesFigureObjectExist(int32_t i32Index)
Determines whether the figure object exists corresponding to the index passed as a parameter.
void RemoveAvailableViewImageContextMenu(const FLImaging::GUI::EMenuItem *pArrEnum, int64_t i64Count)
Removes specified items from the current available context menu in the Image view.
bool DoesFLImageBufferExist()
Determines whether the image view has an image buffer.
virtual bool IsSystemMenuOnFileDialogEnabled() const
Checks if the system menu on the file dialog is enabled.
virtual void SetFigureObjectName(int32_t i32FigureObjectIndex, const wchar_t *pWcsName)
Set the name of the image view figure object.
const CResult ConvertAllFigureObjectsToLayer(int32_t i32LayerIndex, uint32_t u32Color=-1)
Draws all Figure Objects onto the selected layer. Remove the Figure Object on success.
virtual const CResult PopupImageFigure(const Base::CFLArray< int32_t > *pFlaI32Index)
Creates figure objects from figures of specific indices stored in the current view's image.
double GetPixelAccuracyY() const
Retrieves the Pixel Accuracy X of the ImageView.
virtual bool IsInteractionActionEnabled(EGUIViewImageInteractionAction eAction) const
Checks whether a specific interaction action is enabled for the image view.
const CResult PushFrontFigureObject(Foundation::CFLFigure &flf, EAvailableFigureContextMenu eMenu, EAvailableFigureContextMenu2 eMenu2)
Add Figure to the front.
virtual void EnableFigureObjectInformationTextRealSize(bool bEnable=false, bool bSaveToConfig=true)
Sets whether the information text of image view figure objects should scale according to the image vi...
virtual Foundation::CFLRect< int32_t > ConvertImageCoordToClientCoord(const Foundation::CFLRect< double > &flr)
Convert image coordinates to client coordinates.
virtual const CResult SelectMenuItem(EMenuItemObjectFigure eMenuItem)
Performs a command on the selected menu item.
virtual Foundation::CFLPoint< int32_t > ConvertImageCoordToCanvasCoord(double x, double y)
Convert image coordinates to canvas coordinates.
virtual bool IsFigureObjectInformationTextVisible() const
Returns whether the globally set figure object displays an information string.
virtual Foundation::CFLPoint< int32_t > ConvertImageCoordToClientCoord(double x, double y)
Convert image coordinates to client coordinates.
virtual bool GetLayerAutoClearMode(int32_t i32LayerIndex, FLImaging::GUI::ELayerAutoClearMode eMode) const
Retrieves the auto-clear status of the layer for the specified mode.
static bool GetDefaultFigureObjectInformationTextVisible()
Returns whether newly created figure objects display an information string by default globally.
bool DoesFigureObjectExist(const wchar_t *pWcsObjectName)
Retrieves the existence of a figure object whose figure name matches the string passed as a parameter...
static const CResult EnableDefaultActionConfirmation(EMenuItemObjectFigure eMenuItem, bool bEnable=true)
Sets the default action confirmation state for each popup menu item.
void AddAvailableViewImageContextMenu(FLImaging::GUI::EMenuItem eMenu)
Adds specified items to the current available context menu in the Image view.
virtual EViewImageFigureObjectMagnetOption GetFigureObjectMagnetOption() const
Get the magnet option of the image view figure object.
virtual const CResult SetImageFigureOpacityFill(float f32Opacity=0.3f, bool bSaveToConfig=true)
Sets the default fill opacity applied when drawing a Figure stored in an image.
virtual const CResult SetAutoZoomFitTolerance(double f64ImageSizeDiffToleranceRatio=0.)
Sets the tolerance ratio used to determine whether the current viewport is preserved when the image s...
const CResult SynchronizePageIndex(const CGUIViewImageWrap *pViewImageTarget)
Synchronizes the parameter's view with the selected page index of the current view.
const CResult UpdateFigureObject(int32_t i32Index)
Updates the figure object and its rendering state after modification.
static void SetDefaultFigureObjectMagnetOption(EViewImageFigureObjectMagnetOption eOption)
Set the default magnet options of newly created image view figure objects globally.
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 EZoomMode GetZoomMode() const
Return the current zoom mode set for the left mouse button click action.
CGUIViewImageLayerWrap GetLayer(int32_t i32Index) const
Retrieves a user-accessible layer by index.
virtual void ClearAllLayers()
Clear the drawing objects above vctDrawingLayers, MeasureLayer, and FigureLayer.
const CResult SetStatusBarItemElasticMinimumWidth(EViewImageStatusBarItem eItem, int32_t i32MinimumWidth)
Sets the elastic minimum width of a specific item in the status bar. This defines the minimum width t...
virtual const CResult SelectMenuItem(EMenuItemObjectMeasure eMenuItem)
Performs a command on the selected menu item.
virtual const CResult SetLayerAutoClearMode(int32_t i32LayerIndex, ELayerAutoClearMode eMode, bool bSet)
Sets the automatic clear mode of the layer.
virtual bool IsFigureObjectInformationTextRealSizeEnabled() const
Returns whether the information text of image view figure objects scales according to the image view'...
const CResult PushBackFigureObject(Foundation::CFLFigure *pFlf, const FLImaging::GUI::EMenuItemObjectFigure *pArrEnum, int64_t i64Count)
Add Figure to the back, making only the given menu items available.
virtual const CResult SetFloatingImageValueRange(double f64Min, double f64Max)
Specifies the maximum and minimum value for the pixel value of the floating point image....
virtual const CResult LoadRaw(const wchar_t *pWcsPath=nullptr, FLImaging::GUI::EViewImageLoadOption eOption=EViewImageLoadOption_Load)
Load .raw image file into the view. Calling this function activates a dialog that sets the width,...
virtual bool IsReductionInterpolationEnabled() const
Returns whether interpolation is performed when the image is reduced.
virtual float GetFigureObjectFillColorAlphaRatio() const
Returns the globally configured fill alpha ratio for figure objects.
const CResult SetPixelAccuracyY(double f64PixelAccuracyY)
Sets the Pixel Accuracy Y of the ImageView.
virtual const CResult SetDecimalPlacesOfCoordinate(uint8_t u8DecimalPlaces=2)
Sets the number of decimal places displayed when showing image coordinates at the mouse cursor positi...
const CResult SelectFigureObject(int32_t i32Index)
Select the Figure Object in the Image View.
virtual const CResult LoadAsync(const FLImaging::Base::CFLArray< FLImaging::Base::CFLString< wchar_t > > *pFlaStrPath, EViewImageLoadOption eOption=EViewImageLoadOption_Load)
Load image files into the view asynchronously.
virtual void SetSegmentationLabelText(int32_t i32Channel, double f64Value, const Base::CFLString< wchar_t > &strLabelText)
Sets the label for a specific pixel value in the image view.
void GetAvailableViewImageContextMenu(CGUIViewImageContextMenuFilter &cmFilter) const
Retrieves the current available context menu items in the Image view.
virtual uint32_t GetFigureObjectStringDecimalPlacesForPixelAccuracy() const
Retrieves the number of decimal places displayed when representing the information of a figure object...
virtual const CResult GetImageFigureTextFont(wchar_t **ppStrFontName, int32_t &i32FontSize, EGUIViewImageFontWeight &eFontWeight, bool &bItalic) const
Gets the font for the string in the image Figure.
virtual void EnableMouseWheelButton(bool bEnable)
Sets whether to enable mouse wheel button(MButton).
virtual void EnableDragAndDrop(bool bEnable)
Sets whether to enable or disable to load files with drag and drop.
const CResult DeleteFigureObject(int32_t i32Index)
Removes a Figure.
const CResult Create(int32_t i32L, int32_t i32T, int32_t i32R, int32_t i32B, size_t stParentWindowHandle=0)
Create an image view window.
const CResult PushFrontFigureObject(Foundation::CFLFigure *pFlf, EAvailableFigureContextMenu eMenu, EAvailableFigureContextMenu2 eMenu2)
Add Figure to the front.
virtual void SetZoomMode(EZoomMode eZoomMode)
Set or unset the Zoom mode for the left mouse button click action.
virtual const CResult LoadFigureGBR(const wchar_t *pWcsPath, int32_t i32LayerNo, bool bClearLayer)
Load a file with a .gbr extension into the view.
const CResult PushBackFigureObject(Foundation::CFLFigure &flf, bool bEnableAll=true)
Add Figure to the back.
void GetAvailableViewImageContextMenu(Base::CFLArray< int32_t > &flaEnum) const
Retrieves the current available context menu items in the Image view.
void RemoveAvailableViewImageContextMenu(FLImaging::GUI::EMenuItem eMenu)
Removes specified items from the current available context menu in the Image view.
virtual void SetFigureObjectStringDecimalPlaces(uint32_t u32DecimalPlaces=2, bool bExponentialNotation=false, bool bSaveToConfig=true)
Sets the format string globally when representing information about a figure object as a string....
bool IsViewImageContextMenuAvailable(const CGUIViewImageContextMenuFilter &cmFilter) const
Checks whether the specified context menu items are currently available in the Image view.
const CResult PasteImage()
Paste the most recent copied image from the other views or the bitmap copied to the clipboard....
virtual const CResult ClearPage()
Clears the selected page of the image displayed in the view on the GUI interface.
virtual const CResult EnableActionConfirmation(EMenuItem eMenuItem, bool bEnable=true)
Enables or disables action confirmation for this image view instance.
virtual bool IsThumbnailViewFixed() const
Determines whether the preview thumbnail pane for the image page is pinned.
virtual double GetThumbnailViewHeightMax() const
Get the maximum value of the ratio of thumbnail view height to image view height.
virtual const CResult SetImageFigureTextOpacityFill(float f32Opacity=1.f, bool bSaveToConfig=true)
Sets the default fill opacity for label text when drawing a Figure stored in an image.
static bool GetDefaultFigureObjectStringExponentialFlag()
Gets the default format string for representing information about newly created figure objects as a s...
const CResult DeleteFigureObject(const wchar_t *pWcsObjectName)
Removes figure objects.
bool DoesLayerExist(const wchar_t *pWcsLayerName) const
Returns whether a layer with the specified name exists.
FLImaging::Base::CFLString< wchar_t > GetFigureObjectFormatStringForPixelAccuracy(bool *pBExponentialNotation=nullptr) const
Retrieves the format string used to represent the information of a figure object as a string with app...
virtual const CResult Save(const wchar_t *pWcsFileNameWithPath=nullptr, bool bSaveCurrentPage=false, bool bWithLayers=false)
Save the image.
virtual bool IsPixelSegmentationModeEnabled() const
Returns whether the feature is enabled or not, which can be viewed by coloring the Pixel value in the...
static bool IsDefaultActionConfirmationEnabled(EMenuItem eMenuItem)
Gets the default action confirmation state for each popup menu item.
virtual Base::CFLImage * GetIntrinsicImage()
Retrieves the image pointer embedded in the image view.
virtual bool IsDragAndDropEnabled() const
Determines whether to load files with drag and drop.
virtual void ShowPageIndex(bool bShow)
Sets whether to show/hide the image page index.
static bool IsDefaultActionConfirmationEnabled(EMenuItemObjectFigure eMenuItem)
Gets the default action confirmation state for each popup menu item.
int32_t GetLayerCount() const
Returns the number of user-accessible layers.
const CResult ConvertLayerToFigureObject(int32_t i32LayerIndex)
Puts the figure drawn on the selected layer onto the view as a CGUIViewImageObjectFigure object....
virtual void ShowImageBorder(bool bShow)
Sets whether to show/hide the border of image.
Foundation::CFLFigure * GetAllFigureObject() const
Retrieves duplicated copies of all figure objects.
virtual const CResult SetAutoZoomFitTriggerFlags(FLImaging::GUI::EGUIViewImageAutoZoomFitTriggerFlags eMode)
Sets the trigger flags used to determine when ZoomFit() may be automatically performed.
void AddAvailableViewImageContextMenu(const CGUIViewImageContextMenuFilter &cmFilter)
Adds specified items to the current available context menu in the Image view.
virtual void SetAvailableViewImageContextMenuDeprecated(FLImaging::GUI::EAvailableViewImageContextMenu eMenu)
Sets an available context menu in the Image view.
static const CResult EnableDefaultActionConfirmation(EMenuItemImageFigure eMenuItem, bool bEnable=true)
Sets the default action confirmation state for each popup menu item.
virtual void EnableReductionInterpolation(bool bEnable)
Sets whether interpolation is performed when the image is reduced.
const CResult RearrangePageOrder(Base::CFLArray< int32_t > *pFlaPageIndices, int32_t i32TargetPageIndex)
This is a function to change the page order.
virtual bool GetFigureObjectStringExponentialFlag() const
Gets the format string for representing information about the figure object as a string.
virtual const CResult Load(const FLImaging::Base::CFLArray< FLImaging::Base::CFLString< wchar_t > > *pFlaStrPath, FLImaging::GUI::EViewImageLoadOption eOption=EViewImageLoadOption_Default)
Load image files included in the list.
virtual bool GetLayerAutoClearMode(const CGUIViewImageLayerWrap *pLayer, ELayerAutoClearMode eMode) const
Retrieves the auto-clear status of the layer for the specified mode.
static EViewImageFigureObjectMagnetOption GetDefaultFigureObjectMagnetOption()
Get the default magnet option of newly created image view figure objects globally.
virtual bool IsFigureCoordinateOnCursorVisible() const
Determines whether the figure coordinates are displayed at the mouse cursor position when hovering ov...
static void SetDefaultFigureObjectInformationTextFontSize(float f32FontSize=Foundation::g_f32GlobalDefaultDrawingFigureTextFontSize, bool bSaveToConfig=true)
Sets the default global font size for the information text displayed by newly created image view figu...
virtual bool IsThumbnailViewVisible() const
Determines whether the preview thumbnail window is shown or hidden.
static bool IsDefaultFigureObjectInformationTextRealSizeEnabled()
Returns whether the default information text of newly created image view figure objects scales accord...
const CResult PushFrontFigureObject(Foundation::CFLFigure &flf, const FLImaging::GUI::CGUIViewImageObjectFigureContextMenuFilter &viofCmFilter)
Add Figure to the front. This is the most flexible overload: start from CGUIViewImageObjectFigureCont...
virtual bool IsActionConfirmationEnabled(EMenuItemImageFigure eMenuItem) const
Returns whether action confirmation is enabled for this image view instance.
virtual void EnableSelection(bool bEnable)
Sets whether to enable or disable selection when a mouse drag event occurs.
virtual void EnableHoverImageFigure(bool bEnable)
Sets whether to highlight the Figure stored in the image when the mouse touches it.
virtual uint8_t GetDecimalPlacesOfCoordinate() const
Retrieves the number of decimal places displayed for the image coordinates at the mouse cursor positi...
const CResult SetPixelAccuracy(double f64PixelAccuracyX, double f64PixelAccuracyY)
Sets the Pixel Accuracy X, Y of the ImageView.
virtual const CResult SetThumbnailViewHeight(double f64ThumbnailViewRatio)
Set the ratio of thumbnail view height to image view height.
const CResult PushBackFigureObject(Foundation::CFLFigure *pFlf, const FLImaging::GUI::CGUIViewImageObjectFigureContextMenuFilter &viofCmFilter)
Add Figure to the back.
virtual bool IsImageCenterVisible() const
Indicates whether center of image view is drawn.
virtual void ShowGrid(bool bShow)
Sets whether to show/hide the grid on image.
virtual const CResult LoadFigureDXF(const wchar_t *pWcsPath=nullptr, bool bErrorMsgBox=false)
Load a file with a .dxf extension into the view.
virtual const CResult SelectMenuItem(EMenuItem eMenuItem)
Performs a command on the selected menu item.
virtual void SetFigureObjectInformationTextFontSize(float f32FontSize=Foundation::g_f32GlobalDefaultDrawingFigureTextFontSize, bool bSaveToConfig=true)
Sets the global font size for the information text displayed by image view figure objects....
virtual void ShowImageFigureText(bool bShow)
Shows or hides the labels (names) of the figures stored in the image.
const CResult SetPixelAccuracyUnit(FLImaging::Foundation::ELengthUnit eLenUnit)
Sets the units for the Pixel Accuracy of the ImageView.
virtual EViewImageMouseCapturePolicy GetMouseCapturePolicy() const
Returns the currently set mouse capture policy.
Foundation::CFLFigure * PopBackFigureObject()
Retrieves and removes the last figure object as a duplicated object.
virtual const CResult GetFloatingImageValueRange(float &f32Min, float &f32Max) const
Get the maximum and minimum value for the pixel value of the floating point image.
virtual const CResult Load(const wchar_t *pWcsPath=nullptr, FLImaging::GUI::EViewImageLoadOption eOption=EViewImageLoadOption_Default)
Load image files into the view.
virtual const CResult SetImageFigureRealSizeText(bool bRealSize=false, bool bSaveToConfig=true)
Sets the mode for drawing text with real size when displaying a string of Image Figure.
virtual bool IsImageFigureTextVisible() const
Checks whether the labels (names) of the figures stored in the image are visible.
const CResult CopyImage()
Copies the current image for pasting into another view.
virtual const CResult SetFloatingImageValueRange(float f32Min, float f32Max)
Specifies the maximum and minimum value for the pixel value of the floating point image....
static void SetDefaultFigureObjectInformationTextRealSizeEnabled(bool bEnable=false, bool bSaveToConfig=true)
Sets the default option globally for whether the information text of newly created image view figure ...
const CResult RotateImage(FLImaging::GUI::EImageRotateAngle eAngle)
Rotate the image 90, 180, 270 degrees.
virtual const CResult InvokeMenuItem(EMenuItemObjectMeasure eMenuItem)
Checks whether the specified menu item is currently available via IsViewImageContextMenuAvailable(),...
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 const CResult MoveToPrevPage()
Move to the previous page if the image displayed in the image view is a multi-page image.
virtual const CResult ClearImageFiguresAll(bool bPopupMsgBox=false)
Clear all Figures within the selected page.
int32_t GetFigureObjectCount() const
Retrieves the number of figure objects.
virtual Foundation::CFLRect< int32_t > ConvertCanvasCoordToClientCoord(const Foundation::CFLRect< int32_t > &flr)
Convert canvas coordinates to client coordinates.
virtual const CResult SetImageFigureOpacityBorder(float f32Opacity=1.f, bool bSaveToConfig=true)
Sets the default border opacity applied when drawing a Figure stored in an image.
const CResult PushFrontFigureObject(Foundation::CFLFigure *pFlf, const FLImaging::GUI::EMenuItemObjectFigure *pArrEnum, int64_t i64Count)
Add Figure to the front, making only the given menu items available.
virtual const CResult LoadRaw(const wchar_t *pWcsPath, int64_t i64Width, int64_t i64Height, Base::EPixelFormat ePixelFormat=Base::EPixelFormat_C1_U8, int32_t i32AlignByte=4, int64_t i64OffsetByteFromBegin=0, int64_t i64OffsetByteFromEnd=0, FLImaging::GUI::EViewImageLoadOption eOption=EViewImageLoadOption_Load)
Load .raw image file into the view.
CGUIViewImageWrap()
Default constructor.
virtual ~CGUIViewImageWrap()
Default destructor.
virtual uint32_t GetFigureObjectStringDecimalPlaces() const
Gets the format string for representing information about the figure object as a string.
Foundation::CFLFigure * PopFrontFigureObject()
Retrieves and removes the first figure object as a duplicated object.
virtual const CResult LoadAsync(const wchar_t *pWcsPath=nullptr, EViewImageLoadOption eOption=EViewImageLoadOption_Load)
Load image files into the view asynchronously.
const CResult PushBackFigureObject(Foundation::CFLFigure *pFlf, EAvailableFigureContextMenu eMenu, EAvailableFigureContextMenu2 eMenu2)
Add Figure to the back.
virtual const CResult StartAutoPageScroll(int64_t i64PageStep=1, double f64PeriodMs=1000.)
Starts automatic page scrolling at specified intervals.
static void SetDefaultFigureObjectFillColorAlphaRatio(float f32Ratio)
Sets the default fill alpha ratio for newly created figure objects globally.
virtual Foundation::CFLPoint< int32_t > ConvertClientCoordToCanvasCoord(int32_t x, int32_t y)
Convert client coordinates to canvas coordinates.
virtual const CResult SetFreeDrawOutputMode(EFreeDrawOutputMode eFreeDrawOutputMode)
Sets the merge behavior for pen-based drawing modes (ETeachingMode_Figure_FreeDraw or ETeachingMode_F...
virtual void SetCanvasColor(uint32_t u32Color)
Sets the image view's background color.
virtual const CResult RedrawImageFigures()
Updates and redraws image figure objects in the viewer.
virtual void SetFigureObjectInformationTextOption(EFigureObjectInformationText eFigureObjectInformationText, bool bSaveToConfig=true)
Sets the information string display option for an image view figure object globally....
virtual Foundation::CFLPoint< int32_t > ConvertClientCoordToCanvasCoord(const Foundation::CFLPoint< int32_t > &flp)
Convert client coordinates to canvas coordinates.
virtual const CResult MoveToPage(int32_t i32PageNum)
Move to the specific page if the image displayed in the image view is a multi-page image.
virtual void ShowPixelValue(bool bShow)
Sets whether to show/hide the image pixel value.
virtual const CResult InvokeMenuItem(EMenuItemObjectFigure eMenuItem)
Checks whether the specified menu item is currently available via IsViewImageContextMenuAvailable(),...
void SetAvailableViewImageContextMenu(FLImaging::GUI::EMenuItem eMenu)
Clears the current available context menu items and sets the specified items in the Image view.
static void SetDefaultFigureObjectMagnetToImageEnabled(bool bEnable, bool bSaveToConfig=true)
Sets the default magnet option (the option that sticks to the edge if the figure object is located ne...
virtual const CResult SetLayerAutoClearMode(ELayerAutoClearMode eMode, bool bSet)
Sets the auto clear mode for all layers at once.
virtual const CResult StopAutoPageScroll()
Stops the automatic page scrolling.
virtual void ShowImageCoordinateOnCursor(bool bShow)
Sets whether image coordinates are displayed at the mouse cursor position in Image View.
virtual void SetFixThumbnailView(bool bFix)
Sets whether to show/hide the preview thumbnail window for the page when multiple images are displaye...
virtual void SetAvailableViewImageContextMenuImageFigureDeprecated(EAvailableViewImageContextMenuImageFigure eMenu)
Sets available context menu for Image Figure in this image view.
virtual FLImaging::GUI::EGUIViewImageAutoZoomFitTriggerFlags GetAutoZoomFitTriggerFlags() const
Gets the trigger flags used to determine when ZoomFit() may be automatically performed.
const CResult CopyPages(Base::CFLArray< int32_t > *pFlaPageIndices)
Copy the selected pages to the clipboard.
const CResult RearrangePageOrder(int32_t i32OrigPageIndex, int32_t i32TargetPageIndex)
Rearrange the order of the page. If you move the third page to the 7th page, the existing 4-7 pages w...
virtual const CResult SavePage(int32_t i32PageIndex, const wchar_t *pWcsFileNameWithPath=nullptr)
Save the selected page in the image.
const CResult DesynchronizePointOfView(const CGUIViewImageWrap *pViewImageTarget)
Turn off viewpoint synchronization for the parameter's view.
virtual Foundation::CFLPoint< double > GetOffset() const
Retrieves the current offset of the image view. When panning or changing the scale,...
virtual EAvailableViewImageContextMenuImageFigure GetAvailableViewImageContextMenuImageFigureDeprecated() const
Retrieves available context menu for Image Figure in this image view.
virtual const CResult ClearImageFiguresAllPages(bool bPopupMsgBox=false)
Removes all Figures from all pages of image.
virtual int32_t GetImageFigureBorderWidth() const
Gets the default border width applied when drawing a Figure stored in an image.
virtual EPixelNumberMode GetPixelNumberMode() const
Retrieves the pixel value representation mode of the image.
static void SetDefaultFigureObjectAngleMagnetEnabled(bool bEnable, bool bSaveToConfig=true)
Sets the default angle magnet option for newly created figure objects globally (the option to have a ...
virtual const CResult EnableActionConfirmation(EMenuItemObjectMeasure eMenuItem, bool bEnable=true)
Enables or disables action confirmation for this image view instance.
static bool IsDefaultActionConfirmationEnabled(uint32_t u32MenuItem)
Gets the default action confirmation state for each popup menu item.
virtual void EnableFigureObjectRotation(int32_t i32FigureObjectIndex, bool bEnable)
Enables the rotation function of the image view figure object.
static bool IsDefaultFigureObjectMagnetToImageEnabled()
Returns the default magnet option for globally set newly created figure objects (the option that stic...
virtual bool IsActionConfirmationEnabled(EMenuItem eMenuItem) const
Returns whether action confirmation is enabled for this image view instance.
virtual const CResult EnableInteractionAction(EGUIViewImageInteractionAction eAction, bool bEnable)
Enables or disables a specific interaction action for the image view.
Foundation::CFLFigure * PopFigureObject(const wchar_t *pWcsObjectName)
Retrieves and removes figure objects whose name matches the specified string as duplicated object(s).
virtual bool IsCrosshairVisible() const
Determines whether the crosshair is shown or hidden.
virtual Foundation::CFLPoint< double > ConvertCanvasCoordToImageCoord(int32_t x, int32_t y)
Convert canvas coordinates to image coordinates.
Foundation::CFLFigure * GetFigureObject(int32_t i32Index) const
Retrieves a duplicated figure corresponding to the specified index.
virtual const CResult EnableActionConfirmation(uint32_t u32MenuItem, bool bEnable=true)
Enables or disables action confirmation for this image view instance.
static bool IsDefaultFigureObjectAngleMagnetEnabled()
Returns the default angle magnet option for a globally set newly created figure object (the option to...
virtual void SetPanningMode(bool bSet)
Set or unset the mouse drag action to panning mode.
virtual float GetImageFigureTextOpacityBorder() const
Gets the default border opacity for label text when drawing a Figure stored in an image.
virtual void ShowThumbnailView(bool bShow)
Sets whether to show/hide the preview thumbnail window for the page when multiple images are displaye...
virtual void EnableFigureObjectAngleMagnet(bool bEnable, bool bSaveToConfig=true)
Sets the angle magnet option for the figure object globally (the option to have a multiples value of ...
virtual const CResult LoadFigureGBR(const wchar_t *pWcsPath=nullptr, const wchar_t *pWcsLayerName=nullptr, uint32_t u32Color=-1)
Load a file with a .gbr extension into the view.
CGUIViewImageWrap * GetRootSyncView(FLImaging::GUI::EViewImageSyncOption eViewImageSyncOption) const
Retrieves the root view synchronized with the current image view for a specific option.
CGUIViewImageLayerWrap GetLayerByName(const wchar_t *pWcsLayerName)
Retrieves the layer pointer whose the name is same as the parameter pWcsLayerName.
const CResult PushBackFigureObject(Foundation::CFLFigure &flf, const FLImaging::GUI::EMenuItemObjectFigure *pArrEnum, int64_t i64Count)
Add Figure to the back, making only the given menu items available.
virtual double GetThumbnailViewHeight() const
Get the ratio of thumbnail view height to image view height.
const CResult DeleteLayerByName(const wchar_t *pWcsLayerName)
Deletes the layer object with the specified name and releases its memory.
static void GetViewImageContextMenuChildren(FLImaging::GUI::EMenuItem eMenu, Base::CFLArray< int32_t > &flaEnum)
Retrieves child menu items of the specified parent context menu item. If eMenu is a parent menu item ...
void EnableAvailableViewImageContextMenuAll(bool bEnable)
Enables or disables all items in the available context menu in the Image view.
virtual const CResult ClearSegmentationLabelText()
Removes all labels set for a particular pixel value.
virtual const CResult RemoveImageFiguresByConditions(const Base::CFLString< wchar_t > &strExpression, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false, bool bPopupMsgBox=false)
Removes figures stored in the current view's image that match conditions (e.g., width greater than 10...
virtual const CResult MoveToNextPage()
Move to the next page if the image displayed in the image view is a multi-page image.
virtual void SetMouseCapturePolicy(EViewImageMouseCapturePolicy ePolicy=EViewImageMouseCapturePolicy_All)
Sets the mouse capture policy for the image view. The specified policy determines in which situations...
const CResult PushFrontFigureObject(Foundation::CFLFigure &flf, bool bEnableAll=true)
Add Figure to the front.
const CResult ConvertAllFigureObjectsToLayer(CGUIViewImageLayerWrap *pLayer, uint32_t u32Color=-1)
Draws all Figure Objects onto the selected layer. Remove the Figure Object on success.
virtual bool IsSelectionEnabled() const
Determines whether selection is enabled or disabled.
const CResult FlipImage(FLImaging::GUI::EImageFlipDirection eDirection)
It flips the image vertically, horizontally, vertically and horizontally.
virtual const CResult SetLayerAutoClearMode(CGUIViewImageLayerWrap *pLayer, ELayerAutoClearMode eMode, bool bSet)
Sets the automatic clear mode of the layer.
virtual const CResult SetImageFigureBorderWidth(int32_t i32BorderWidth=1, bool bSaveToConfig=true)
Sets the default border width applied when drawing a Figure stored in an image.
virtual void ShowImagePixelValueOnCursor(bool bShow)
Sets whether pixel values are displayed at the mouse cursor position in Image View.
virtual EFigureObjectInformationText GetFigureObjectInformationTextOption() const
Returns the information string display option for globally set figure objects.
virtual Foundation::CFLPoint< double > ConvertCanvasCoordToImageCoord(const Foundation::CFLPoint< int32_t > &flp)
Convert canvas coordinates to image coordinates.
const CResult CreateAndFitParent(size_t stParentWindowHandle, bool bAutoFit=true)
After creating the image view window, adjust the size of the image view to match the size of the pare...
const CResult ResignRootSyncView(FLImaging::GUI::EViewImageSyncOption eViewImageSyncOption)
If the root view of the synchronized views for a specific option is the current image view,...
const CResult PushBackFigureObject(Foundation::CFLFigure *pFlf, bool bEnableAll=true)
Add Figure to the back.
const CResult ConvertLayerToFigureObject(CGUIViewImageLayerWrap *pLayer)
Puts the figure drawn on the selected layer onto the view as a Figure Object. If there are more than ...
const CResult PushFrontFigureObject(Foundation::CFLFigure &flf, const FLImaging::GUI::EMenuItemObjectFigure *pArrEnum, int64_t i64Count)
Add Figure to the front, making only the given menu items available.
virtual bool IsIntensitySpectrumVisible() const
Determines whether the pixel value text color is determined by the intensity of the pixel value of th...
virtual bool IsImageFigureVisible() const
Checks whether the figures stored in the image are visible.
virtual Foundation::CFLRect< double > ConvertClientCoordToImageCoord(const Foundation::CFLRect< int32_t > &flr)
Convert client coordinates to image coordinates.
virtual bool IsImagePixelValueOnCursorVisible() const
Determines whether the pixel values are displayed at the mouse cursor position in the image view.
virtual const CResult StopAutoSaveImage()
Stops the automatic image saving.
static float GetDefaultFigureObjectFillColorAlphaRatio()
Returns the default fill alpha ratio for newly created figure objects configured globally.
const CResult GetStatusBarItemElasticMinimumWidth(EViewImageStatusBarItem eItem, int32_t &i32MinimumWidth) const
Retrieves the elastic minimum width value of a specific status bar item. This value determines the mi...
int32_t GetNamedLayerCount() const
Returns the number of layers defined by name.
const CResult ShowStatusBar(bool bShow)
Sets whether to show/hide StatusBar.
static bool GetDefaultFigureObjectStringExponentialFlagForPixelAccuracy()
Retrieves whether the default exponential notation is used when representing the information of newly...
void AddAvailableViewImageContextMenu(const FLImaging::GUI::EMenuItem *pArrEnum, int64_t i64Count)
Adds specified items to the current available context menu in the Image view.
virtual const CResult ZoomFitToLayer(const CGUIViewImageLayerWrap *pLayer)
Adjusts the scale and offset so that the shapes and text drawn over the selected layer fill the scree...
static void SetDefaultFigureObjectInformationTextOption(EFigureObjectInformationText eFigureObjectInformationText, bool bSaveToConfig=true)
Sets the default information string display option for newly created image view figure objects global...
virtual const CResult GetSegmentationLabelText(int32_t i32Channel, double f64Value, Base::CFLString< wchar_t > &strLabelTextResult) const
Gets a label for the pixel values set in the image view.
virtual float GetFigureObjectInformationTextFontSize() const
Returns the global font size used for the information text displayed by image view figure objects.
const CResult Destroy()
Destroy the image view window.
const CResult CreateImage(int64_t i64Width, int64_t i64Height, int32_t i32Channel, int32_t i32Depth, Base::EValueType eType, bool bOptSeparateChannel, const Base::CMultiVar< T > &flmvFillVal, int32_t i32AlignByte=4)
Creates a new image in the view.
virtual bool IsPageIndexVisible() const
Determines whether the image page index is shown or hidden.
virtual Foundation::CFLRect< int32_t > ConvertClientCoordToCanvasCoord(const Foundation::CFLRect< int32_t > &flr)
Convert client coordinates to canvas coordinates.
const CResult PushFrontFigureObject(Foundation::CFLFigure *pFlf, bool bEnableAll=true)
Add Figure to the front.
const CResult CaptureScreen(Base::CFLImage &fliImage, bool bIncludeFrame=false)
Capture the current screen.
virtual void EnableSystemMenuOnFileDialog(bool bEnable)
Enables or disables the system menu on the file dialog.
virtual void SetFigureObjectStringDecimalPlacesForPixelAccuracy(uint32_t u32DecimalPlaces=2, bool bExponentialNotationForPixelAccuracy=false, bool bSaveToConfig=true)
Sets the format string used to represent the information of a figure object as a string with applied ...
virtual const CResult SetThumbnailViewHeightRange(double f64ThumbnailViewRatioMin, double f64ThumbnailViewRatioMax)
Set the minimum and maximum value of ratio of thumbnail view height to image view height.
virtual float GetImageFigureOpacityBorder() const
Gets the default border opacity applied when drawing a Figure stored in an image.
static uint32_t GetDefaultFigureObjectStringDecimalPlaces()
Gets the default format string for representing information about newly created figure objects as a s...
virtual const CResult SetTeachingMode(ETeachingMode eTeachingMode)
Set or unset the current view to a mode for teaching shapes, measurements, etc.
virtual const CResult ClearFile()
Close the image file on the GUI interface.
virtual bool IsMouseWheelButtonEnabled() const
Determines whether to enable mouse wheel button(MButton).
bool IsRatioSyncPointOfViewEnabled() const
Check whether normalized ratio-based synchronization for point of view is enabled.
const CResult DesynchronizePointOfViewAll()
Desynchronize the current view's viewpoint.
virtual const CResult InvokeMenuItem(EMenuItemImageFigure eMenuItem)
Checks whether the specified menu item is currently available via IsViewImageContextMenuAvailable(),...
void SetAvailableViewImageContextMenu(const CGUIViewImageContextMenuFilter &cmFilter)
Clears the current available context menu items and sets the specified items in the Image view.
void SetAvailableViewImageContextMenu(const FLImaging::GUI::EMenuItem *pArrEnum, int64_t i64Count)
Clears the current available context menu items and sets the specified items in the Image view.
virtual const CResult EnableActionConfirmation(EMenuItemImageFigure eMenuItem, bool bEnable=true)
Enables or disables action confirmation for this image view instance.
virtual EAvailableViewImageContextMenu GetAvailableViewImageContextMenuDeprecated() const
Retrieves the available context menu for the image view.
virtual const CResult EnableActionConfirmation(EMenuItemObjectFigure eMenuItem, bool bEnable=true)
Enables or disables action confirmation for this image view instance.
virtual const CResult SetViewCenter(const Foundation::CFLPoint< double > &flpImageCoord)
Sets the view center to the specified coordinate flpImageCoord.
void RemoveAvailableViewImageContextMenu(const CGUIViewImageContextMenuFilter &cmFilter)
Removes specified items from the current available context menu in the Image view.
virtual Foundation::CFLPoint< int32_t > ConvertCanvasCoordToClientCoord(const Foundation::CFLPoint< int32_t > &flp)
Convert canvas coordinates to client coordinates.
virtual void ShowIntensitySpectrum(bool bShow)
Sets to determine the pixel value text color according to the intensity of the pixel value of the ima...
static uint32_t GetDefaultFigureObjectStringDecimalPlacesForPixelAccuracy()
Retrieves the default number of decimal places displayed when representing the information of newly c...
virtual bool IsMouseWheelEnabled() const
Determines whether to enable mouse wheel.
const CResult GetPixelAccuracy(double *pF64PixelAccuracyX, double *pF64PixelAccuracyY) const
Retrieves the Pixel Accuracy X, Y of the ImageView.
virtual const CResult SetInteractionRule(EGUIViewGesture eGesture, EGUIViewImageInteractionAction eAction, EGUIViewImageHitArea eHitTarget=EGUIViewImageHitArea_None, EGUIViewImageMouseInteractionMode eMouseMode=EGUIViewImageMouseInteractionMode_None, EModifierMatch eCtrlKey=EModifierMatch_Any, EModifierMatch eShiftKey=EModifierMatch_Any, EModifierMatch eAltKey=EModifierMatch_Any)
Sets the interaction rule for the image view by mapping a gesture to an action under specific conditi...
double GetZoomFitScale(double f64ClientWidth, double f64ClientHeight) const
Retrieves the scale in zoom fit state according to the width and height of the image and the width an...
virtual const CResult PopupImageFigureByConditions(const Base::CFLString< wchar_t > &strExpression, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Creates figure objects from figures stored in the current view's image that match conditions (e....
size_t GetWindowHandle()
Returns the window handle of the image view.
virtual void SetFigureObjectFillColorAlphaRatio(float f32Ratio)
Sets the fill alpha ratio for figure objects globally. After calling this function,...
void EnableRatioSyncPointOfView(bool bEnabled)
Enable or disable normalized ratio-based synchronization for point of view.
virtual double GetThumbnailViewHeightMin() const
Get the minimum value of the ratio of thumbnail view height to image view height.
virtual const CResult SaveFigure(Foundation::CFLFigure *pFigure, const wchar_t *pWcsPath=nullptr)
Save the CFLFigure object as a file with a .fig extension.
virtual const CResult LoadFigure(const wchar_t *pWcsPath=nullptr, bool bErrorMsgBox=false)
Load a file with a .fig extension into the view.
virtual bool IsFigureObjectRotationEnabled(int32_t i32FigureObjectIndex) const
Gets whether the rotation function of the image view figure object is enabled.
static void SetDefaultFigureObjectStringDecimalPlacesForPixelAccuracy(uint32_t u32DecimalPlaces=2, bool bExponentialNotationForPixelAccuracy=false, bool bSaveToConfig=true)
Sets the default format string used to represent the information of newly created figure objects as a...
virtual void ShowImageCenter(bool bShow)
Sets whether to show/hide the center of image.
const CResult PushFrontFigureObject(Foundation::CFLFigure *pFlf, const FLImaging::GUI::CGUIViewImageObjectFigureContextMenuFilter &viofCmFilter)
Add Figure to the front.
bool IsContinuousFigureCreationModeEnabled() const
Check whether the continuous creation mode for ObjectFigure is enabled.
const CResult DesynchronizePageIndex(const CGUIViewImageWrap *pViewImageTarget)
Turn off page index synchronization for the parameter's view.
virtual Foundation::CFLPoint< int32_t > ConvertImageCoordToCanvasCoord(const Foundation::CFLPoint< double > &flp)
Convert image coordinates to canvas coordinates.
virtual void EnableFigureObjectMagnetToImage(bool bEnable, bool bSaveToConfig=true)
Sets the magnet option (the option that sticks to the edge if the figure object is located near the e...
const CResult ConvertSelectedFigureObjectToLayer(CGUIViewImageLayerWrap *pLayer, uint32_t u32Color=-1)
Draws the selected Figure Object onto the selected layer. Remove the Figure Object on success.
virtual const CResult ZoomAtCenter(double f64Scale)
Sets the image view scale to f64Scale while maintaining the current center coordinates.
virtual bool IsFigureObjectMagnetToImageEnabled() const
Returns the magnet option for globally set figure objects (the option that sticks to the edge if the ...
const CResult PushBackFigureObject(Foundation::CFLFigure &flf, const FLImaging::GUI::CGUIViewImageObjectFigureContextMenuFilter &viofCmFilter)
Add Figure to the back. See PushFrontFigureObject(Foundation::CFLFigure&, const CGUIViewImageObjectFi...
virtual void EnableMouseWheel(bool bEnable)
Sets whether to enable mouse wheel.
virtual bool IsImageCoordinateOnCursorVisible() const
Determines whether the image coordinates are displayed at the mouse cursor position in the image view...
virtual EFreeDrawOutputMode GetFreeDrawOutputMode() const
Retrieves the current merge behavior used in pen-based drawing modes (ETeachingMode_Figure_FreeDraw o...
virtual const CResult SetFreeDrawMergeMode(EFreeDrawMergeMode eFreeDrawMergeMode)
Sets the merge behavior for pen-based drawing modes (ETeachingMode_Figure_FreeDraw or ETeachingMode_F...
bool IsViewImageContextMenuAvailable(FLImaging::GUI::EMenuItem eMenu) const
Checks whether the specified context menu items are currently available in the Image view.
virtual const CResult GetFloatingImageValueRange(double &f64Min, double &f64Max) const
Get the maximum and minimum value for the pixel value of the floating point image.
virtual bool IsActionConfirmationEnabled(uint32_t u32MenuItem) const
Returns whether action confirmation is enabled for this image view instance.
virtual void ShowImageFigure(bool bShow)
Shows or hides the figures stored in the image.
Foundation::CFLFigure * GetFigureObjectRef(int32_t i32Index) const
Retrieves a reference to the internally managed figure corresponding to the specified index.
static void SetDefaultFigureObjectStringDecimalPlaces(uint32_t u32DecimalPlaces=2, bool bExponentialNotation=false, bool bSaveToConfig=true)
Sets the default format string globally when representing information about a newly created figure ob...
virtual const CResult StartAutoSaveImage(double f64PeriodMs=60000.)
Starts automatic image saving at specified intervals.
const CResult DesynchronizePageIndexAll()
Desynchronize the page index of the current view.
virtual const CResult SetImageFigureTextOpacityBorder(float f32Opacity=1.f, bool bSaveToConfig=true)
Sets the default border opacity for label text when drawing a Figure stored in an image.
virtual void SetFigureObjectMagnetOption(EViewImageFigureObjectMagnetOption eOption)
Set the magnet options of the image view figure object.
virtual bool IsImageFigureRealSizeText() const
Returns whether or not the string in the image Figure is displayed in its real size.
virtual bool IsFigureObjectAngleMagnetEnabled() const
Returns the angle magnet option for a globally set figure object (the option to have a multiples valu...
virtual bool GetFigureObjectStringExponentialFlagForPixelAccuracy() const
Retrieves whether exponential notation is used when representing the information of a figure object a...
const CResult GetPixelAccuracy(double &f64PixelAccuracyX, double &f64PixelAccuracyY) const
Retrieves the Pixel Accuracy X, Y of the ImageView.
Foundation::CFLRect< int32_t > GetImageRect() const
Returns the image area of the image view.
bool IsSynchronized(FLImaging::GUI::EViewImageSyncOption eViewImageSyncOption)
Returns whether the current image view is synchronized with another image view for a particular optio...
virtual void ShowCrosshair(bool bShow)
Sets whether to show/hide the crosshair.
virtual bool IsPixelValueVisible() const
Determines whether the pixel value is shown or hidden.
virtual double GetAutoZoomFitTolerance() const
Gets the tolerance ratio used to determine whether the current viewport is preserved when the image s...
const CResult CaptureScreen(Base::CFLImage *pFliImage, bool bIncludeFrame=false)
Capture the current screen.
virtual const CResult ClearPages(Base::CFLArray< int32_t > *pFlaPageIndices)
Clear the selected pages in the image.
virtual const CResult SetThumbnailViewHeight(double f64ThumbnailViewRatio, double f64ThumbnailViewRatioMin, double f64ThumbnailViewRatioMax)
Set the ratio of thumbnail view height to image view height.
virtual const CResult SavePages(Base::CFLArray< int32_t > *pFlaPageIndices, const wchar_t *pWcsFileNameWithPath=nullptr)
Save the selected pages in the image.
Foundation::CFLFigure * PopFigureObject(int32_t i32Index)
Retrieves and removes the figure corresponding to the specified index as a duplicated object.
const CResult ClearStatusBarItemElasticMinimumWidth(EViewImageStatusBarItem eItem)
Clears the elastic minimum width constraint of a specific status bar item. After clearing,...
virtual void ShowImage(bool bShow)
Sets whether to show/hide the image.
void EnableContinuousFigureCreationMode(bool bEnable)
Enable or disable the continuous creation mode for ObjectFigure.
virtual uint32_t GetCanvasColor() const
Retrieves the background color of the image view.
const CResult ClearFigureObject()
Removes all CGUIViewImageObjectFigure objects in the image view.
const CResult SynchronizePointOfView(const CGUIViewImageWrap *pViewImageTarget)
Synchronizes the view point of the parameter and the current view.
Foundation::CFLFigure * PopAllFigureObject()
Retrieves and removes all figure objects as duplicated object(s).
Foundation::ELengthUnit GetPixelAccuracyUnit() const
Retrieves the units for Pixel Accuracy of the ImageView.
virtual Foundation::CFLRect< double > ConvertCanvasCoordToImageCoord(const Foundation::CFLRect< int32_t > &flr)
Convert canvas coordinates to image coordinates.
virtual const CResult InvokeMenuItem(EMenuItem eMenuItem)
Checks whether the specified menu item is currently available via IsViewImageContextMenuAvailable(),...
virtual const CResult CreatePage(FLImaging::GUI::EViewImageCreatePageOption eOption=EViewImageCreatePageOption_Append)
Creates a new page in the image displayed in the view.
virtual bool IsActionConfirmationEnabled(EMenuItemObjectFigure eMenuItem) const
Returns whether action confirmation is enabled for this image view instance.
virtual const CResult ZoomFit()
Scales the image view so that the image is sized to fit the image view.
static Base::CFLString< wchar_t > GetViewImageContextMenuString(EMenuItem eMenu)
Retrieves the string of the specified context menu item.
static EFigureObjectInformationText GetDefaultFigureObjectInformationTextOption()
Returns the default information string display option for globally set newly created figure objects.
virtual void EnablePixelSegmentationMode(bool bEnable)
Sets whether to enable features that can be viewed by coloring the pixel values in the image view.
static bool IsDefaultActionConfirmationEnabled(EMenuItemImageFigure eMenuItem)
Gets the default action confirmation state for each popup menu item.
virtual Base::CFLImage * GetImagePtr()
Retrieves an image pointer displayed in the image view.
virtual bool IsImageMiniMapVisible() const
Determines whether the minimap is shown or hidden.
virtual void ShowFigureCoordinateOnCursor(bool bShow)
Sets whether figure coordinates are displayed at the mouse cursor position when hovering over a figur...
double GetPixelAccuracyX() const
Returns the Pixel Accuracy for the X coordinate of the ImageView.
virtual float GetImageFigureOpacityFill() const
Gets the default fill opacity applied when drawing a Figure stored in an image.
const CResult PushBackFigureObject(Foundation::CFLFigure &flf, EAvailableFigureContextMenu eMenu, EAvailableFigureContextMenu2 eMenu2)
Add Figure to the back.
virtual bool IsImageVisible() const
Determines whether the image is shown or hidden.
virtual const CResult RemoveImageFigure(const Base::CFLArray< int32_t > *pFlaI32Index, bool bPopupMsgBox=false)
Clear figure objects from figures of specific indices stored in the current view's image.
Foundation::CFLFigure * GetFigureObject(const wchar_t *pWcsObjectName) const
Retrieves a duplicated figure whose name matches the specified string.
virtual void ShowFigureObjectInformationText(bool bShow=true, bool bSaveToConfig=true)
Sets the global option for whether image view figure objects display an information string....
CGUIViewImageLayerWrap GetNamedLayer(int32_t i32Index) const
Retrieves the layer defined by name using its index. The index is defined in the order the layers are...
virtual const CResult RemoveImageFigure(int32_t i32Idx, bool bPopupMsgBox=false)
Clear the Figure object for the i32Idx-th figure stored in the current view's image.
virtual bool IsImageBorderVisible() const
Indicates whether border of image view is drawn.
static void SetDefaultFigureObjectInformationTextVisible(bool bVisible=true, bool bSaveToConfig=true)
Sets the default global option for whether newly created image view figure objects display an informa...
const CResult ClearMeasurement()
Removes all Measurement objects in the ImageView.
virtual bool IsHoverImageFigureEnabled() const
A function that returns whether the figure is highlighted when the mouse touches the figure stored in...
virtual Foundation::CFLPoint< double > ConvertClientCoordToImageCoord(int32_t i32X, int32_t i32Y)
Convert client coordinates to image coordinates.
virtual float GetImageFigureTextOpacityFill() const
Gets the default fill opacity for label text when drawing a Figure stored in an image.
bool IsViewImageContextMenuAvailable(const FLImaging::GUI::EMenuItem *pArrEnum, int64_t i64Count, bool bAll=true) const
Checks whether the specified context menu items are currently available in the Image view.
virtual ETeachingMode GetTeachingMode() const
Return the teaching mode set for the current view.
static const CResult EnableDefaultActionConfirmation(EMenuItem eMenuItem, bool bEnable=true)
Sets the default action confirmation state for each popup menu item.
virtual void SetPixelNumberMode(EPixelNumberMode eMode)
Sets the pixel value display mode of the image.
virtual const CResult SelectMenuItem(EMenuItemImageFigure eMenuItem)
Performs a command on the selected menu item.
virtual Foundation::CFLPoint< double > GetViewCenterImageCoord() const
Returns the image coordinates corresponding to the center position of the image view.
EGUIViewImageHitArea GetHitArea() const
Retrieves the Hit area for the current mouse position in the ImageView.
const CResult ConvertSelectedFigureObjectToLayer(int32_t i32LayerIndex, uint32_t u32Color=-1)
Draws the selected Figure Object onto the selected layer. Remove the Figure Object on success.
static float GetDefaultFigureObjectInformationTextFontSize()
Returns the default global font size used for the information text displayed by newly created image v...
virtual Foundation::CFLPoint< int32_t > ConvertCanvasCoordToClientCoord(int32_t x, int32_t y)
Convert canvas coordinates to client coordinates.
virtual EFreeDrawMergeMode GetFreeDrawMergeMode() const
Retrieves the current merge behavior used in pen-based drawing modes (ETeachingMode_Figure_FreeDraw o...
virtual Base::CFLString< wchar_t > GetFigureObjectName(int32_t i32FigureObjectIndex) const
Get the name of the image view figure object.
const CResult PasteImageAt(int32_t i32PageIndex)
Paste the most recent copied images from the other views or the bitmaps copied to the clipboard....
virtual Foundation::CFLRect< int32_t > ConvertImageCoordToCanvasCoord(const Foundation::CFLRect< double > &flr)
Convert image coordinates to canvas coordinates.
virtual Foundation::CFLPoint< int32_t > ConvertImageCoordToClientCoord(const Foundation::CFLPoint< double > &flp)
Convert image coordinates to client coordinates.
EPixelFormat
Pixel format.
Definition FLImagingBase/DefinitionsBase.h:109
@ EPixelFormat_C1_U8
Definition FLImagingBase/DefinitionsBase.h:146
EValueType
Value type.
Definition FLImagingBase/DefinitionsBase.h:71
ELengthUnit
Indicates a unit of length.
Definition FLImagingFoundation/DefinitionsFoundation.h:77
Definition D2DObject.h:12
EGUIViewImageHitArea
The area where the mouse is located on the image view.
Definition FLImagingGUI/DefinitionsGUI.h:8403
@ EGUIViewImageHitArea_None
None.
Definition FLImagingGUI/DefinitionsGUI.h:8411
EViewImageMouseCapturePolicy
Flags that control under which conditions mouse capture is enabled for the image view.
Definition FLImagingGUI/DefinitionsGUI.h:519
@ EViewImageMouseCapturePolicy_All
Enables mouse capture for all supported mouse operations.
Definition FLImagingGUI/DefinitionsGUI.h:574
EViewImageStatusBarItem
Status Bar Item of CGUIViewImage.
Definition FLImagingGUI/DefinitionsGUI.h:15757
EFreeDrawOutputMode
Defines the output mode (contour polygon or rasterized grid pixel) for pen-based drawing modes (ETeac...
Definition FLImagingGUI/DefinitionsGUI.h:16108
EImageRotateAngle
Available image rotation angle in image view.
Definition FLImagingGUI/DefinitionsGUI.h:7264
EAvailableViewImageContextMenu
Available context menu for image view.
Definition FLImagingGUI/DefinitionsGUI.h:7356
EModifierMatch
Specifies how a modifier key (Ctrl, Shift, Alt) should be matched when evaluating an interaction rule...
Definition FLImagingGUI/DefinitionsGUI.h:11578
@ EModifierMatch_Any
The modifier key state is ignored.
Definition FLImagingGUI/DefinitionsGUI.h:11601
EFigureObjectInformationText
Text options representing information for a figure object.
Definition FLImagingGUI/DefinitionsGUI.h:11338
EGUIViewImageMouseInteractionMode
Enumeration for the current mouse interaction mode of the image view.
Definition FLImagingGUI/DefinitionsGUI.h:435
@ EGUIViewImageMouseInteractionMode_None
None.
Definition FLImagingGUI/DefinitionsGUI.h:442
ETeachingMode
Teaching mode.
Definition FLImagingGUI/DefinitionsGUI.h:9028
EGUIViewImageFontWeight
Font thickness of image view.
Definition FLImagingGUI/DefinitionsGUI.h:9207
@ EGUIViewImageFontWeight_BOLD
Bold thickness.
Definition FLImagingGUI/DefinitionsGUI.h:9277
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:9843
EMenuItemObjectFigure
Menu items related to manipulatable Figure objects in the image view.
Definition FLImagingGUI/DefinitionsGUI.h:4986
EFreeDrawMergeMode
Defines whether strokes of the same class drawn in pen-based modes (ETeachingMode_Figure_FreeDraw or ...
Definition FLImagingGUI/DefinitionsGUI.h:16140
EGUIViewGesture
Defines the types of user interface gestures and input events in the GUI view.
Definition FLImagingGUI/DefinitionsGUI.h:127
EGUIViewImageAutoZoomFitTriggerFlags
Enumerates the conditions under which ZoomFit() is automatically invoked without an explicit call to ...
Definition FLImagingGUI/DefinitionsGUI.h:9647
EGUIViewImageInteractionAction
Interaction actions for the image view.
Definition FLImagingGUI/DefinitionsGUI.h:281
EViewImageSyncOption
Image view synchronization options.
Definition FLImagingGUI/DefinitionsGUI.h:9603
EAvailableViewImageContextMenuImageFigure
Available context menu for figure objects stored in the image.
Definition FLImagingGUI/DefinitionsGUI.h:11130
EViewImageFigureObjectMagnetOption
Magnet Options for Image View Figure Objects.
Definition FLImagingGUI/DefinitionsGUI.h:13788
EMenuItem
Image view menu item.
Definition FLImagingGUI/DefinitionsGUI.h:827
EViewImageCreatePageOption
An option of page creation in image view.
Definition FLImagingGUI/DefinitionsGUI.h:766
@ EViewImageCreatePageOption_Append
Append page.
Definition FLImagingGUI/DefinitionsGUI.h:773
EZoomMode
Zoom in and out mode.
Definition FLImagingGUI/DefinitionsGUI.h:9569
EMenuItemImageFigure
Menu item of image figure stored in the image.
Definition FLImagingGUI/DefinitionsGUI.h:4737
EMenuItemObjectMeasure
Menu items related to measurement tool objects in the image view.
Definition FLImagingGUI/DefinitionsGUI.h:7125
EViewImageLoadOption
Image View Load Options Example. The following code will load folder with recursive....
Definition FLImagingGUI/DefinitionsGUI.h:662
@ EViewImageLoadOption_Load
Default Load.
Definition FLImagingGUI/DefinitionsGUI.h:677
@ EViewImageLoadOption_Default
기본
Definition FLImagingGUI/DefinitionsGUI.h:669
EImageFlipDirection
Direction of flip.
Definition FLImagingGUI/DefinitionsGUI.h:7310
EAvailableFigureContextMenu
Available Context Menu for Figure Objects.
Definition FLImagingGUI/DefinitionsGUI.h:10109
EAvailableFigureContextMenu2
Available Context Menu for Figure Objects.
Definition FLImagingGUI/DefinitionsGUI.h:10759
EPixelNumberMode
Pixel value display options in image view.
Definition FLImagingGUI/DefinitionsGUI.h:792