FLImaging 6.5.8.1
GUIViewImageWrap.h
1#pragma once
2
11#include "GUIViewImageBaseWrap.h"
12
13#include "GUIViewImageLayerWrap.h"
14#include "GUIDefinitionsBroadcast.h"
15
17namespace FLImaging
18{
20 namespace GUI
21 {
30 {
31 SupportToDuplicateObject(CGUIViewImageWrap);
32
33 public:
42
51
73 const CResult Create(int32_t i32L, int32_t i32T, int32_t i32R, int32_t i32B, size_t stParentWindowHandle = 0);
74
90 const CResult CreateAndFitParent(size_t stParentWindowHandle, bool bAutoFit = true);
91
104
115
128
146 virtual const CResult Load(const wchar_t* pWcsPath = nullptr, FLImaging::GUI::EViewImageLoadOption eOption = EViewImageLoadOption_Default);
147
165 virtual const CResult Load(Base::CFLArray<FLImaging::Base::CFLString<wchar_t>>* pFlaStrPath, FLImaging::GUI::EViewImageLoadOption eOption = EViewImageLoadOption_Default);
166
184 virtual const CResult LoadRaw(const wchar_t* pWcsPath = nullptr, FLImaging::GUI::EViewImageLoadOption eOption = EViewImageLoadOption_Load);
185
217 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);
218
236 virtual const CResult Save(const wchar_t* pWcsFileNameWithPath = nullptr, bool bSaveCurrentPage = false, bool bWithLayers = false);
237
253 virtual const CResult SavePage(int32_t i32PageIndex, const wchar_t* pWcsFileNameWithPath = nullptr);
254
272 virtual const CResult SavePages(Base::CFLArray<int32_t>* pFlaPageIndices, const wchar_t* pWcsFileNameWithPath = nullptr);
273
289 virtual const CResult LoadFigure(const wchar_t* pWcsPath = nullptr, bool bErrorMsgBox = false);
290
308 virtual const CResult LoadFigureGBR(const wchar_t* pWcsPath = nullptr, const wchar_t* pWcsLayerName = nullptr, uint32_t u32Color = -1);
309
328 virtual const CResult LoadFigureGBR(const wchar_t* pWcsPath, int32_t i32LayerNo, bool bClearLayer);
329
345 virtual const CResult LoadFigureDXF(const wchar_t* pWcsPath = nullptr, bool bErrorMsgBox = false);
346
362 virtual const CResult SaveFigure(Foundation::CFLFigure* pFigure, const wchar_t* pWcsPath = nullptr);
363
375 virtual const CResult ClearFile();
376
388 virtual const CResult ClearPage();
389
405 virtual const CResult ClearPages(Base::CFLArray<int32_t>* pFlaPageIndices);
406
423 virtual const CResult CreatePage(FLImaging::GUI::EViewImageCreatePageOption eOption = EViewImageCreatePageOption_Append);
424
425
456 virtual const CResult CreateImage(int64_t i64Width, int64_t i64Height, int32_t i32Channel, int32_t i32Depth, Base::EValueType eType, bool bOptSeparateChannel, int64_t i64FillValue, int32_t i32AlignByte);
457
469
480
493
506
522 virtual const CResult SetImagePtr(Base::CFLImage* pImage);
523
538
553
570
585
600
617
618
633
648
665
680
695
712
727
742
759
774
789
806
814 virtual void ClearAllLayers();
815
829 CGUIViewImageLayerWrap GetLayer(int32_t i32Index) const;
830
844 CGUIViewImageLayerWrap GetLayerByName(const wchar_t* pWcsLayerName);
845
861 const CResult DeleteLayerByName(const wchar_t* pWcsLayerName);
862
876 bool DoesLayerExist(const wchar_t* pWcsLayerName) const;
877
889 int32_t GetNamedLayerCount() const;
890
904 CGUIViewImageLayerWrap GetNamedLayer(int32_t i32Index) const;
905
925 virtual const CResult SetLayerAutoClearMode(int32_t i32LayerIndex, ELayerAutoClearMode eMode, bool bSet);
926
949
969 virtual const CResult SetLayerAutoClearMode(ELayerAutoClearMode eMode, bool bSet);
970
988 virtual bool GetLayerAutoClearMode(int32_t i32LayerIndex, FLImaging::GUI::ELayerAutoClearMode eMode) const;
989
1007 virtual bool GetLayerAutoClearMode(const CGUIViewImageLayerWrap* pLayer, ELayerAutoClearMode eMode) const;
1008
1022 virtual const CResult ZoomFitToLayer(int32_t i32LayerIndex);
1023
1039 virtual const CResult ZoomFitToLayer(const CGUIViewImageLayerWrap* pLayer);
1040
1053
1068 const CResult ConvertLayerToFigureObject(int32_t i32LayerIndex);
1069
1088
1104 const CResult ConvertSelectedFigureObjectToLayer(int32_t i32LayerIndex, uint32_t u32Color = -1);
1105
1124
1140 const CResult ConvertAllFigureObjectsToLayer(int32_t i32LayerIndex, uint32_t u32Color = -1);
1141
1159 const CResult ConvertAllFigureObjectsToLayer(CGUIViewImageLayerWrap* pLayer, uint32_t u32Color = -1);
1160
1174 const CResult SelectFigureObject(int32_t i32Index);
1175
1188
1213
1238
1239
1253 const CResult DeleteFigureObject(int32_t i32Index);
1254
1268 const CResult DeleteFigureObject(const wchar_t* pWcsObjectName);
1269
1270
1284 Foundation::CFLFigure* GetFigureObject(int32_t i32Index) const;
1285
1299 Foundation::CFLFigure* GetFigureObject(const wchar_t* pWcsObjectName) const;
1300
1313
1326
1339
1354
1370 Foundation::CFLFigure* PopFigureObject(const wchar_t* pWcsObjectName);
1371
1384
1396 bool DoesFigureObjectExist(int32_t i32Index);
1397
1409 bool DoesFigureObjectExist(const wchar_t* pWcsObjectName);
1410
1411
1421 int32_t GetFigureObjectCount() const;
1422
1423
1436
1452 virtual const CResult SetViewCenter(const Foundation::CFLPoint<double>& flpImageCoord);
1453
1471 virtual const CResult SetViewCenterAndScale(const Foundation::CFLPoint<double>& flpImageCoord, double f64Scale);
1472
1486 virtual const CResult ZoomAtCenter(double f64Scale);
1487
1500
1501 virtual const CResult InternalSetOffset(const Foundation::CFLPoint<double>& flpOffset);
1502
1503
1513 virtual double GetScale() const;
1514
1515 virtual const CResult InternalSetScale(double f64Scale);
1516
1530 double GetZoomFitScale(double f64ClientWidth, double f64ClientHeight) const;
1531
1532
1533 virtual const CResult InternalZoomIn(int32_t i32CanvasX, int32_t i32CanvasY, double f64Ratio = 1.25);
1534
1535 virtual const CResult InternalZoomOut(int32_t i32CanvasX, int32_t i32CanvasY, double f64Ratio = 0.8);
1536
1548 virtual const CResult ZoomFit();
1549
1561 virtual const CResult MoveToPrevPage();
1562
1574 virtual const CResult MoveToNextPage();
1575
1589 virtual const CResult MoveToPage(int32_t i32PageNum);
1590
1603
1613 virtual void SetCanvasColor(uint32_t u32Color);
1614
1624 virtual uint32_t GetCanvasColor() const;
1625
1635 virtual void ShowImage(bool bShow);
1636
1646 virtual bool IsImageVisible();
1647
1657 virtual void ShowThumbnailView(bool bShow);
1658
1669
1679 virtual void SetFixThumbnailView(bool bFix);
1680
1690 virtual bool IsThumbnailViewFixed();
1691
1692
1702 virtual void ShowImageMiniMap(bool bShow);
1703
1714
1724 virtual void ShowPageIndex(bool bShow);
1725
1735 virtual bool IsPageIndexVisible();
1736
1737
1747 virtual void ShowGrid(bool bShow);
1748
1758 virtual bool IsGridVisible();
1759
1760
1770 virtual void ShowImageCenter(bool bShow);
1771
1781 virtual bool IsImageCenterVisible();
1782
1783
1793 virtual void ShowCrosshair(bool bShow);
1794
1804 virtual bool IsCrosshairVisible();
1805
1815 virtual void ShowImageCoordinateOnCursor(bool bShow);
1816
1827
1837 virtual void ShowImagePixelValueOnCursor(bool bShow);
1838
1849
1863 virtual const CResult SetDecimalPlaceOfCoordinate(uint8_t u8DecimalPlace = 2);
1864
1874 virtual uint8_t GetDecimalPlaceOfCoordinate() const;
1875
1885 virtual void ShowIntensitySpectrum(bool bShow);
1886
1897
1898
1908 virtual void ShowPixelValue(bool bShow);
1909
1919 virtual bool IsPixelValueVisible();
1920
1933
1946
1962 const CResult SetPixelAccuracy(double f64PixelAccuracyX, double f64PixelAccuracyY);
1963
1979 const CResult GetPixelAccuracy(double* pF64PixelAccuracyX, double* pF64PixelAccuracyY) const;
1980
1996 const CResult GetPixelAccuracy(double& f64PixelAccuracyX, double& f64PixelAccuracyY) const;
1997
1998
2012 const CResult SetPixelAccuracyX(double f64PixelAccuracyX);
2013
2023 double GetPixelAccuracyX() const;
2024
2025
2039 const CResult SetPixelAccuracyY(double f64PixelAccuracyY);
2040
2050 double GetPixelAccuracyY() const;
2051
2052
2069
2082
2083
2100
2115
2132
2149
2163 const CResult SynchronizePointOfView(const CGUIViewImageWrap* pViewImageTarget);
2164
2179
2192
2206 const CResult SynchronizePageIndex(const CGUIViewImageWrap* pViewImageTarget);
2207
2221 const CResult DesynchronizePageIndex(const CGUIViewImageWrap* pViewImageTarget);
2222
2235
2236
2250 const CResult ShowScrollBar(bool bShow);
2251
2265 const CResult ShowStatusBar(bool bShow);
2266
2284 const CResult CaptureScreen(Base::CFLImage& fliImage, bool bIncludeFrame = false);
2285
2303 const CResult CaptureScreen(Base::CFLImage* pFliImage, bool bIncludeFrame = false);
2304
2305
2318
2339
2351
2369 const CResult PasteImageAt(int32_t i32PageIndex);
2370
2387
2404
2422 const CResult RearrangePageOrder(int32_t i32OrigPageIndex, int32_t i32TargetPageIndex);
2423
2443 const CResult RearrangePageOrder(Base::CFLArray<int32_t>* pFlaPageIndices, int32_t i32TargetPageIndex);
2444
2460 virtual const CResult SetThumbnailViewHeight(double f64ThumbnailViewRatio);
2461
2481 virtual const CResult SetThumbnailViewHeight(double f64ThumbnailViewRatio, double f64ThumbnailViewRatioMin, double f64ThumbnailViewRatioMax);
2482
2500 virtual const CResult SetThumbnailViewHeightRange(double f64ThumbnailViewRatioMin, double f64ThumbnailViewRatioMax);
2501
2511 virtual double GetThumbnailViewHeight() const;
2512
2522 virtual double GetThumbnailViewHeightMin() const;
2523
2533 virtual double GetThumbnailViewHeightMax() const;
2534
2552 virtual const CResult SetFloatingImageValueRange(float f32Min, float f32Max);
2553
2571 virtual const CResult GetFloatingImageValueRange(float& f32Min, float& f32Max) const;
2572
2590 virtual const CResult SetFloatingImageValueRange(double f64Min, double f64Max);
2591
2609 virtual const CResult GetFloatingImageValueRange(double& f64Min, double& f64Max) const;
2610
2620 virtual void EnableSelection(bool bEnable);
2621
2631 virtual bool IsSelectionEnabled() const;
2632
2642 virtual void EnableDragAndDrop(bool bEnable);
2643
2653 virtual bool IsDragAndDropEnabled() const;
2654
2667
2680
2692 virtual void SetFigureObjectName(int32_t i32FigureObjectIndex, const wchar_t* pWcsName);
2693
2707 virtual Base::CFLString<wchar_t> GetFigureObjectName(int32_t i32FigureObjectIndex) const;
2708
2721
2734
2747
2760
2772 virtual void EnableFigureObjectRotation(int32_t i32FigureObjectIndex, bool bEnable);
2773
2785 virtual bool IsFigureObjectRotationEnabled(int32_t i32FigureObjectIndex) const;
2786
2796 virtual void EnableMouseWheel(bool bEnable);
2797
2807 virtual bool IsMouseWheelEnabled() const;
2808
2818 virtual void EnableMouseWheelButton(bool bEnable);
2819
2829 virtual bool IsMouseWheelButtonEnabled() const;
2830
2841
2852
2865
2878
2890 virtual void SetFigureObjectStringDecimalPlaceGlobal(uint32_t u32DecimalPlace = 2, bool bExponentialNotation = false);
2891
2903 virtual void SetFigureObjectStringDecimalPlaceForPixelAccuracyGlobal(uint32_t u32DecimalPlace = 2, bool bExponentialNotationForPixelAccuracy = false);
2904
2915
2926
2937
2948
2962 template<typename T>
2964
2979
2989 virtual void EnableFigureObjectMagnetToImageGlobal(bool bEnable);
2990
3001
3011 virtual void EnableFigureObjectAngleMagnetGlobal(bool bEnable);
3012
3023
3037 virtual const CResult PopupImageFigure(int32_t i32Idx);
3038
3054 virtual const CResult PopupImageFigure(const Base::CFLArray<int32_t>* pFlaI32Index);
3055
3068
3085
3101 virtual const CResult RemoveImageFigure(int32_t i32Idx, bool bPopupMsgBox = false);
3102
3120 virtual const CResult RemoveImageFigure(const Base::CFLArray<int32_t>* pFlaI32Index, bool bPopupMsgBox = false);
3121
3139 virtual const CResult RemoveImageFiguresByConditions(const Base::CFLString<wchar_t>& strExpression, bool bPopupMsgBox = false);
3140
3158 virtual const CResult RemoveImageFiguresByConditionsFromAllPages(const Base::CFLString<wchar_t>& strExpression, bool bPopupMsgBox = false);
3159
3173 virtual const CResult ClearImageFiguresAll(bool bPopupMsgBox = false);
3174
3188 virtual const CResult ClearImageFiguresAllPages(bool bPopupMsgBox = false);
3189
3205 virtual const CResult SetImageFigureRealSizeText(bool bRealSize = false, bool bWriteFileSystem = true);
3206
3216 virtual bool IsImageFigureRealSizeText() const;
3217
3241 virtual const CResult SetImageFigureTextFont(const wchar_t* pStrFontName = nullptr, int32_t i32FontSize = 12, EGUIViewImageFontWeight eFontWeight = EGUIViewImageFontWeight_BOLD, bool bItalic = false, bool bWriteFileSystem = true);
3242
3264 virtual const CResult GetImageFigureTextFont(wchar_t** ppStrFontName, int32_t& i32FontSize, EGUIViewImageFontWeight& eFontWeight, bool& bItalic) const;
3265
3281 virtual const CResult SetImageFigureBorderWidth(int32_t i32BorderWidth = 1, bool bWriteFileSystem = true);
3282
3292 virtual int32_t GetImageFigureBorderWidth() const;
3293
3309 virtual const CResult SetImageFigureOpacityBorder(float f32Opacity = 1.f, bool bWriteFileSystem = true);
3310
3320 virtual float GetImageFigureOpacityBorder() const;
3321
3337 virtual const CResult SetImageFigureOpacityFill(float f32Opacity = 0.3f, bool bWriteFileSystem = true);
3338
3348 virtual float GetImageFigureOpacityFill() const;
3349
3365 virtual const CResult SetImageFigureTextOpacityBorder(float f32Opacity = 1.f, bool bWriteFileSystem = true);
3366
3376 virtual float GetImageFigureTextOpacityBorder() const;
3377
3393 virtual const CResult SetImageFigureTextOpacityFill(float f32Opacity = 1.f, bool bWriteFileSystem = true);
3394
3404 virtual float GetImageFigureTextOpacityFill() const;
3405
3415 virtual void ShowImageFigure(bool bShow);
3416
3426 virtual bool IsImageFigureVisible() const;
3427
3437 virtual void ShowImageFigureText(bool bShow);
3438
3448 virtual bool IsImageFigureTextVisible() const;
3449
3459 virtual void EnableHoverImageFigure(bool bEnable);
3460
3470 virtual bool IsHoverImageFigureEnabled() const;
3471
3482
3492 virtual void EnablePixelSegmentationMode(bool bEnable);
3493
3507 virtual void SetSegmentationLabelText(int32_t i32Channel, double f64Value, const Base::CFLString<wchar_t>& strLabelText);
3508
3526 virtual const CResult GetSegmentationLabelText(int32_t i32Channel, double f64Value, Base::CFLString<wchar_t>& strLabelTextResult) const;
3527
3540
3551
3561 virtual void EnableReductionInterpolation(bool bEnable);
3562
3572 virtual void SetPanningMode(bool bSet);
3573
3583 virtual bool IsPanningMode() const;
3584
3596 virtual void SetZoomMode(EZoomMode eZoomMode);
3597
3609 virtual EZoomMode GetZoomMode() const;
3610
3626 virtual const CResult SetTeachingMode(ETeachingMode eTeachingMode);
3627
3640
3650 virtual void EnableSystemMenuOnFileDialog(bool bEnable);
3651
3662
3663 private:
3664 void operator=(const CGUIViewImageWrap& rh);
3666
3667 DeclareGetClassType();
3668 };
3669}
3670}
3671
Template type array class.
Definition RangeTree.h:19
FLIMaging's image class.
Definition FLImage.h:35
Template type string class.
Definition INIUtilities.h:20
FLImaging module execution result object.
Definition ResultsDef.h:1514
A base class of classes representing figures.
Definition FLFigure.h:27
A class representing a point.
Definition FLPoint.h:24
A class representing a rectangle.
Definition FLRect.h:24
A base class of View C API wrapping class.
Definition GUIViewImageBaseWrap.h:28
Image view layer C API wrapping class.
Definition GUIViewImageLayerWrap.h:30
Image view C API wrapping class.
Definition GUIViewImageWrap.h:30
virtual const CResult PopupImageFigureAll()
Creates figure objects from all figures stored in the current view's image.
virtual void EnableFigureObjectAngleMagnetGlobal(bool bEnable)
Sets the angle magnet option for the figure object globally (the option to have a multiples value of ...
virtual bool IsPanningMode() const
Return whether the current mouse drag action is in panning mode.
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 bool IsFigureObjectAngleMagnetGlobalEnabled() const
Returns the angle magnet option for a globally set figure object (the option to have a multiples valu...
virtual void ShowImageMiniMap(bool bShow)
Sets whether to show/hide the minimap.
virtual void ShowFigureObjectInformationTextGlobal(bool bShow)
Sets globally whether an image view figure object displays an information string. After calling this ...
virtual double GetScale() const
Returns the current scale of the ImageView.
virtual Foundation::CFLPoint< double > ConvertClientCoordToImageCoord(const Foundation::CFLPoint< int32_t > &flp)
Convert client coordinates to image coordinates.
const CResult SetPixelAccuracyX(double f64PixelAccuracyX)
Sets the Pixel Accuracy X of the ImageView.
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.
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 Foundation::CFLRect< int32_t > ConvertImageCoordToClientCoord(const Foundation::CFLRect< double > &flr)
Convert image coordinates to client coordinates.
virtual Foundation::CFLPoint< int32_t > ConvertImageCoordToCanvasCoord(double x, double y)
Convert image coordinates to canvas coordinates.
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.
bool DoesFigureObjectExist(const wchar_t *pWcsObjectName)
Retrieves the existence of a figure object whose figure name matches the string passed as a parameter...
virtual bool IsFigureObjectMagnetToImageGlobalEnabled() const
Returns the magnet option for globally set figure objects (the option that sticks to the edge if the ...
const CResult SynchronizePageIndex(const CGUIViewImageWrap *pViewImageTarget)
Synchronizes the parameter's view with the selected page index of the current view.
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 the layer pointer of the index passed as a parameter.
virtual void ClearAllLayers()
Clear the drawing objects above vctDrawingLayers, MeasureLayer, and FigureLayer.
virtual bool IsThumbnailViewFixed()
Determines whether the preview thumbnail pane for the image page is pinned.
virtual const CResult SetLayerAutoClearMode(int32_t i32LayerIndex, ELayerAutoClearMode eMode, bool bSet)
Sets the automatic clear mode of the layer.
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.
const CResult SetPixelAccuracyY(double f64PixelAccuracyY)
Sets the Pixel Accuracy Y of the ImageView.
const CResult SelectFigureObject(int32_t i32Index)
Select the Figure Object in the Image View.
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.
virtual const CResult SetImageFigureBorderWidth(int32_t i32BorderWidth=1, bool bWriteFileSystem=true)
Sets the default border width applied when drawing a Figure stored in an image.
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 const CResult SelectMenuItem(FLImaging::GUI::EMenuItem eMenuItem)
Performs a command on the selected menu item.
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.
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.
virtual uint32_t GetFigureObjectStringDecimalPlaceForPixelAccuracyGlobal() const
Retrieves the number of decimal places displayed when representing the information of a figure object...
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 Load(Base::CFLArray< FLImaging::Base::CFLString< wchar_t > > *pFlaStrPath, FLImaging::GUI::EViewImageLoadOption eOption=EViewImageLoadOption_Default)
Load image files included in the list.
virtual double GetThumbnailViewHeightMax() const
Get the maximum value of the ratio of thumbnail view height to image view height.
virtual bool IsImagePixelValueOnCursorVisible()
Determines whether the pixel values are displayed at the mouse cursor position in the image view.
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.
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...
virtual FLImaging::GUI::EViewImageFigureObjectMagnetOption GetFigureObjectMagnetOption() const
Get the magnet option of the image view figure object.
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.
virtual bool IsImageCenterVisible()
Indicates whether center of image view is drawn.
virtual bool IsGridVisible()
Determines whether the grid on image is shown or hidden.
const CResult ConvertLayerToFigureObject(int32_t i32LayerIndex)
Puts the figure drawn on the selected layer onto the view as a CGUIViewImageObjectFigure object....
Foundation::CFLFigure * GetAllFigureObject() const
Retrieves all of the figures.
virtual bool IsPageIndexVisible()
Determines whether the image page index is shown or hidden.
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 GetLayerAutoClearMode(const CGUIViewImageLayerWrap *pLayer, ELayerAutoClearMode eMode) const
Retrieves the auto-clear status of the layer for the specified mode.
const CResult PushBackFigureObject(Foundation::CFLFigure *pFigure, FLImaging::GUI::EAvailableFigureContextMenu eMenu=FLImaging::GUI::EAvailableFigureContextMenu_All, FLImaging::GUI::EAvailableFigureContextMenu2 eMenu2=FLImaging::GUI::EAvailableFigureContextMenu2_All)
Add Figure to the back.
virtual void SetAvailableViewImageContextMenuImageFigure(EAvailableViewImageContextMenuImageFigure eMenu)
Sets available context menu for Image Figure in this image view.
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.
const CResult SetPixelAccuracy(double f64PixelAccuracyX, double f64PixelAccuracyY)
Sets the Pixel Accuracy X, Y of the ImageView.
virtual void SetFigureObjectMagnetOption(FLImaging::GUI::EViewImageFigureObjectMagnetOption eOption)
Set the magnet options of the image view figure object.
virtual const CResult SetThumbnailViewHeight(double f64ThumbnailViewRatio)
Set the ratio of thumbnail view height to image view height.
virtual void EnableFigureObjectMagnetToImageGlobal(bool bEnable)
Sets the magnet option (the option that sticks to the edge if the figure object is located near the e...
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 void ShowImageFigureText(bool bShow)
Shows or hides the labels (names) of the figures stored in the image.
virtual const CResult SetImageFigureTextOpacityFill(float f32Opacity=1.f, bool bWriteFileSystem=true)
Sets the default fill opacity for label text when drawing a Figure stored in an image.
const CResult SetPixelAccuracyUnit(FLImaging::Foundation::ELengthUnit eLenUnit)
Sets the units for the Pixel Accuracy of the ImageView.
Foundation::CFLFigure * PopBackFigureObject()
Retrieves the last object in the figure objects list and removes it.
virtual void SetAvailableViewImageContextMenu(EAvailableViewImageContextMenu eMenu)
Sets the available context menu for the image view.
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 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....
const CResult RotateImage(FLImaging::GUI::EImageRotateAngle eAngle)
Rotate the image 90, 180, 270 degrees.
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 void SetFigureObjectInformationTextOptionGlobal(EFigureObjectInformationText eFigureObjectInformationText)
Sets the information string display option for an image view figure object globally....
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 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.
Foundation::CFLFigure * PopFrontFigureObject()
Retrieves the first object in the figure objects list and removes it.
FLImaging::Base::CFLString< wchar_t > GetFigureObjectFormatStringForPixelAccuracyGlobal(bool &bExponentialNotation) const
Retrieves the format string used to represent the information of a figure object as a string with app...
virtual Foundation::CFLPoint< int32_t > ConvertClientCoordToCanvasCoord(int32_t x, int32_t y)
Convert client coordinates to canvas coordinates.
virtual void SetCanvasColor(uint32_t u32Color)
Sets the image view's background color.
virtual const CResult SetImageFigureRealSizeText(bool bRealSize=false, bool bWriteFileSystem=true)
Sets the mode for drawing text with real size when displaying a string of Image Figure.
virtual EFigureObjectInformationText GetFigureObjectInformationTextOptionGlobal() const
Returns the information string display option for globally set figure objects.
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 CreateImage(int64_t i64Width, int64_t i64Height, int32_t i32Channel, int32_t i32Depth, Base::EValueType eType, bool bOptSeparateChannel, int64_t i64FillValue, int32_t i32AlignByte)
Creates a new image in the view.
virtual const CResult RemoveImageFiguresByConditionsFromAllPages(const Base::CFLString< wchar_t > &strExpression, bool bPopupMsgBox=false)
Removes shapes that meet certain conditions (e.g., width is 10 or greater, type is 'rect',...
virtual const CResult SetLayerAutoClearMode(ELayerAutoClearMode eMode, bool bSet)
Sets the auto clear mode for all layers at once.
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...
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 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.
virtual void EnableFigureObjectRotation(int32_t i32FigureObjectIndex, bool bEnable)
Enables the rotation function of the image view figure object.
const CResult PushFrontFigureObject(Foundation::CFLFigure *pFigure, FLImaging::GUI::EAvailableFigureContextMenu eMenu=FLImaging::GUI::EAvailableFigureContextMenu_All, FLImaging::GUI::EAvailableFigureContextMenu2 eMenu2=FLImaging::GUI::EAvailableFigureContextMenu2_All)
Add Figure to the front.
Foundation::CFLFigure * PopFigureObject(const wchar_t *pWcsObjectName)
Returns a figure object with the same name as the string passed as a parameter and removes it from th...
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 the figure corresponding to the index passed as a parameter.
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 bool IsPixelValueVisible()
Determines whether the pixel value is shown or hidden.
virtual void ShowThumbnailView(bool bShow)
Sets whether to show/hide the preview thumbnail window for the page when multiple images are displaye...
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.
virtual double GetThumbnailViewHeight() const
Get the ratio of thumbnail view height to image view height.
virtual const CResult SetImageFigureTextOpacityBorder(float f32Opacity=1.f, bool bWriteFileSystem=true)
Sets the default border opacity for label text when drawing a Figure stored in an image.
const CResult DeleteLayerByName(const wchar_t *pWcsLayerName)
Deletes the layer object with the specified name and releases its memory.
virtual const CResult ClearSegmentationLabelText()
Removes all labels set for a particular pixel value.
virtual const CResult MoveToNextPage()
Move to the next page if the image displayed in the image view is a multi-page image.
virtual const CResult SetDecimalPlaceOfCoordinate(uint8_t u8DecimalPlace=2)
Sets the number of decimal places displayed when showing image coordinates at the mouse cursor positi...
const CResult 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 bool IsThumbnailViewVisible()
Determines whether the preview thumbnail window is shown or hidden.
virtual void ShowImagePixelValueOnCursor(bool bShow)
Sets whether pixel values are displayed at the mouse cursor position in Image View.
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 ConvertLayerToFigureObject(CGUIViewImageLayerWrap *pLayer)
Puts the figure drawn on the selected layer onto the view as a Figure Object. If there are more than ...
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 EAvailableViewImageContextMenuImageFigure GetAvailableViewImageContextMenuImageFigure() const
Retrieves available context menu for Image Figure in this image view.
int32_t GetNamedLayerCount() const
Returns the number of layers defined by name.
const CResult ShowStatusBar(bool bShow)
Sets whether to show/hide StatusBar.
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...
virtual bool GetFigureObjectStringExponentialFlagGlobal() const
Gets the format string for representing information about the figure object as a string.
virtual uint8_t GetDecimalPlaceOfCoordinate() const
Retrieves the number of decimal places displayed for the image coordinates at the mouse cursor positi...
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 bool IsIntensitySpectrumVisible()
Determines whether the pixel value text color is determined by the intensity of the pixel value of th...
const CResult Destroy()
Destroy the image view window.
virtual Foundation::CFLRect< int32_t > ConvertClientCoordToCanvasCoord(const Foundation::CFLRect< int32_t > &flr)
Convert client coordinates to canvas coordinates.
virtual bool IsImageCoordinateOnCursorVisible()
Determines whether the image coordinates are displayed at the mouse cursor position in the image view...
const CResult CaptureScreen(Base::CFLImage &fliImage, bool bIncludeFrame=false)
Capture the current screen.
virtual void SetFigureObjectStringDecimalPlaceForPixelAccuracyGlobal(uint32_t u32DecimalPlace=2, bool bExponentialNotationForPixelAccuracy=false)
Sets the format string used to represent the information of a figure object as a string with applied ...
virtual void EnableSystemMenuOnFileDialog(bool bEnable)
Enables or disables the system menu on the file dialog.
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.
virtual const CResult RemoveImageFiguresByConditions(const Base::CFLString< wchar_t > &strExpression, bool bPopupMsgBox=false)
Removes figures stored in the current view's image that match conditions (e.g., width greater than 10...
virtual EAvailableViewImageContextMenu GetAvailableViewImageContextMenu() const
Retrieves the available context menu for the image view.
virtual const CResult SetImageFigureOpacityBorder(float f32Opacity=1.f, bool bWriteFileSystem=true)
Sets the default border opacity applied when drawing a Figure stored in an image.
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).
const CResult DesynchronizePointOfViewAll()
Desynchronize the current view's viewpoint.
virtual const CResult SetViewCenter(const Foundation::CFLPoint< double > &flpImageCoord)
Sets the view center to the specified coordinate flpImageCoord.
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...
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.
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...
size_t GetWindowHandle()
Returns the window handle of the image 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.
virtual void ShowImageCenter(bool bShow)
Sets whether to show/hide the center of image.
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 bool IsImageMiniMapVisible()
Determines whether the minimap is shown or hidden.
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 void EnableMouseWheel(bool bEnable)
Sets whether to enable mouse wheel.
virtual void SetFigureObjectStringDecimalPlaceGlobal(uint32_t u32DecimalPlace=2, bool bExponentialNotation=false)
Sets the format string globally when representing information about a figure object as a string....
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 GetFigureObjectStringExponentialFlagForPixelAccuracyGlobal() const
Retrieves whether exponential notation is used when representing the information of a figure object a...
virtual void ShowImageFigure(bool bShow)
Shows or hides the figures stored in the image.
const CResult DesynchronizePageIndexAll()
Desynchronize the page index of the current view.
virtual bool IsCrosshairVisible()
Determines whether the crosshair is shown or hidden.
virtual bool IsImageFigureRealSizeText() const
Returns whether or not the string in the image Figure is displayed in its real size.
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.
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.
virtual bool IsFigureObjectInformationTextVisibleGlobal() const
Returns whether the globally set figure object displays an information string.
Foundation::CFLFigure * PopFigureObject(int32_t i32Index)
Returns the figure object corresponding to the index passed as a parameter and removes it from the fi...
virtual void ShowImage(bool bShow)
Sets whether to show/hide the image.
virtual uint32_t GetCanvasColor() const
Retrieves the background color of the image view.
const CResult ClearFigureObject()
Removes all CGUIViewImageObjectFigure objects in the image view.
virtual bool IsImageVisible()
Determines whether the image is shown or hidden.
const CResult SynchronizePointOfView(const CGUIViewImageWrap *pViewImageTarget)
Synchronizes the view point of the parameter and the current view.
Foundation::CFLFigure * PopAllFigureObject()
Return all figure objects and clear the figure object list.
virtual const CResult SetImageFigureTextFont(const wchar_t *pStrFontName=nullptr, int32_t i32FontSize=12, EGUIViewImageFontWeight eFontWeight=EGUIViewImageFontWeight_BOLD, bool bItalic=false, bool bWriteFileSystem=true)
Sets the font for the string in the Image Figure.
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.
FLImaging::Base::CFLString< wchar_t > GetFigureObjectFormatStringGlobal(bool &bExponentialNotation) const
Gets the format string for representing information about the figure object as a string.
virtual const CResult CreatePage(FLImaging::GUI::EViewImageCreatePageOption eOption=EViewImageCreatePageOption_Append)
Creates a new page in the image displayed in the view.
virtual uint32_t GetFigureObjectStringDecimalPlaceGlobal() const
Gets the format string for representing information about the figure object as a string.
virtual const CResult ZoomFit()
Scales the image view so that the image is sized to fit the image view.
virtual void EnablePixelSegmentationMode(bool bEnable)
Sets whether to enable features that can be viewed by coloring the pixel values in the image view.
virtual Base::CFLImage * GetImagePtr()
Retrieves an image pointer displayed in the image view.
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.
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 the figure whose figure name matches the string passed as a parameter.
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.
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 const CResult PopupImageFigureByConditions(const Base::CFLString< wchar_t > &strExpression)
Creates figure objects from figures stored in the current view's image that match conditions (e....
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.
virtual ETeachingMode GetTeachingMode() const
Return the teaching mode set for the current view.
virtual void SetPixelNumberMode(EPixelNumberMode eMode)
Sets the pixel value display mode of the image.
virtual const CResult SetImageFigureOpacityFill(float f32Opacity=0.3f, bool bWriteFileSystem=true)
Sets the default fill opacity applied when drawing a Figure stored in an image.
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.
virtual Foundation::CFLPoint< int32_t > ConvertCanvasCoordToClientCoord(int32_t x, int32_t y)
Convert canvas coordinates to client coordinates.
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 DefinitionsBase.h:88
EValueType
Value type.
Definition DefinitionsBase.h:50
ELengthUnit
Indicates a unit of length.
Definition DefinitionsFoundation.h:77
EGUIViewImageHitArea
The area where the mouse is located on the image view.
Definition GUIDefinitions.h:4157
EImageRotateAngle
Available image rotation angle in image view.
Definition GUIDefinitions.h:3108
EAvailableViewImageContextMenu
Available context menu for image view.
Definition GUIDefinitions.h:3200
EFigureObjectInformationText
Text options representing information for a figure object.
Definition GUIDefinitions.h:6804
ETeachingMode
Teaching mode.
Definition GUIDefinitions.h:4746
ELayerAutoClearMode
In auto clear mode of the image view layer, lists cases in which auto clear of the layer is applied a...
Definition GUIDefinitions.h:5405
EGUIViewImageFontWeight
Font thickness of image view.
Definition GUIDefinitions.h:4916
EViewImageSyncOption
Image view synchronization options.
Definition GUIDefinitions.h:5279
EAvailableViewImageContextMenuImageFigure
Available context menu for figure objects stored in the image.
Definition GUIDefinitions.h:6604
EViewImageFigureObjectMagnetOption
Magnet Options for Image View Figure Objects.
Definition GUIDefinitions.h:9148
EMenuItem
Image view menu item.
Definition GUIDefinitions.h:323
EViewImageCreatePageOption
An option of page creation in image view.
Definition GUIDefinitions.h:262
EZoomMode
Zoom in and out mode.
Definition GUIDefinitions.h:5245
EViewImageLoadOption
Image View Load Options Example. The following code will load folder with recursive....
Definition GUIDefinitions.h:158
EImageFlipDirection
Direction of flip.
Definition GUIDefinitions.h:3154
EAvailableFigureContextMenu
Available Context Menu for Figure Objects.
Definition GUIDefinitions.h:5663
@ EAvailableFigureContextMenu_All
All menu.
Definition GUIDefinitions.h:6200
EAvailableFigureContextMenu2
Available Context Menu for Figure Objects.
Definition GUIDefinitions.h:6241
@ EAvailableFigureContextMenu2_All
All menu.
Definition GUIDefinitions.h:6563
EPixelNumberMode
Pixel value display options in image view.
Definition GUIDefinitions.h:288