FLImaging 6.7.1.3
GUIView3DWrap.h
1#pragma once
2
10
11#include "GUIViewImageBaseWrap.h"
12
13#include "GUIView3DLayerWrap.h"
14#include "GUIDefinitions.h"
15
17namespace FLImaging
18{
20 namespace GUI
21 {
22 class CGUIView3DObject;
25 class CGUIView3DCamera;
26
34 class FL_EXPORT CGUIView3DWrap : public CGUIViewImageBaseWrap
35 {
36 public:
44
51 virtual ~CGUIView3DWrap();
52
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
103
113
131 virtual const CResult Load(const wchar_t* pWcsPath, const wchar_t* pWcsTextureImagePath, EView3DLoadOption eOption = EView3DLoadOption_Load);
132
150 virtual const CResult Load(const wchar_t* pWcsPath = nullptr, EView3DLoadOption eOption = EView3DLoadOption_Load);
151
174
192 virtual const CResult Save(const wchar_t* pWcsPath = nullptr, bool bBinaryFormat = true);
193
204 virtual const CResult Clear();
205
225 virtual const CResult PushObject(const FLImaging::Foundation::CFL3DObject& obj, int32_t* pI32ReturnIndex = nullptr);
226
244 virtual const CResult PushObject(const FLImaging::Foundation::CFL3DObjectHeightMap& obj, int32_t* pI32ReturnIndex = nullptr);
245
263 virtual const CResult PushObject(const FLImaging::GUI::CGUIView3DObject& obj, int32_t* pI32ReturnIndex = nullptr);
264
282 virtual const CResult PushObject(const FLImaging::GUI::CGUIView3DObjectHeightMap& obj, int32_t* pI32ReturnIndex = nullptr);
283
301 virtual const CResult PushObject(const FLImaging::GUI::CGUIView3DObjectLine& obj, int32_t* pI32ReturnIndex = nullptr);
302
316 virtual const FLImaging::GUI::CGUIView3DObject* GetView3DObject(int32_t i32ObjectIndex) const;
317
331 virtual int32_t GetObjectIndex(const FLImaging::GUI::CGUIView3DObject* pObject) const;
332
348 virtual const CResult SaveObject(int32_t i32ObjectIndex, const wchar_t* pWcsPath = nullptr);
349
363 virtual const CResult RemoveObject(int32_t i32ObjectIndex);
364
376 virtual const CResult ClearObjects();
377
387 virtual int32_t GetObjectCount() const;
388
404 virtual const CResult UpdateObject(int32_t i32ObjectIndex = -1);
405
421 virtual const CResult SetMeasurementMode(EGUIView3DMeasurementMode eMeasurementMode);
422
435
451 virtual const CResult SetTeachingMode(EGUIView3DTeachingMode eTeachingMode);
452
465
481 virtual const CResult SetRotatePivotType(EGUIView3DRotatePivot eRotatePivotType);
482
495
509 const CResult ShowStatusBar(bool bShow);
510
524 virtual const CResult ShowToolBar(bool bShow) override;
525
534 virtual void ShowCrosshair(bool bShow);
535
544 virtual bool IsCrosshairVisible();
545
554 virtual void ShowAxis(bool bShow);
555
564 virtual bool IsAxisVisible();
565
574 virtual void ShowGrid(bool bShow);
575
584 virtual bool IsGridVisible();
585
594 virtual void ShowLegend(bool bShow);
595
604 virtual bool IsLegendVisible();
605
615 virtual void SetCanvasColor(uint32_t u32Color);
616
626 virtual uint32_t GetCanvasColor() const;
627
640
653
665 virtual const CResult SetCamera(const CGUIView3DCamera& camera);
666
678 virtual const CResult SetCamera(const Foundation::CFL3DCamera& camera);
679
692
707 virtual const CResult LoadCamera(const wchar_t* pWcsFilePath = nullptr);
708
724 virtual const CResult SaveCamera(const wchar_t* pWcsFilePath = nullptr, uint8_t u8DecimalPlace = 10);
725
726 virtual const CResult InternalZoomIn(int32_t i32CanvasX, int32_t i32CanvasY);
727
728 virtual const CResult InternalZoomOut(int32_t i32CanvasX, int32_t i32CanvasY);
729
743 virtual const CResult ZoomFit(int32_t i32ObjectIndex = -1);
744
761
778
795
812
831
850
867
883 const Base::TPoint3<double> ConvertCanvasCoordTo3DCoord(int32_t x, int32_t y) const;
884
899
914
930 virtual Foundation::CFLPoint<int32_t> ConvertClientCoordToCanvasCoord(int32_t i32X, int32_t i32Y) const;
931
946
961
977 virtual Foundation::CFLPoint<int32_t> ConvertCanvasCoordToClientCoord(int32_t i32X, int32_t i32Y) const;
978
979
980
993 CGUIView3DLayerWrap GetLayer(int32_t i32Index);
994
1001 virtual void ClearAllLayers();
1002
1014
1026
1042
1043
1065
1075 virtual void EnableDragAndDrop(bool bEnable);
1076
1086 virtual bool IsDragAndDropEnabled();
1087
1099 virtual const CGUIView3DObject* GetHitObject() const;
1100
1113
1131 virtual Base::TPoint3<float> UnprojectPoint(int32_t i32CanvasX, int32_t i32CanvasY, float f32Depth) const;
1132
1154 virtual bool GetCursorProjectionPoint(const int32_t& i32CanvasX, const int32_t& i32CanvasY, float& f32ProjectionX, float& f32ProjectionY, float& f32ProjectionZ, const float& f32Tolerance = 10.f);
1155
1175 virtual bool GetCursorProjectionPoint(const int32_t& i32CanvasX, const int32_t& i32CanvasY, Base::TPoint3<float>& tp3fProjection, const float& f32Tolerance = 10.f);
1176
1198 virtual bool GetCursorProjectionPoint(const Foundation::CFLPoint<int32_t>& flpCanvas, float& f32ProjectionX, float& f32ProjectionY, float& f32ProjectionZ, const float& f32Tolerance = 10.f);
1199
1219 virtual bool GetCursorProjectionPoint(const Foundation::CFLPoint<int32_t>& flpCanvas, Base::TPoint3<float>& tp3fProjection, const float& f32Tolerance = 10.f);
1220
1236 virtual void GetCursorPosOnLButtonDown(Foundation::CFLPoint<int32_t>& flpCanvas, Base::TPoint3<float>* pTp3fProjection = nullptr) const;
1237
1245 virtual void UpdateScreen();
1246
1263
1276
1293
1306
1320 virtual const CResult SetPointSize(float f32PointSize = 1.f);
1321
1331 virtual float GetPointSize() const;
1332
1344 virtual const CResult ClearROI();
1345
1361 virtual const CResult PushBackROI(const Base::TRect<float>* pTr);
1362
1379
1395 virtual const CResult PushBackROI(const Foundation::CFLFigure* pFlf);
1396
1410 virtual const CResult RemoveROI(int32_t i32Index);
1411
1429 virtual const CResult GetROI(int32_t i32Index, Foundation::CFLFrustum3<float>& frustumResult) const;
1430
1448 virtual const CResult GetAllROI(Foundation::CFLFigureArray* pFlfaResult) const;
1449
1459 virtual int32_t GetROICount() const;
1460
1480 virtual const CResult ConvertROI2DTo3D(const Base::TRect<int32_t>& tr, Foundation::CFLFrustum3<float>& frustumResult) const;
1481
1502
1526 virtual const CResult ConvertROI2DTo3D(int32_t i32Left, int32_t i32Top, int32_t i32Right, int32_t i32Bottom, Foundation::CFLFrustum3<float>& frustumResult) const;
1527
1541 virtual const CResult SetPanningMode(bool bSet);
1542
1552 virtual bool IsPanningMode() const;
1553
1567 virtual const CResult SetRectangleSelectionMode(bool bSet);
1568
1578 virtual bool IsRectangleSelectionMode() const;
1579
1595 virtual const CResult SetZoomMode(EZoomMode eZoomMode);
1596
1608 virtual EZoomMode GetZoomMode() const;
1609
1626
1639
1656
1669
1684 virtual const CResult SetDecimalPlaceOfCoordinate(uint8_t u8DecimalPlace = 2);
1685
1695 virtual uint8_t GetDecimalPlaceOfCoordinate() const;
1696
1713 virtual const CResult CaptureScreen(Base::CFLImage& fliImage, bool bIncludeFrame = false);
1714
1731 virtual const CResult CaptureScreen(Base::CFLImage* pFliImage, bool bIncludeFrame = false);
1732
1746 virtual bool IsSynchronized(EView3DSyncOption eView3DSyncOption) const;
1747
1761 virtual CGUIView3DWrap* GetRootSyncView(EView3DSyncOption eView3DSyncOption) const;
1762
1778 virtual const CResult ResignRootSyncView(EView3DSyncOption eView3DSyncOption);
1779
1793 virtual const CResult SynchronizePointOfView(const CGUIView3DWrap* pTargetView);
1794
1808 virtual const CResult DesynchronizePointOfView(const CGUIView3DWrap* pTargetView);
1809
1822
1833
1843 bool DoesObjectExist() const;
1844
1855
1865 virtual int32_t GetObjectSTEPCount() const;
1866
1880 virtual const CResult RemoveObjectSTEP(int32_t i32ObjectSTEPIndex);
1881
1893 virtual const CResult ClearObjectsSTEP();
1894
1914 virtual const CResult ConvertObjectSTEPToPointCloud(int32_t i32ObjectSTEPIndex, int32_t& i32ResultObjectIndex, bool bEraseObjectSTEP = true);
1915
1931 virtual CGUIView3DObject* GetPointCloudFromObjectSTEP(int32_t i32ObjectSTEPIndex) const;
1932
1933 private:
1934 void operator=(const CGUIView3DWrap& rh);
1935 CGUIView3DWrap(const CGUIView3DWrap& rh);
1936
1937 DeclareGetClassType();
1938 };
1939 }
1940}
1941
Template type array class.
Definition FLArray.h:53
FLIMaging's image class.
Definition FLImage.h:35
Template type string class.
Definition FLString.h:34
Simplified class representing a 3-D point.
Definition TPoint3.h:37
Simplified class representing a rectangle.
Definition TRect.h:37
FLImaging module execution result object.
Definition ResultsDef.h:1596
A class of 3D camera.
Definition FL3DCamera.h:32
A class representing 3D object height map data.
Definition FL3DObjectHeightMap.h:25
A class representing 3D object data.
Definition FL3DObject.h:39
A base class representing array of figure.
Definition FLFigureArray.h:26
A base class of classes representing figures.
Definition FLFigure.h:27
A class representing a frustum.
Definition FLFrustum3.h:26
A class representing a point.
Definition FLPoint.h:24
A class representing a rectangle.
Definition FLRect.h:24
A class of 3D view camera.
Definition GUIView3DCamera.h:28
3D view layer C API wrapping class
Definition GUIView3DLayerWrap.h:30
A class representing 3D Object of height map.
Definition GUIView3DObjectHeightMap.h:22
A class representing 3D object.
Definition GUIView3DObject.h:25
A class representing 3D object line.
Definition GUIView3DObjectLine.h:24
virtual const CResult DesynchronizePointOfViewAll()
Desynchronize the current view's viewpoint.
virtual const CResult ZoomFit(int32_t i32ObjectIndex=-1)
Adjusts the scale of the 3D view so that the object specified by i32ObjectIndex fits entirely within ...
virtual const CResult DesynchronizePointOfView(const CGUIView3DWrap *pTargetView)
Turn off viewpoint synchronization for the parameter's view.
virtual const CResult ConvertObjectSTEPToPointCloud(int32_t i32ObjectSTEPIndex, int32_t &i32ResultObjectIndex, bool bEraseObjectSTEP=true)
Converts the specified STEP object in the 3D view into a point cloud and adds it to this view as a CG...
virtual bool IsRectangleSelectionMode() const
Return whether the mode for selecting objects with a rectangle is enabled or disabled.
virtual bool GetCursorProjectionPoint(const int32_t &i32CanvasX, const int32_t &i32CanvasY, Base::TPoint3< float > &tp3fProjection, const float &f32Tolerance=10.f)
A function that obtains the closest intersection point to the screen by returning true when the inter...
virtual int32_t GetObjectIndex(const FLImaging::GUI::CGUIView3DObject *pObject) const
Gets the index of object. Returns -1 if the mesh is not in this view.
virtual void UpdateScreen()
Update this view.
virtual const CResult PushObject(const FLImaging::GUI::CGUIView3DObjectLine &obj, int32_t *pI32ReturnIndex=nullptr)
Draws a CGUIView3DObjectLine object on 3D view.
const Base::TPoint3< double > ConvertCanvasCoordTo3DCoord(const Foundation::CFLPoint< int32_t > &point) const
Convert canvas coordinates to 3D coordinates.
virtual void ShowAxis(bool bShow)
Sets whether the x, y, and z axes are drawn in a 3D view.
const CResult Create(int32_t i32L, int32_t i32T, int32_t i32R, int32_t i32B, size_t stParentWindowHandle=0)
Create a window for a 3D view.
virtual const CResult RemoveObject(int32_t i32ObjectIndex)
Remove the 3D object.
bool DoesHeightMapExist() const
Checks whether a height map object(CGUIView3DObjectHeightMap) exists.
virtual const CResult GetAllROI(Foundation::CFLFigureArray *pFlfaResult) const
Returns the frustums obtained by unprojecting every ROI rectangle based on the current view perspecti...
virtual EZoomMode GetZoomMode() const
Return the current zoom mode set for the left mouse button click action.
virtual bool IsPanningMode() const
Return whether the current mouse drag action is in panning mode.
virtual const CGUIView3DObject * GetHitObject() const
Returns the CGUIView3DObject object hit by mouse.
virtual Foundation::ETopologyType3D GetTopologyType() const
Returns the type of topology of this object.
virtual const CResult SetPointSize(float f32PointSize=1.f)
Set the point size applied to point cloud drawing.
virtual const CResult SetTeachingMode(EGUIView3DTeachingMode eTeachingMode)
Sets the measurement mode of 3D view.
Foundation::CFLPoint< int32_t > Convert3DCoordToCanvasCoord(double x, double y, double z) const
Convert 3D coordinates to canvas coordinates.
virtual const CResult SetRectangleSelectionMode(bool bSet)
Enable or disable the mode for selecting objects with a rectangle.
virtual const FLImaging::GUI::CGUIView3DObject * GetView3DObject(int32_t i32ObjectIndex) const
Gets the object of a particular index from the view.
virtual const CResult RemoveObjectSTEP(int32_t i32ObjectSTEPIndex)
Remove the STEP object.
virtual FLImaging::GUI::EAvailableView3DContextMenu GetAvailableView3DContextMenu()
Obtain possible context menus for the 3D view.
const CResult SetRotationAngleLock(EGUIView3DRotationAngle eAngle)
Sets the locked rotation angle for the view. This is useful for scenarios where precise control over ...
virtual uint8_t GetDecimalPlaceOfCoordinate() const
Gets the number of decimal places displayed for the mouse intersection coordinates....
virtual bool IsAxisVisible()
Gets whether to draw the x, y, and z axes in a 3D view.
virtual const CResult PushBackROI(const Base::TRect< float > *pTr)
Add ROI to the back.
const Base::TPoint3< double > ConvertCanvasCoordTo3DCoord(int32_t x, int32_t y) const
Convert canvas coordinates to 3D coordinates.
virtual void ShowGrid(bool bShow)
Sets whether to draw Grid on the xz plane in a 3D view.
virtual const CResult LoadCamera(const wchar_t *pWcsFilePath=nullptr)
Loads camera parameters from a file and applies them to the 3D view. The behavior varies depending on...
virtual CGUIView3DCamera * GetCamera() const
Returns the 3D camera of this view.
virtual const CResult ShowToolBar(bool bShow) override
Sets whether to show/hide ToolBar.
virtual int32_t GetObjectSTEPCount() const
Returns the number of STEP objects in this view.
EGUIView3DHitArea GetHitArea()
Retrieves the Hit area for the current mouse position in the 3D view.
virtual void EnableDragAndDrop(bool bEnable)
Sets whether to enable or disable to load files with drag and drop.
virtual const CResult PushBackROI(const Foundation::CFLFrustum3< float > *pFlfr)
Add the ROI.
virtual const CResult SetRotatePivotType(EGUIView3DRotatePivot eRotatePivotType)
Sets the rotate pivot type of 3D view.
virtual bool IsDragAndDropEnabled()
Determines whether to load files with drag and drop.
virtual void SetSelectionMode(FLImaging::GUI::ESelectionMode3D eSelectionMode)
Sets the 3D object selection mode.
virtual const CResult SetShadingType(Foundation::EShadingType3D eObjectShadingType=Foundation::EShadingType3D_Phong)
Sets the type of shading of this object. Default value is Foundation::EShadingType3D_Phong.
virtual const CResult ConvertROI2DTo3D(int32_t i32Left, int32_t i32Top, int32_t i32Right, int32_t i32Bottom, Foundation::CFLFrustum3< float > &frustumResult) const
Converts a rectangle defined by screen coordinates into a frustum object based on the current viewpor...
CGUIView3DLayerWrap GetLayer(int32_t i32Index)
Gets the layer pointer of the index passed by the parameter.
virtual const CResult SetZoomMode(EZoomMode eZoomMode)
Set or unset the Zoom mode for the left mouse button click action.
size_t GetWindowHandle()
Gets the window handle of the 3D view.
virtual const CResult PushObject(const FLImaging::GUI::CGUIView3DObjectHeightMap &obj, int32_t *pI32ReturnIndex=nullptr)
Draws a CGUIView3DObjectHeightMap object on 3D view.
virtual EGUIView3DTeachingMode GetTeachingMode() const
Retrieves the measurement mode of the 3D view.
virtual Foundation::CFLRect< int32_t > ConvertCanvasCoordToClientCoord(const Foundation::CFLRect< int32_t > &flr) const
Convert canvas coordinates to client coordinates.
virtual Foundation::EShadingType3D GetShadingType() const
Returns the type of shading of this object.
virtual const CResult SetCamera(const Foundation::CFL3DCamera &camera)
Sets the 3D camera.
virtual const CResult SetMeasurementMode(EGUIView3DMeasurementMode eMeasurementMode)
Sets the measurement mode of 3D view.
virtual const CResult CaptureScreen(Base::CFLImage *pFliImage, bool bIncludeFrame=false)
Capture the current screen.
EGUIView3DAxis GetLockedMovementAxis() const
Returns the axis that is restricted from movement in the current view.
virtual const CResult ClearROI()
Removes all ROIs in this view.
virtual const CResult SaveCamera(const wchar_t *pWcsFilePath=nullptr, uint8_t u8DecimalPlace=10)
Saves the current camera parameters of the 3D view to a file.
virtual Base::TPoint3< float > UnprojectPoint(int32_t i32CanvasX, int32_t i32CanvasY, float f32Depth) const
Returns screen coordinates which are unprojected based on the current viewport and camera perspective...
virtual const CResult RemoveROI(int32_t i32Index)
Removes a ROI.
virtual const FLImaging::CResult GetHeightProfile(const FLImaging::Foundation::CFLPoint< int64_t > *pFlpStart, const FLImaging::Foundation::CFLPoint< int64_t > *pFlpEnd, Base::CFLArray< double > *pFlaF64HeightProfile)
Gets the height profile information for the model.
virtual int32_t GetObjectCount() const
Returns the number of 3D objects in this view.
virtual const CResult Save(const wchar_t *pWcsPath=nullptr, bool bBinaryFormat=true)
Save the file. If pWcsPath == nullptr, a file save dialog will pop up.
virtual const CResult PushBackROI(const Foundation::CFLFigure *pFlf)
Add the ROI.
const CResult SetMovementAxisLock(EGUIView3DAxis eAxis)
A function that restricts movement along a specific axis. Setting it to EGUIView3DAxis_None allows mo...
virtual const CResult ConvertROI2DTo3D(const Foundation::CFLRect< int32_t > &flr, Foundation::CFLFrustum3< float > &frustumResult) const
Converts a rectangle defined by screen coordinates into a frustum object based on the current viewpor...
virtual void SetCanvasColor(uint32_t u32Color)
Sets the 3D view's background color.
virtual const CResult Load(const wchar_t *pWcsPath=nullptr, EView3DLoadOption eOption=EView3DLoadOption_Load)
Load files into the view. 1 channel image files, .step, .ply, .obj extension files are supported.
virtual const CResult ConvertROI2DTo3D(const Base::TRect< int32_t > &tr, Foundation::CFLFrustum3< float > &frustumResult) const
Converts a rectangle defined by screen coordinates into a frustum object based on the current viewpor...
virtual Foundation::CFLRect< int32_t > ConvertClientCoordToCanvasCoord(const Foundation::CFLRect< int32_t > &flr) const
Convert client coordinates to canvas coordinates.
virtual const CResult ResignRootSyncView(EView3DSyncOption eView3DSyncOption)
If the root view of the synchronized views for a specific option is the current image view,...
virtual const CResult ClearObjects()
Clear all the 3D objects.
Foundation::CFLPoint< int32_t > Convert3DCoordToCanvasCoord(const Base::TPoint3< float > *pPoint) const
Convert 3D coordinates to canvas coordinates.
bool DoesObjectSTEPExist() const
Checks whether a STEP object exists.
virtual Foundation::CFLPoint< int32_t > ConvertClientCoordToCanvasCoord(const Foundation::CFLPoint< int32_t > &flp) const
Convert client coordinates to canvas coordinates.
virtual const CResult Clear()
Close the image file on the GUI interface.
virtual void ShowCrosshair(bool bShow)
Sets whether to draw crosshair at the mouse cursor position in the 3D view.
virtual int32_t GetROICount() const
Retrieves the number of ROIs.
virtual void SetAvailableView3DContextMenu(FLImaging::GUI::EAvailableView3DContextMenu eMenu)
Set possible context menus for 3D views.
virtual CGUIView3DObject * GetPointCloudFromObjectSTEP(int32_t i32ObjectSTEPIndex) const
Converts the specified STEP object in the 3D view into a point cloud and returns it as a CGUIView3DOb...
virtual const CResult SynchronizePointOfView(const CGUIView3DWrap *pTargetView)
Synchronizes the view point of the parameter and the current view.
virtual const FLImaging::CResult SelectMenuItem(FLImaging::GUI::EMenuItemView3D eMenuItem)
Executes commands for the selected menu item.
virtual const CResult SetDecimalPlaceOfCoordinate(uint8_t u8DecimalPlace=2)
Sets the number of decimal places displayed for the mouse intersection coordinates....
virtual const CResult CaptureScreen(Base::CFLImage &fliImage, bool bIncludeFrame=false)
Capture the current screen.
const CResult ShowStatusBar(bool bShow)
Sets whether to show/hide StatusBar.
EGUIView3DRotationAngle GetLockedRotationAngle() const
Returns the angle that is restricted from rotation in the current view.
virtual const CResult Load(const Base::CFLArray< Base::CFLString< wchar_t > > &flaFilePathToLoad, EView3DLoadOption eOption=EView3DLoadOption_Load)
Load files included in the list.
virtual Foundation::CFLPoint< int32_t > ConvertCanvasCoordToClientCoord(const Foundation::CFLPoint< int32_t > &flp) const
Convert canvas coordinates to client coordinates.
bool DoesObjectExist() const
Checks whether a CGUIView3DObject object exists.
Foundation::CFLPoint< int32_t > Convert3DCoordToCanvasCoord(const Base::TPoint3< double > *pPoint) const
Convert 3D coordinates to canvas coordinates.
virtual const CResult PushObject(const FLImaging::GUI::CGUIView3DObject &obj, int32_t *pI32ReturnIndex=nullptr)
Draws a CGUIView3DObject object on 3D view.
virtual bool IsGridVisible()
Gets whether to draw Grid on the xz plane in the 3D view.
Foundation::CFLPoint< int32_t > Convert3DCoordToCanvasCoord(const Base::TPoint3< double > &point) const
Convert 3D coordinates to canvas coordinates.
virtual bool GetCursorProjectionPoint(const int32_t &i32CanvasX, const int32_t &i32CanvasY, float &f32ProjectionX, float &f32ProjectionY, float &f32ProjectionZ, const float &f32Tolerance=10.f)
A function that obtains the closest intersection point to the screen by returning true when the inter...
virtual EGUIView3DRotatePivot GetRotatePivotType() const
Retrieves the rotate pivot type of the 3D view.
virtual ~CGUIView3DWrap()
Default destructor.
virtual void ClearAllLayers()
Clears drawing objects above vctDrawingLayers, MeasureLayer, and FigureLayer.
virtual EGUIView3DMeasurementMode GetMeasurementMode() const
Retrieves the measurement mode of the 3D view.
virtual Foundation::CFLPoint< int32_t > ConvertCanvasCoordToClientCoord(int32_t i32X, int32_t i32Y) const
Convert canvas coordinates to client coordinates.
virtual bool GetCursorProjectionPoint(const Foundation::CFLPoint< int32_t > &flpCanvas, float &f32ProjectionX, float &f32ProjectionY, float &f32ProjectionZ, const float &f32Tolerance=10.f)
A function that obtains the closest intersection point to the screen by returning true when the inter...
virtual const CResult PushObject(const FLImaging::Foundation::CFL3DObject &obj, int32_t *pI32ReturnIndex=nullptr)
Draws a CFL3DObject object on 3D view.
virtual const CResult PushObject(const FLImaging::Foundation::CFL3DObjectHeightMap &obj, int32_t *pI32ReturnIndex=nullptr)
Draws a CFL3DObjectHeightMap object on 3D view.
virtual const CResult SetTopologyType(Foundation::ETopologyType3D eTopologyType=Foundation::ETopologyType3D_Solid)
Sets the type of topology of this object. Default value is Foundation::ETopologyType3D_Solid.
virtual const CResult SetPanningMode(bool bSet)
Set or unset the mouse drag action to panning mode.
virtual const CResult ClearObjectsSTEP()
Clear all the STEP objects.
virtual float GetPointSize() const
Returns the point size applied to point cloud drawing.
virtual bool IsLegendVisible()
Gets the legend display in the 3D view.
virtual CGUIView3DWrap * GetRootSyncView(EView3DSyncOption eView3DSyncOption) const
Retrieves the root view synchronized with the current image view for a specific option.
virtual Foundation::CFLPoint< int32_t > ConvertClientCoordToCanvasCoord(int32_t i32X, int32_t i32Y) const
Convert client coordinates to canvas coordinates.
CGUIView3DWrap()
Default constructor.
virtual bool IsSynchronized(EView3DSyncOption eView3DSyncOption) const
Returns whether the current image view is synchronized with another image view for a particular optio...
const CResult Destroy()
Disappear the window of the 3D view.
virtual const CResult SaveObject(int32_t i32ObjectIndex, const wchar_t *pWcsPath=nullptr)
Save the selected 3D object as a file. If pWcsPath == nullptr, a file save dialog will pop up.
virtual const CResult UpdateObject(int32_t i32ObjectIndex=-1)
If there are any changes to the mesh, update and redraw the changes.
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...
virtual bool GetCursorProjectionPoint(const Foundation::CFLPoint< int32_t > &flpCanvas, Base::TPoint3< float > &tp3fProjection, const float &f32Tolerance=10.f)
A function that obtains the closest intersection point to the screen by returning true when the inter...
virtual const CResult GetROI(int32_t i32Index, Foundation::CFLFrustum3< float > &frustumResult) const
Returns the frustum obtained by unprojecting the ROI rectangle corresponding to the given index,...
virtual uint32_t GetCanvasColor() const
Retrieves the background color of the 3D view.
virtual void GetCursorPosOnLButtonDown(Foundation::CFLPoint< int32_t > &flpCanvas, Base::TPoint3< float > *pTp3fProjection=nullptr) const
Obtain the coordinates of the point when the left mouse button is pressed.
virtual FLImaging::GUI::ESelectionMode3D GetSelectionMode()
Retrieves the 3D object selection mode.
virtual const CResult SetCamera(const CGUIView3DCamera &camera)
Sets the 3D camera.
virtual void ShowLegend(bool bShow)
Sets whether the legend is displayed in the 3D view.
Foundation::CFLPoint< int32_t > Convert3DCoordToCanvasCoord(const Base::TPoint3< float > &point) const
Convert 3D coordinates to canvas coordinates.
virtual bool IsCrosshairVisible()
Gets whether to draw a crosshair at the mouse cursor position in the 3D view.
Foundation::CFLPoint< int32_t > Convert3DCoordToCanvasCoord(float x, float y, float z) const
Convert 3D coordinates to canvas coordinates.
virtual const CResult Load(const wchar_t *pWcsPath, const wchar_t *pWcsTextureImagePath, EView3DLoadOption eOption=EView3DLoadOption_Load)
Load files into the view. 1 channel image files are supported.
CGUIViewImageBaseWrap()
Default constructor.
ETopologyType3D
The type of representation of 3D objects.
Definition Definitions3D.h:125
@ ETopologyType3D_Solid
Solid modeling(It distinguishes between the exterior and interior of an object, has volume,...
Definition Definitions3D.h:159
EShadingType3D
Object Shading Type in 3D View.
Definition Definitions3D.h:75
@ EShadingType3D_Phong
Phong shading.
Definition Definitions3D.h:106
Definition D2DObject.h:12
EMenuItemView3D
3D View Menu Item
Definition GUIView3DDefinitions.h:119
EGUIView3DAxis
The axes of 3D View.
Definition GUIView3DDefinitions.h:2501
EGUIView3DRotationAngle
The rotation angle component of 3D View.
Definition GUIView3DDefinitions.h:2596
ESelectionMode3D
3D View Object Selection Mode
Definition GUIView3DDefinitions.h:2225
EGUIView3DRotatePivot
Rotation pivot type of 3D view camera.
Definition GUIView3DDefinitions.h:2459
EGUIView3DTeachingMode
Teaching mode in 3D view.
Definition GUIView3DDefinitions.h:1930
EView3DLoadOption
3D View Load Options Example. The following code will load folder with recursive. eOption = Load | Re...
Definition GUIView3DDefinitions.h:2695
@ EView3DLoadOption_Load
Default Load.
Definition GUIView3DDefinitions.h:2710
EView3DSyncOption
3D view synchronization options
Definition GUIView3DDefinitions.h:3184
EGUIView3DMeasurementMode
Measurement mode in 3D view.
Definition GUIView3DDefinitions.h:2003
EGUIView3DHitArea
The area where the mouse is located on the 3D view.
Definition GUIView3DDefinitions.h:2067
EZoomMode
Zoom in and out mode.
Definition GUIDefinitions.h:5516
EAvailableView3DContextMenu
Available context menu for 3D views.
Definition GUIView3DDefinitions.h:1390