11#include "GUIViewImageBaseWrap.h"
13#include "GUIView3DLayerWrap.h"
14#include "DefinitionsGUI.h"
74 const CResult Create(int32_t i32L, int32_t i32T, int32_t i32R, int32_t i32B,
size_t stParentWindowHandle = 0);
195 virtual const CResult Save(
const wchar_t* pWcsPath =
nullptr,
bool bBinaryFormat =
true,
bool bIncludeViewInformation =
true);
353 virtual const CResult SaveObject(int32_t i32ObjectIndex,
const wchar_t* pWcsPath =
nullptr,
bool bIncludeViewInformation =
true);
1356 virtual const CResult SaveCamera(
const wchar_t* pWcsFilePath =
nullptr, uint8_t u8DecimalPlaces = 10);
1358 virtual const CResult InternalZoomIn(int32_t i32CanvasX, int32_t i32CanvasY);
1360 virtual const CResult InternalZoomOut(int32_t i32CanvasX, int32_t i32CanvasY);
2234 virtual bool GetCursorProjectionPoint(
const int32_t& i32CanvasX,
const int32_t& i32CanvasY,
float& f32ProjectionX,
float& f32ProjectionY,
float& f32ProjectionZ,
const float& f32Tolerance = 10.f);
3487 DeclareGetClassType();
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
Simplified class representing a 3-D point.
Definition FLImagingBase/TPoint3.h:37
Simplified class representing a rectangle.
Definition FLImagingBase/TRect.h:37
FLImaging module execution result object.
Definition FLImagingBase/ResultsDef.h:1739
A class of 3D camera.
Definition FLImagingFoundation/FL3DCamera.h:32
A class representing 3D object height map data.
Definition FLImagingFoundation/FL3DObjectHeightMap.h:27
A class representing 3D object data.
Definition FLImagingFoundation/FL3DObject.h:44
A class representing circle.
Definition FLImagingFoundation/FLCircle.h:25
A class representing a cone or a conical frustum with circular cross-sections.
Definition FLImagingFoundation/FLCone3.h:25
A class representing a frustum.
Definition FLImagingFoundation/FLFrustum3.h:26
A class representing a 3D point.
Definition FLImagingFoundation/FLPoint3.h:40
A base class representing array of 3d point.
Definition FLImagingFoundation/FLPointArray3.h:24
A class representing a point.
Definition FLImagingFoundation/FLPoint.h:24
A class representing a rectangle.
Definition FLImagingFoundation/FLRect.h:24
A class representing region.
Definition FLImagingFoundation/FLRegion.h:26
A class of 3D view camera.
Definition FLImagingGUI/GUIView3DCamera.h:28
3D view layer C API wrapping class
Definition GUIView3DLayerWrap.h:30
A class representing 3D Object of height map.
Definition FLImagingGUI/GUIView3DObjectHeightMap.h:22
A class representing 3D object.
Definition FLImagingGUI/GUIView3DObject.h:26
A class representing 3D object line.
Definition FLImagingGUI/GUIView3DObjectLine.h:24
void SetAvailableView3DContextMenu(const CGUIView3DContextMenuFilter &cmFilter)
Clears the current available context menu items and sets the specified items in the 3D view.
virtual const CResult GetHeightMapColorMappingRange(float &f32RangeMin, float &f32RangeMax) const
Retrieves the currently set user-defined color map range.
static const CResult SetDefaultHeightMapColorMappingMode(Foundation::E3DHeightMapColorMappingMode eMode=Foundation::E3DHeightMapColorMappingMode_ImageRange)
Sets the default color mapping mode used for generating vertex colors of height map objects.
virtual void SetSelectionTargetDomain(FLImaging::GUI::EGUIView3DSelectionTargetDomain eTarget)
Sets the target domain of elements to be selected in the 3D view (3D object, point cloud,...
static const CResult ShowDefaultCrosshair(bool bShow)
Sets whether to show the crosshair by default. The crosshair is drawn at the mouse cursor position.
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.
void EnableAvailableView3DContextMenuAll(bool bEnable)
Enables or disables all items in the available context menu in the 3D view.
virtual const CResult SetDecimalPlacesOfCoordinate(uint8_t u8DecimalPlaces=2)
Sets the number of decimal places displayed for the mouse intersection coordinates....
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...
static const CResult SetDefaultRenderingResolutionScale(float f32Scale=1.f)
Sets the default rendering resolution scale factor of 3D views.
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.
static const CResult ShowDefaultGrid(bool bShow)
Sets whether to show the grid on the xz-plane by default.
static const CResult GetDefaultHeightMapColorMappingRange(float &f32RangeMin, float &f32RangeMax)
Retrieves the default user-defined color map range.
virtual bool IsGridVisible() const
Determines whether the grid on the xz-plane is shown or hidden.
virtual void UpdateScreen()
Update this view.
static bool IsDefaultAxisVisible()
Returns whether the x, y, z axis is shown by default.
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 to show/hide the x, y, z axis.
static FLImaging::GUI::EGUIView3DAxis GetDefaultLockedMovementAxis()
Returns the default axis that is restricted from movement in 3D views.
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.
void SetAvailableView3DContextMenu(FLImaging::GUI::EMenuItemView3D eMenu)
Clears the current available context menu items and sets the specified items in the 3D view.
static const CResult ShowDefaultAxis(bool bShow)
Sets whether to show the x, y, z axis by default.
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 void SetAvailableView3DContextMenuDeprecated(FLImaging::GUI::EAvailableView3DContextMenu eMenu)
Sets an available context menu in the 3D view.
void GetAvailableView3DContextMenu(CGUIView3DContextMenuFilter &cmFilter) const
Retrieves the current available context menu items in the 3D view.
static const CResult SetDefaultPointSize(float f32PointSize=1.f)
Sets the default point size applied to point cloud drawing.
virtual void GetZoomFitDirection(Foundation::CFLPoint3< float > &flp3Direction, Foundation::CFLPoint3< float > &flp3Up) const
Gets the current 3D view direction and the up vector.
static FLImaging::GUI::EGUIView3DRotationAngle GetDefaultLockedRotationAngle()
Returns the default angle that is restricted from rotation in 3D views.
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 void SetSelectionOperation(FLImaging::GUI::EGUIView3DSelectionOperation eOperation)
Sets the set operation applied to the existing selection when selecting elements (point cloud points,...
virtual const CResult SetZoomFitDirection(const Foundation::CFLPoint3< float > &flp3Direction, const Foundation::CFLPoint3< float > &flp3Up)
Sets the 3D view direction and the up vector.
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.
static Foundation::E3DHeightMapColorMappingMode GetDefaultHeightMapColorMappingMode()
Returns the default color mapping mode used for generating vertex colors of height map objects.
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 teaching 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 SetMouseMode(FLImaging::GUI::EGUIView3DMouseMode eMouseMode)
Sets the mouse interaction mode of the 3D view.
static bool IsDefaultGridVisible()
Returns whether the grid on the xz-plane is shown by default.
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.
const CResult SetRotationAngleLock(EGUIView3DRotationAngle eAngle)
Sets the locked rotation angle for the view. This is useful for scenarios where precise control over ...
static const CResult SetDefaultRenderingTransparencyMode(FLImaging::GUI::ERenderingTransparencyMode eMode=ERenderingTransparencyMode_Unordered)
Sets the default transparency rendering mode of 3D views.
virtual void SetHeightMapColorMappingMode(Foundation::E3DHeightMapColorMappingMode eMode=Foundation::E3DHeightMapColorMappingMode_ImageRange)
Sets the color mapping mode used for generating vertex colors of the height map object....
const CResult CaptureScreen(Base::CFLImage *pFliImage, bool bIncludeFrame=false)
Capture the current screen.
virtual bool IsFigureSelectionModeEnabled() const
Returns whether CFLFigure selection mode is enabled.
virtual FLImaging::GUI::EGUIView3DPickFilter GetPickFilter() const
Retrieves the pick filter currently applied to the 3D view.
bool IsView3DContextMenuAvailable(const CGUIView3DContextMenuFilter &cmFilter) const
Checks whether the specified context menu items are currently available in the 3D view.
virtual void SetPickFilter(FLImaging::GUI::EGUIView3DPickFilter ePickFilter)
Sets the pick filter that determines the picking granularity (Object, Vertex, Segment,...
const CResult CaptureScreen(Base::CFLImage &fliImage, bool bIncludeFrame=false)
Capture the current screen.
static bool IsDefaultActionConfirmationEnabled(EMenuItemView3D eMenuItem)
Gets the default action confirmation state for each popup menu item.
virtual const CResult PushBackROI(const Base::TRect< float > *pTr)
Add ROI to the back.
virtual FLImaging::GUI::EGUIView3DSelectionTargetDomain GetSelectionTargetDomain() const
Retrieves the target domain of elements currently selected in the 3D view.
virtual Foundation::E3DHeightMapColorMappingDirection GetHeightMapColorMappingDirection() const
Returns the current color mapping direction, indicating whether values are mapped in increasing (low→...
const Base::TPoint3< double > ConvertCanvasCoordTo3DCoord(int32_t x, int32_t y) const
Convert canvas coordinates to 3D coordinates.
virtual const CResult SaveObject(int32_t i32ObjectIndex, const wchar_t *pWcsPath=nullptr, bool bIncludeViewInformation=true)
Save the selected 3D object as a file. If pWcsPath == nullptr, a file save dialog will pop up.
virtual void ShowGrid(bool bShow)
Sets whether to show/hide the grid on the xz-plane.
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 const CResult SaveCamera(const wchar_t *pWcsFilePath=nullptr, uint8_t u8DecimalPlaces=10)
Saves the current camera parameters of the 3D view to a file.
virtual CGUIView3DCamera * GetCamera() const
Returns the 3D camera of this view.
virtual FLImaging::GUI::EView3DDirectionPreset GetZoomFitDirectionPreset() const
Gets the current 3D view direction preset.
static uint8_t GetDefaultDecimalPlacesOfCoordinate()
Gets the default number of decimal places displayed for the mouse intersection coordinates.
static uint32_t GetDefaultCanvasColor()
Retrieves the default background color of 3D views.
virtual const CResult ShowToolBar(bool bShow) override
Sets whether to show/hide ToolBar.
virtual void SetRenderingResolutionScale(float f32Scale=1.f)
Sets the rendering resolution scale factor.
virtual int32_t GetObjectSTEPCount() const
Returns the number of STEP objects in this view.
virtual void EnableDragAndDrop(bool bEnable)
Sets whether to enable or disable to load files with drag and drop.
static const CResult SetDefaultDecimalPlacesOfCoordinate(uint8_t u8DecimalPlaces=2)
Sets the default number of decimal places displayed for the mouse intersection coordinates....
static const CResult SetDefaultCanvasColor(uint32_t clrCanvas)
Sets the default background color of 3D views.
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 FLImaging::GUI::EAvailableView3DContextMenu GetAvailableView3DContextMenuDeprecated() const
Retrieves an available context menu in the 3D view.
virtual const CResult SetShadingType(Foundation::EShadingType3D eObjectShadingType=Foundation::EShadingType3D_Phong)
Sets the type of shading of this object. Default value is Foundation::EShadingType3D_Phong.
static const CResult SetDefaultHeightMapColorMappingDirection(Foundation::E3DHeightMapColorMappingDirection eDirection=Foundation::E3DHeightMapColorMappingDirection_Increasing)
Sets the default color mapping direction, determining whether values are mapped from low→blue / high→...
virtual FLImaging::GUI::ERenderingTransparencyMode GetRenderingTransparencyMode() const
Returns the current transparency rendering mode of this 3D view.
bool IsView3DContextMenuAvailable(const FLImaging::GUI::EMenuItemView3D *pArrEnum, int64_t i64Count, bool bAll=false) const
Checks whether the specified context menu items are currently available in the 3D view.
virtual FLImaging::GUI::EGUIView3DSelectionRegionType GetSelectionRegionType() const
Retrieves the shape currently used to define the selection region in region selection mode.
virtual const CResult ClearHeightMapColorMappingRange()
Clears the user-defined color map range and restores automatic range selection based on the full imag...
virtual const CResult ConvertROI2DTo3D(int32_t i32Left, int32_t i32Top, int32_t i32Right, int32_t i32Bottom, Foundation::CFLFrustum3< float > &frustumResult) const
Converts a 2D rectangular region defined in screen coordinates into a 3D frustum based on the current...
virtual void ResetTitleAndStatusBar()
Resets the title, toolbar text and file information on the status bar to the default state.
CGUIView3DLayerWrap GetLayer(int32_t i32Index)
Retrieves the layer pointer of the index passed as a 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 bool IsLegendVisible() const
Determines whether the legend is shown or hidden.
static bool IsDefaultCrosshairVisible()
Returns whether the crosshair is shown by default.
virtual const CResult PushObject(const FLImaging::GUI::CGUIView3DObjectHeightMap &obj, int32_t *pI32ReturnIndex=nullptr)
Draws a CGUIView3DObjectHeightMap object on 3D view.
static const CResult ShowDefaultLegend(bool bShow)
Sets whether to show the legend by default.
virtual FLImaging::GUI::EGUIView3DSelectionOperation GetSelectionOperation() const
Retrieves the set operation currently applied to the existing selection in region selection.
virtual bool IsPointCloudSelectionModeEnabled() const
Returns whether point cloud selection mode is enabled.
virtual EGUIView3DTeachingMode GetTeachingMode() const
Retrieves the teaching 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 EnablePointCloudSelectionMode(bool bSet)
Enable or disable point cloud selection mode.
void AddAvailableView3DContextMenu(const CGUIView3DContextMenuFilter &cmFilter)
Adds specified items to the current available context menu in the 3D view.
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.
EGUIView3DAxis GetLockedMovementAxis() const
Returns the axis that is restricted from movement in the current view.
static const CResult ShowDefaultToolBar(bool bShow)
Sets whether to show the ToolBar by default.
virtual const CResult ClearROI()
Removes all ROIs in this view.
void RemoveAvailableView3DContextMenu(FLImaging::GUI::EMenuItemView3D eMenu)
Removes specified items from the current available context menu in the 3D view.
virtual void SetHeightMapColorMappingDirection(Foundation::E3DHeightMapColorMappingDirection eDirection=Foundation::E3DHeightMapColorMappingDirection_Increasing)
Sets the color mapping direction, determining whether values are mapped from low→blue / high→red (inc...
virtual const CResult PushBackROI(const Foundation::CFLFigure &flf)
Add the ROI.
static const CResult SetDefaultZoomFitDirectionPreset(FLImaging::GUI::EView3DDirectionPreset ePreset)
Sets the default 3D view direction preset used by ZoomFit.
virtual void SetRenderingTransparencyMode(FLImaging::GUI::ERenderingTransparencyMode eMode=ERenderingTransparencyMode_Unordered)
Sets the transparency rendering mode for this 3D view.
virtual const CResult EnableFigureSelectionMode(bool bSet)
Enable or disable CFLFigure selection mode.
static const CResult SetDefaultShadingType(Foundation::EShadingType3D eObjectShadingType=Foundation::EShadingType3D_Phong)
Sets the default shading type of 3D views.
void RemoveAvailableView3DContextMenu(const FLImaging::GUI::EMenuItemView3D *pArrEnum, int64_t i64Count)
Removes specified items from the current available context menu in the 3D view.
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 FLImaging::GUI::EGUIView3DMouseMode GetMouseMode() const
Retrieves the mouse interaction mode currently applied to the 3D view.
static void GetDefaultZoomFitDirection(Foundation::CFLPoint3< float > &flp3Direction, Foundation::CFLPoint3< float > &flp3Up)
Gets the default 3D view direction and up vector used by ZoomFit when the default preset is EView3DDi...
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 uint8_t GetDecimalPlacesOfCoordinate() const
Gets the number of decimal places displayed for the mouse intersection coordinates....
virtual int32_t GetObjectCount() const
Returns the number of 3D objects in this view.
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...
FLImaging::GUI::EGUIView3DHitArea GetHitArea() const
Retrieves the Hit area for the current mouse position in the 3D view.
static const CResult SetDefaultMovementAxisLock(FLImaging::GUI::EGUIView3DAxis eAxis)
Sets the default axis that is restricted from movement in 3D views. EGUIView3DAxis_None allows moveme...
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, .pcd, .off extension files are su...
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.
virtual void SetSelectionRegionType(FLImaging::GUI::EGUIView3DSelectionRegionType eType)
Sets the shape used to define the selection region in region selection mode.
static bool IsDefaultLegendVisible()
Returns whether the legend is shown by default.
Foundation::CFLPoint< int32_t > Convert3DCoordToCanvasCoord(const Base::TPoint3< float > *pPoint) const
Convert 3D coordinates to canvas coordinates.
void GetAvailableView3DContextMenu(Base::CFLArray< int32_t > &flaEnum) const
Retrieves the current available context menu items in the 3D view.
bool DoesObjectSTEPExist() const
Checks whether a STEP object exists.
static EGUIView3DRotatePivot GetDefaultRotatePivotType()
Retrieves the default rotate pivot type of 3D views.
virtual const CResult ConvertROI2DTo3D(const Foundation::CFLRegion &flrg, Foundation::CFLPointArray3< float > &frustumResultNear, Foundation::CFLPointArray3< float > &frustumResultFar) const
Converts a 2D region (e.g., lasso or arbitrary polygon) into a 3D polygonal frustum defined by near a...
static FLImaging::GUI::EView3DDirectionPreset GetDefaultZoomFitDirectionPreset()
Gets the default 3D view direction preset used by ZoomFit.
void RemoveAvailableView3DContextMenu(const CGUIView3DContextMenuFilter &cmFilter)
Removes specified items from the current available context menu in the 3D view.
static const CResult EnableDefaultActionConfirmation(EMenuItemView3D eMenuItem, bool bEnable=true)
Sets the default action confirmation state for each popup menu item.
bool IsView3DContextMenuAvailable(FLImaging::GUI::EMenuItemView3D eMenu) const
Checks whether the specified context menu items are currently available in the 3D view.
virtual Foundation::CFLPoint< int32_t > ConvertClientCoordToCanvasCoord(const Foundation::CFLPoint< int32_t > &flp) const
Convert client coordinates to canvas coordinates.
static bool IsDefaultToolBarVisible()
Returns whether the ToolBar is shown by default.
void SetAvailableView3DContextMenu(const FLImaging::GUI::EMenuItemView3D *pArrEnum, int64_t i64Count)
Clears the current available context menu items and sets the specified items in the 3D view.
virtual const CResult Clear()
Close the image file on the GUI interface.
virtual void ShowCrosshair(bool bShow)
Sets whether to show/hide the crosshair.
virtual int32_t GetROICount() const
Retrieves the number of ROIs.
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.
static const CResult SetDefaultZoomFitDirection(const Foundation::CFLPoint3< float > &flp3Direction, const Foundation::CFLPoint3< float > &flp3Up)
Sets the default 3D view direction and up vector used by ZoomFit.
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 ConvertROI2DTo3D(const Foundation::CFLCircle< int32_t > &flc, Foundation::CFLCone3< float > &frustumResult) const
Converts a 2D circular region into a 3D conical frustum based on the current viewport and camera.
virtual const CResult PushObject(const FLImaging::GUI::CGUIView3DObject &obj, int32_t *pI32ReturnIndex=nullptr)
Draws a CGUIView3DObject object on 3D view.
static Foundation::EShadingType3D GetDefaultShadingType()
Returns the default shading type of 3D views.
static bool IsDefaultStatusBarVisible()
Returns whether the StatusBar is shown by default.
Foundation::CFLPoint< int32_t > Convert3DCoordToCanvasCoord(const Base::TPoint3< double > &point) const
Convert 3D coordinates to canvas coordinates.
virtual bool IsAxisVisible() const
Determines whether the axis is shown or hidden.
void AddAvailableView3DContextMenu(const FLImaging::GUI::EMenuItemView3D *pArrEnum, int64_t i64Count)
Adds specified items to the current available context menu in the 3D view.
virtual const CResult SetZoomFitDirectionPreset(FLImaging::GUI::EView3DDirectionPreset ePreset)
Sets the 3D view direction preset.
virtual const CResult Save(const wchar_t *pWcsPath=nullptr, bool bBinaryFormat=true, bool bIncludeViewInformation=true)
Save the file. If pWcsPath == nullptr, a file save dialog will pop up.
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()
Clear the drawing objects above all of the layers.
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 bool IsActionConfirmationEnabled(EMenuItemView3D eMenuItem) const
Returns whether action confirmation is enabled for this 3D view instance.
static FLImaging::Foundation::ETopologyType3D GetDefaultTopologyType()
Returns the default topology type of 3D views.
virtual const CResult SetHeightMapColorMappingRange(float f32RangeMin, float f32RangeMax)
Sets the value range to be used for color mapping. When a range is set, color mapping uses this fixed...
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.
void AddAvailableView3DContextMenu(FLImaging::GUI::EMenuItemView3D eMenu)
Adds specified items to the current available context menu in the 3D view.
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.
static Foundation::E3DHeightMapColorMappingDirection GetDefaultHeightMapColorMappingDirection()
Returns the default color mapping direction.
virtual float GetPointSize() const
Returns the point size applied to point cloud drawing.
virtual Foundation::E3DHeightMapColorMappingMode GetHeightMapColorMappingMode() const
Returns the currently applied color mapping mode used for vertex color generation.
virtual CGUIView3DWrap * GetRootSyncView(EView3DSyncOption eView3DSyncOption) const
Retrieves the root view synchronized with the current image view for a specific option.
static const CResult ClearDefaultHeightMapColorMappingRange()
Clears the default user-defined color map range. Newly created 3D views use the full image value rang...
static const CResult SetDefaultTopologyType(FLImaging::Foundation::ETopologyType3D eTopologyType=Foundation::ETopologyType3D_Solid)
Sets the default topology type of 3D views.
static float GetDefaultRenderingResolutionScale()
Returns the default rendering resolution scale factor of 3D views.
virtual Foundation::CFLPoint< int32_t > ConvertClientCoordToCanvasCoord(int32_t i32X, int32_t i32Y) const
Convert client coordinates to canvas coordinates.
static const CResult SetDefaultRotationAngleLock(FLImaging::GUI::EGUIView3DRotationAngle eAngle)
Sets the default locked rotation angle of 3D views.
CGUIView3DWrap()
Default constructor.
static const CResult ShowDefaultStatusBar(bool bShow)
Sets whether to show the StatusBar by default.
virtual bool IsSynchronized(EView3DSyncOption eView3DSyncOption) const
Returns whether the current image view is synchronized with another image view for a particular optio...
static const CResult SetDefaultHeightMapColorMappingRange(float f32RangeMin, float f32RangeMax)
Sets the default value range to be used for color mapping.
static FLImaging::GUI::ERenderingTransparencyMode GetDefaultRenderingTransparencyMode()
Returns the default transparency rendering mode of 3D views.
static void GetView3DContextMenuChildren(EMenuItemView3D eMenu, Base::CFLArray< int32_t > &flaEnum)
Retrieves child menu items of the specified parent context menu item. If eMenu is a parent menu item ...
const CResult Destroy()
Disappear the window of the 3D view.
static const CResult SetDefaultRotatePivotType(EGUIView3DRotatePivot eRotatePivotType)
Sets the default rotate pivot type of 3D views.
virtual const CResult UpdateObject(int32_t i32ObjectIndex=-1)
Calls this function to update and redraw if there are any changes to the internal data (CFL3DObject).
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...
static float GetDefaultPointSize()
Returns the default point size applied to point cloud drawing.
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 const CResult EnableActionConfirmation(EMenuItemView3D eMenuItem, bool bEnable=true)
Enables or disables action confirmation for this 3D view instance.
virtual float GetRenderingResolutionScale() const
Returns the current rendering resolution scale factor.
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 const CResult SetCamera(const CGUIView3DCamera &camera)
Sets the 3D camera.
static Base::CFLString< wchar_t > GetView3DContextMenuString(EMenuItemView3D eMenu)
Retrieves the string of the specified context menu item.
virtual void ShowLegend(bool bShow)
Sets whether to show/hide the legend.
Foundation::CFLPoint< int32_t > Convert3DCoordToCanvasCoord(const Base::TPoint3< float > &point) const
Convert 3D coordinates to canvas coordinates.
Foundation::CFLPoint< int32_t > Convert3DCoordToCanvasCoord(float x, float y, float z) const
Convert 3D coordinates to canvas coordinates.
virtual const FLImaging::CResult SelectMenuItem(FLImaging::GUI::EMenuItemView3D eMenu)
Performs a command on the selected menu item.
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.
virtual bool IsCrosshairVisible() const
Determines whether the crosshair is shown or hidden.
CGUIViewImageBaseWrap()
Default constructor.
E3DHeightMapColorMappingDirection
Specifies the direction of the color mapping applied to the vertex color array. In increasing mode,...
Definition FLImagingFoundation/Definitions3D.h:398
@ E3DHeightMapColorMappingDirection_Increasing
Increasing color mapping mode. Minimum values → Blue, Medium values → Green, Maximum values → Red.
Definition FLImagingFoundation/Definitions3D.h:417
E3DHeightMapColorMappingMode
Specifies how vertex colors of the Foundation::CFL3DObjectHeightMap object are determined.
Definition FLImagingFoundation/Definitions3D.h:356
@ E3DHeightMapColorMappingMode_ImageRange
Colors are determined using the full image value range of the height map.
Definition FLImagingFoundation/Definitions3D.h:373
ETopologyType3D
The type of representation of 3D objects.
Definition FLImagingFoundation/Definitions3D.h:125
@ ETopologyType3D_Solid
Solid modeling(It distinguishes between the exterior and interior of an object, has volume,...
Definition FLImagingFoundation/Definitions3D.h:159
EShadingType3D
Object Shading Type in 3D View.
Definition FLImagingFoundation/Definitions3D.h:75
@ EShadingType3D_Phong
Phong shading.
Definition FLImagingFoundation/Definitions3D.h:106
Definition D2DObject.h:12
EMenuItemView3D
3D View Menu Item
Definition FLImagingGUI/DefinitionsGUIView3D.h:167
EGUIView3DAxis
The axes of 3D View.
Definition FLImagingGUI/DefinitionsGUIView3D.h:3332
EGUIView3DRotationAngle
The rotation angle component of 3D View.
Definition FLImagingGUI/DefinitionsGUIView3D.h:3427
EGUIView3DSelectionTargetDomain
3D View Selection Target Domain
Definition FLImagingGUI/DefinitionsGUIView3D.h:2916
EGUIView3DRotatePivot
Rotation pivot type of 3D view camera.
Definition FLImagingGUI/DefinitionsGUIView3D.h:3290
EGUIView3DTeachingMode
Teaching mode in 3D view.
Definition FLImagingGUI/DefinitionsGUIView3D.h:2449
EView3DLoadOption
3D View Load Options Example. The following code will load folder with recursive. eOption = Load | Re...
Definition FLImagingGUI/DefinitionsGUIView3D.h:3526
@ EView3DLoadOption_Load
Default Load.
Definition FLImagingGUI/DefinitionsGUIView3D.h:3541
ERenderingTransparencyMode
Specifies the transparency rendering mode used by the renderer.
Definition FLImagingGUI/DefinitionsGUIView3D.h:4212
@ ERenderingTransparencyMode_Unordered
Basic alpha blending without depth sorting. Transparent objects are rendered in the order they are ad...
Definition FLImagingGUI/DefinitionsGUIView3D.h:4221
EGUIView3DSelectionRegionType
Shape used to define the selection region when selecting point cloud points in the 3D view.
Definition FLImagingGUI/DefinitionsGUIView3D.h:2988
EView3DDirectionPreset
Enumeration for 3D view direction presets.
Definition FLImagingGUI/DefinitionsGUIView3D.h:4254
EGUIView3DMouseMode
3D mouse interaction modes
Definition FLImagingGUI/DefinitionsGUIView3D.h:2805
EGUIView3DPickFilter
3D View Object Selection Mode
Definition FLImagingGUI/DefinitionsGUIView3D.h:2874
EView3DSyncOption
3D view synchronization options
Definition FLImagingGUI/DefinitionsGUIView3D.h:3886
EGUIView3DSelectionOperation
Set operation applied to the existing selection when selecting elements (point cloud points,...
Definition FLImagingGUI/DefinitionsGUIView3D.h:3072
EGUIView3DMeasurementMode
Measurement mode in 3D view.
Definition FLImagingGUI/DefinitionsGUIView3D.h:2567
EGUIView3DHitArea
The area where the mouse is located on the 3D view.
Definition FLImagingGUI/DefinitionsGUIView3D.h:2631
EZoomMode
Zoom in and out mode.
Definition FLImagingGUI/DefinitionsGUI.h:9701
EAvailableView3DContextMenu
Available context menu for 3D views.
Definition FLImagingGUI/DefinitionsGUIView3D.h:1941