Manages a viewer window for eVision.Easy3D.EPointCloud. More...
Public Member Functions | |
| None | __init__ (self, int orgX, int orgY, int width, int height, ctypes.c_void_p parent) |
| Creates an eVision.Easy3D.E3DViewer object. | |
| None | __init__ (self, int orgX, int orgY, int width, int height) |
| Creates an eVision.Easy3D.E3DViewer object. | |
| None | __init__ (self, eVision.Easy3D.EUIAPI uiApi, int orgX, int orgY, int width, int height, ctypes.c_void_p parent) |
| Creates an eVision.Easy3D.E3DViewer object. | |
| None | __init__ (self, eVision.Easy3D.EUIAPI uiApi, int orgX, int orgY, int width, int height) |
| Creates an eVision.Easy3D.E3DViewer object. | |
| None | __init__ (self, eVision.Easy3D.EUIAPI uiApi) |
| Creates an eVision.Easy3D.E3DViewer object. | |
| None | __init__ (self) |
| Creates an eVision.Easy3D.E3DViewer object. | |
| None | InitRendering (self) |
| Initializes the rendering state, must be called one time before the first eVision.Easy3D.E3DViewer.Show. | |
| bool | IsInitialized (self) |
| Indicates if 3DViewer has already been initialized. | |
| None | Terminate (self) |
| Closes and frees allocated resources. | |
| None | AddRenderSource (self, str name, eVision.Easy3D.EPointCloud source) |
| Adds a new Render Source. | |
| None | AddRenderSource (self, str name, eVision.Easy3D.EMesh source) |
| Adds a new Render Source. | |
| None | AddRenderSource (self, str name, eVision.Easy3D.EZMap|None source) |
| Adds a new Render Source. | |
| None | AddRenderSource (self, str name, eVision.Easy3D.E3DSphere sphere, eVision.EC24 color, int opacity) |
| Adds a new Render Source. | |
| None | AddRenderSource (self, str name, eVision.Easy3D.E3DSphere sphere, eVision.EC24 color) |
| Adds a new Render Source. | |
| None | AddRenderSource (self, str name, eVision.Easy3D.E3DSphere sphere) |
| Adds a new Render Source. | |
| None | AddRenderSource (self, str name, eVision.Easy3D.E3DBox box, eVision.EC24 color, int opacity) |
| Adds a new Render Source. | |
| None | AddRenderSource (self, str name, eVision.Easy3D.E3DBox box, eVision.EC24 color) |
| Adds a new Render Source. | |
| None | AddRenderSource (self, str name, eVision.Easy3D.E3DBox box) |
| Adds a new Render Source. | |
| None | AddRenderSource (self, str name, eVision.Easy3D.E3DLine line, eVision.EC24 color) |
| Adds a new Render Source. | |
| None | AddRenderSource (self, str name, eVision.Easy3D.E3DLine line) |
| Adds a new Render Source. | |
| None | AddRenderSource (self, str name, eVision.Easy3D.E3DPlane plane, eVision.EC24 color, int opacity) |
| Adds a new Render Source. | |
| None | AddRenderSource (self, str name, eVision.Easy3D.E3DPlane plane, eVision.EC24 color) |
| Adds a new Render Source. | |
| None | AddRenderSource (self, str name, eVision.Easy3D.E3DPlane plane) |
| Adds a new Render Source. | |
| None | SetRenderSource (self, str name, eVision.Easy3D.EPointCloud source) |
| Changes the content of a render source with a new point cloud, mesh or ZMap. | |
| None | SetRenderSource (self, str name, eVision.Easy3D.EMesh source) |
| Changes the content of a render source with a new point cloud, mesh or ZMap. | |
| None | SetRenderSource (self, str name, eVision.Easy3D.EZMap|None source) |
| Changes the content of a render source with a new point cloud, mesh or ZMap. | |
| None | SetRenderSource (self, str name, eVision.Easy3D.E3DSphere sphere, eVision.EC24 color, int opacity) |
| Changes the content of a render source with a new point cloud, mesh or ZMap. | |
| None | SetRenderSource (self, str name, eVision.Easy3D.E3DSphere sphere, eVision.EC24 color) |
| Changes the content of a render source with a new point cloud, mesh or ZMap. | |
| None | SetRenderSource (self, str name, eVision.Easy3D.E3DSphere sphere) |
| Changes the content of a render source with a new point cloud, mesh or ZMap. | |
| None | SetRenderSource (self, str name, eVision.Easy3D.E3DBox box, eVision.EC24 color, int opacity) |
| Changes the content of a render source with a new point cloud, mesh or ZMap. | |
| None | SetRenderSource (self, str name, eVision.Easy3D.E3DBox box, eVision.EC24 color) |
| Changes the content of a render source with a new point cloud, mesh or ZMap. | |
| None | SetRenderSource (self, str name, eVision.Easy3D.E3DBox box) |
| Changes the content of a render source with a new point cloud, mesh or ZMap. | |
| None | SetRenderSource (self, str name, eVision.Easy3D.E3DLine line, eVision.EC24 color) |
| Changes the content of a render source with a new point cloud, mesh or ZMap. | |
| None | SetRenderSource (self, str name, eVision.Easy3D.E3DLine line) |
| Changes the content of a render source with a new point cloud, mesh or ZMap. | |
| None | SetRenderSource (self, str name, eVision.Easy3D.E3DPlane plane, eVision.EC24 color, int opacity) |
| Changes the content of a render source with a new point cloud, mesh or ZMap. | |
| None | SetRenderSource (self, str name, eVision.Easy3D.E3DPlane plane, eVision.EC24 color) |
| Changes the content of a render source with a new point cloud, mesh or ZMap. | |
| None | SetRenderSource (self, str name, eVision.Easy3D.E3DPlane plane) |
| Changes the content of a render source with a new point cloud, mesh or ZMap. | |
| None | RemoveRenderSource (self, str name) |
| Removes the given render source. | |
| None | RemoveAllRenderSources (self) |
| Removes all render sources. | |
| bool | HasRenderSource (self, str name) |
| Is the given render source name exists ? | |
| str | GetRenderSourceName (self, int index) |
| Returns the name of the ith render source. | |
| None | HideRenderSource (self, str name) |
| Hides the given render source. | |
| None | ShowRenderSource (self, str name) |
| Shows the given render source. | |
| bool | IsRenderSourceVisible (self, str name) |
| Returns true if the render source is currently visible. | |
| bool | IsShapeRenderSource (self, str name) |
| Returns true if the render source is a shape. | |
| None | SetRenderSourceColorMode (self, str name, eVision.Easy3D.ESourceColorMode colorMode) |
| Sets the Source Color Mode. | |
| eVision.Easy3D.ESourceColorMode | GetRenderSourceColorMode (self, str name) |
| Gets the Source Color Mode. | |
| None | SetRenderSourceConstantColor (self, str name, eVision.EC24 color) |
| Sets the constant color used to display a point cloud or a mesh, when eVision.Easy3D.ESourceColorMode is set to eVision.Easy3D.ESourceColorMode.Constant. | |
| eVision.EC24 | GetRenderSourceConstantColor (self, str name) |
| Gets the constant color used to display a point cloud or a mesh, when eVision.Easy3D.ESourceColorMode is set to eVision.Easy3D.ESourceColorMode.Constant. | |
| None | SetRenderSourceOpacity (self, str name, int opacity) |
| Sets the opacity used to display the render source. | |
| int | GetRenderSourceOpacity (self, str name) |
| Gets the opacity used to display the render source. | |
| None | SetRenderSourcePointSize (self, str name, int size) |
| Sets the point size used to display the point clouds. | |
| int | GetRenderSourcePointSize (self, str name) |
| Gets the point size used to display the point clouds. | |
| None | SetRenderSourceWireFrame (self, str name, bool state) |
| Sets the wireframe mode used to render a mesh. | |
| bool | GetRenderSourceWireFrame (self, str name) |
| Gets the wireframe mode used to render a mesh. | |
| None | SetRenderSourceWireFrameColor (self, str name, eVision.EC24 color) |
| Sets the wireframe color. | |
| eVision.EC24 | GetRenderSourceWireFrameColor (self, str name) |
| Gets the wireframe color. | |
| None | ConfigureRenderSource (self, eVision.Easy3D.EPointCloud sourceObject, bool keepCurrentView) |
| Sets a unique 3D source to be rendered. | |
| None | ConfigureRenderSource (self, eVision.Easy3D.EPointCloud sourceObject) |
| Sets a unique 3D source to be rendered. | |
| None | ConfigureRenderSource (self, eVision.Easy3D.EMesh sourceObject, bool keepCurrentView) |
| Sets a unique 3D source to be rendered. | |
| None | ConfigureRenderSource (self, eVision.Easy3D.EMesh sourceObject) |
| Sets a unique 3D source to be rendered. | |
| None | ConfigureRenderSource (self, eVision.Easy3D.EZMap8 sourceObject, bool keepCurrentView) |
| Sets a unique 3D source to be rendered. | |
| None | ConfigureRenderSource (self, eVision.Easy3D.EZMap8 sourceObject) |
| Sets a unique 3D source to be rendered. | |
| None | ConfigureRenderSource (self, eVision.Easy3D.EZMap16 sourceObject, bool keepCurrentView) |
| Sets a unique 3D source to be rendered. | |
| None | ConfigureRenderSource (self, eVision.Easy3D.EZMap16 sourceObject) |
| Sets a unique 3D source to be rendered. | |
| None | ConfigureRenderSource (self, eVision.Easy3D.EZMap32f sourceObject, bool keepCurrentView) |
| Sets a unique 3D source to be rendered. | |
| None | ConfigureRenderSource (self, eVision.Easy3D.EZMap32f sourceObject) |
| Sets a unique 3D source to be rendered. | |
| None | ConfigureRenderSource (self, eVision.Easy3D.EZMap|None sourceObject, bool keepCurrentView) |
| Sets a unique 3D source to be rendered. | |
| None | ConfigureRenderSource (self, eVision.Easy3D.EZMap|None sourceObject) |
| Sets a unique 3D source to be rendered. | |
| None | ClearRenderSource (self) |
| Clears the 3D data, nothing will be displayed. | |
| None | GenerateColors (self, eVision.Easy3D.EColorRampMode mode) |
| Choose the current color ramp mode. | |
| None | ShowColorRampLegend (self) |
| Enables the display of a color ramp legend. | |
| None | HideColorRampLegend (self) |
| Disables the display of a color ramp legend. | |
| bool | IsColorRampLegendVisible (self) |
| Whether the color ramp legend is visible or not. | |
| None | SetColorRampLocation (self, eVision.EPoint botLeft, eVision.EPoint topRight) |
| Sets the location of the color ramp. | |
| None | GetColorRampLocation (self, eVision.EPoint botLeft, eVision.EPoint topRight) |
| Gets the location of the color ramp. | |
| None | DisableFixColorRampBounds (self) |
| Disables the fix color ramp bounds. | |
| None | LockRotationInitialPosition (self, int x, int y) |
| Starts a rotation transformation of the view point using the (x,y) coordinate. | |
| None | UpdateRotationPosition (self, int x, int y) |
| Updates a rotation transformation of the view point using the (x,y) coordinate. | |
| None | LockRotationFinalPosition (self, int x, int y) |
| Finalizes a rotation transformation of the view point using the (x,y) coordinate. | |
| None | LockTranslationInitialPosition (self, int x, int y) |
| Starts a translation transformation of the view point using the (x,y) coordinate. | |
| None | UpdateTranslationPosition (self, int x, int y) |
| Updates a translation transformation of the view point using the (x,y) coordinate. | |
| None | LockTranslationFinalPosition (self, int x, int y) |
| Finalizes a rotation transformation of the view point using the (x,y) coordinate. | |
| None | UpdateViewDistance (self, float delta) |
| Applies a delta factor to the view distance. | |
| None | ResetView (self, eVision.Easy3D.EViewDirection viewDirection) |
| Resets the view point to a view that frame the object. | |
| None | ResetView (self) |
| Resets the view point to a view that frame the object. | |
| None | SetViewAngle (self, float angleX, float angleY) |
| Sets view angles. | |
| None | SetRotationMatrix (self, eVision.Easy3D.E3DTransformMatrix matrix) |
| Sets the view rotation matrix. | |
| None | GetRotationMatrix (self, eVision.Easy3D.E3DTransformMatrix matrix) |
| Gets the view rotation matrix. | |
| None | SetPosition (self, int orgX, int orgY, int width, int height, ctypes.c_void_p hWndInsertAfter) |
| Sets the position of the 3D viewer window. | |
| None | SetPosition (self, int orgX, int orgY, int width, int height) |
| Sets the position of the 3D viewer window. | |
| None | Resize (self, int width, int height) |
| Update the size of the 3D viewer window. | |
| None | IncPointSize (self) |
| Increases the displayed point size. | |
| None | DecPointSize (self) |
| Decreases the displayed point size. | |
| None | ToggleWireframeMode (self) |
| Toggles the display of wireframe triangles. | |
| None | ToggleRenderAxis (self) |
| Toggles the display of the axis. | |
| None | StopAutoRotate (self) |
| Stops the display automatic rotation. | |
| bool | IsAutoRotate (self) |
| Returns true if the auto rotation is active. | |
| int | AddTextLabel (self, eVision.Easy3D.TextLabel label) |
| Adds a text label linked to an eVision.Easy3D.E3DPoint. | |
| None | EditTextLabel (self, int id, eVision.Easy3D.TextLabel label) |
| Edits a text label. | |
| eVision.Easy3D.TextLabel | GetTextLabel (self, int id) |
| Gets the text label information. | |
| None | RemoveTextLabel (self, int id) |
| Removes a text label. | |
| None | ClearTextLabels (self) |
| Removes all text labels. | |
| None | Show (self) |
| Shows the viewer window, refresh the display. | |
| None | SetFocus (self) |
| The viewer window takes the focus. | |
| bool | IsEDLShadingSupported (self) |
| Indicates whether Eye-Dome-Lighting shading mode is supported. | |
| None | Register3DObjects (self, list[eVision._eVision.Easy3D.E3DObject] objects) |
| Sets the list of eVision.Easy3D.E3DObject from which their features can be rendered. | |
| None | Add3DObjects (self, list[eVision._eVision.Easy3D.E3DObject] objects) |
| Add the given eVision.Easy3D.E3DObject to the list of rendered eVision.Easy3D.E3DObject. | |
| bool | Has3DObjects (self) |
| Return true if at least one 3D object is registered. | |
| None | RemoveCurrent3DObjects (self) |
| Removes all eVision.Easy3D.E3DObject currently registered. | |
| None | ShowFeatureForAll3DObjects (self, eVision.Easy3D.E3DObjectFeature feature) |
| Sets the eVision.Easy3D.E3DObjectFeature of all the registered eVision.Easy3D.E3DObject to be rendered. | |
| None | HideFeatureForAll3DObjects (self, eVision.Easy3D.E3DObjectFeature feature) |
| Sets the eVision.Easy3D.E3DObjectFeature of all the registered eVision.Easy3D.E3DObject to be not rendered. | |
| None | ShowFeatureFor3DObject (self, int idx, eVision.Easy3D.E3DObjectFeature feature) |
| Sets the eVision.Easy3D.E3DObjectFeature of the registered eVision.Easy3D.E3DObject at the specified location idx to be rendered. | |
| None | HideFeatureFor3DObject (self, int idx, eVision.Easy3D.E3DObjectFeature feature) |
| Sets the eVision.Easy3D.E3DObjectFeature of the registered eVision.Easy3D.E3DObject at the specified location idx to be not rendered. | |
| bool | IsFeatureVisibleFor3DObject (self, int idx, eVision.Easy3D.E3DObjectFeature feature) |
| Whether the eVision.Easy3D.E3DObjectFeature of the registered eVision.Easy3D.E3DObject si rendered or not. | |
| None | SetFeatureStyleForAll3DObjects (self, eVision.Easy3D.ERenderStyle style, eVision.Easy3D.E3DObjectFeature feature) |
| Sets how the eVision.Easy3D.E3DObjectFeature of all the registered eVision.Easy3D.E3DObject should be rendered. | |
| None | SetFeatureStyleFor3DObject (self, int idx, eVision.Easy3D.ERenderStyle style, eVision.Easy3D.E3DObjectFeature feature) |
| Sets how the eVision.Easy3D.E3DObjectFeature of the registered eVision.Easy3D.E3DObject at the specified location idx should be rendered. | |
| eVision.Easy3D.ERenderStyle | GetFeatureStyleFor3DObject (self, int idx, eVision.Easy3D.E3DObjectFeature feature) |
| Gets how the eVision.Easy3D.E3DObjectFeature of the registered eVision.Easy3D.E3DObject at the specified location idx should be rendered. | |
| eVision.Easy3D.E3DPoint | Pick3DPoint (self, int x, int y) |
| Returns and displays the picked eVision.Easy3D.E3DPoint in the eVision.Easy3D.EPointCloud. | |
| None | ResetPicking (self) |
| Resets the last picked point and disable the coordinate display. | |
| None | SetPickedPointCallBack (self, ctypes.c_void_p pickedPointCallBack, ctypes.c_void_p context, bool callCallBackWhenPointNotFound) |
| Sets a callback function that will be called when a new eVision.Easy3D.E3DPoint is picked. | |
| None | SetPickedPointCallBack (self, ctypes.c_void_p pickedPointCallBack, ctypes.c_void_p context) |
| Sets a callback function that will be called when a new eVision.Easy3D.E3DPoint is picked. | |
| None | SetPickedPointCallBack (self, ctypes.c_void_p pickedPointCallBack) |
| Sets a callback function that will be called when a new eVision.Easy3D.E3DPoint is picked. | |
| str | FontPath (self) |
| Configure the TrueType font used to display text on the 3D Viewer. | |
| FontPath (self, str value) | |
| Configure the TrueType font used to display text on the 3D Viewer. | |
| eVision.ERGBColor | BackgroundColor (self) |
| Sets/Gets the 3D viewer background color. | |
| BackgroundColor (self, eVision.ERGBColor value) | |
| Sets/Gets the 3D viewer background color. | |
| int | NumRenderSources (self) |
| Returns the number of render sources. | |
| eVision.Easy3D.EColorRampMode | ColorRampMode (self) |
| Set/Gets the current color ramp mode. | |
| ColorRampMode (self, eVision.Easy3D.EColorRampMode value) | |
| Set/Gets the current color ramp mode. | |
| eVision.ERGBColor | ColorRampGraduationColor (self) |
| Sets/Gets the graduation color. | |
| ColorRampGraduationColor (self, eVision.ERGBColor value) | |
| Sets/Gets the graduation color. | |
| bool | EnableSmartColorRamp (self) |
| Sets/Gets the state of the smart generation of color. | |
| EnableSmartColorRamp (self, bool value) | |
| Sets/Gets the state of the smart generation of color. | |
| bool | EnableFixColorRampBounds (self) |
| Gets the state of the fix color ramp bounds. | |
| eVision.EFloatRange | FixColorRampBounds (self) |
| Gets/Sets the bounds of the color ramp. | |
| FixColorRampBounds (self, eVision.EFloatRange value) | |
| Gets/Sets the bounds of the color ramp. | |
| eVision.Easy3D.E3DPoint | ViewTarget (self) |
| Gets/Sets view target position (by default, the camera position is 'look at center of the point cloud'). | |
| ViewTarget (self, eVision.Easy3D.E3DPoint value) | |
| Gets/Sets view target position (by default, the camera position is 'look at center of the point cloud'). | |
| eVision.Easy3D.E3DPoint | ViewAngle (self) |
| Gets/Sets view angles. | |
| ViewAngle (self, eVision.Easy3D.E3DPoint value) | |
| Gets/Sets view angles. | |
| float | ViewDistance (self) |
| Sets/Gets view distance. | |
| ViewDistance (self, float value) | |
| Sets/Gets view distance. | |
| int | PointSize (self) |
| Displays size of the points, in pixels. | |
| PointSize (self, int value) | |
| Displays size of the points, in pixels. | |
| int | RenderDecimationLevel (self) |
| Sets or Gets the point cloud decimation level used during the rendering. | |
| RenderDecimationLevel (self, int value) | |
| Sets or Gets the point cloud decimation level used during the rendering. | |
| bool | WireframeMode (self) |
| Enables or disables the display of wireframe triangles. | |
| WireframeMode (self, bool value) | |
| Enables or disables the display of wireframe triangles. | |
| bool | RenderAxis (self) |
| Enables or disables the display of the axis. | |
| RenderAxis (self, bool value) | |
| Enables or disables the display of the axis. | |
| eVision.Easy3D.EAxisOriginMode | AxisOrigin (self) |
| Sets and Gets the axis origin mode. | |
| AxisOrigin (self, eVision.Easy3D.EAxisOriginMode value) | |
| Sets and Gets the axis origin mode. | |
| bool | RenderGrid (self) |
| Enables or disables the display of Grid. | |
| RenderGrid (self, bool value) | |
| Enables or disables the display of Grid. | |
| float | RenderGridStep (self) |
| Sets/Gets the same grid step for each axis. | |
| RenderGridStep (self, float value) | |
| Sets/Gets the same grid step for each axis. | |
| eVision.Easy3D.E3DAxisDisplay | RenderAxisConfiguration (self) |
| Sets/Gets the axis configuration. | |
| RenderAxisConfiguration (self, eVision.Easy3D.E3DAxisDisplay value) | |
| Sets/Gets the axis configuration. | |
| eVision.Easy3D.E3DPoint | AutoRotate (self) |
| Retrieves, enables and configures the auto rotate display. | |
| AutoRotate (self, eVision.Easy3D.E3DPoint value) | |
| Retrieves, enables and configures the auto rotate display. | |
| float | FieldOfView (self) |
| Sets/Gets the field of view. | |
| FieldOfView (self, float value) | |
| Sets/Gets the field of view. | |
| eVision.Easy3D.EProjectionType | ProjectionType (self) |
| Sets/Gets the projection type. | |
| ProjectionType (self, eVision.Easy3D.EProjectionType value) | |
| Sets/Gets the projection type. | |
| bool | EnableEDLShading (self) |
| Gets/Sets if Eye-Dome-Lighting shading mode is enabled. | |
| EnableEDLShading (self, bool value) | |
| Gets/Sets if Eye-Dome-Lighting shading mode is enabled. | |
| float | EDLShadingFactor (self) |
| Gets/Sets how strong Eye-Dome-Lighting shading is. | |
| EDLShadingFactor (self, float value) | |
| Gets/Sets how strong Eye-Dome-Lighting shading is. | |
| int | Num3DObjects (self) |
| Return the number of 3D objects registered. | |
| bool | PickingDisplay (self) |
| Enables or disables the display of the picked point. | |
| PickingDisplay (self, bool value) | |
| Enables or disables the display of the picked point. | |
| float | PickingLabelSize (self) |
| Sets or gets the size of the picked point label. | |
| PickingLabelSize (self, float value) | |
| Sets or gets the size of the picked point label. | |
| eVision.EC24 | PickingLabelColor (self) |
| Sets or gets the color of the picked point label. | |
| PickingLabelColor (self, eVision.EC24 value) | |
| Sets or gets the color of the picked point label. | |
| bool | PickingLabelFixed (self) |
| Sets or gets the state to fix or not the label. | |
| PickingLabelFixed (self, bool value) | |
| Sets or gets the state to fix or not the label. | |
| float | PickingDistanceThreshold (self) |
| Sets or gets the distance threshold for the picking. | |
| PickingDistanceThreshold (self, float value) | |
| Sets or gets the distance threshold for the picking. | |
| eVision.Easy3D.E3DPoint | LastPickedPoint (self) |
| Returns the last picked eVision.Easy3D.E3DPoint if there is one. | |
Manages a viewer window for eVision.Easy3D.EPointCloud.
Remarks:
Call to eVision.Easy3D.E3DViewer.Terminate is mandatory after usage to ensure all resources used by this class are properly released.
License(s): Easy3D
| None eVision.Easy3D.E3DViewer.__init__ | ( | self, | |
| int | orgX, | ||
| int | orgY, | ||
| int | width, | ||
| int | height, | ||
| ctypes.c_void_p | parent ) |
Creates an eVision.Easy3D.E3DViewer object.
Remarks:
The origin point (orgX, orgY) defines the offset of the top left corner of the viewer from the top left corner of its parent window client area. If the window has no parent, it defines the offset from the top left corner of the screen. If the parent window is too small to contain the viewer, the viewer will be cropped accordingly.
When the parent application that use eVision.Easy3D.E3DViewer is a Qt application, call the constructor with EUIAPI_Qt.
| orgX | X coordinate of the top left corner of the viewer window (only if uiApi is EUIAPI_Win32). |
| orgY | Y coordinate of the top left corner of the viewer window (only if uiApi is EUIAPI_Win32). |
| width | Width of the viewer window (only if uiApi is EUIAPI_Win32). |
| height | Height of the viewer window (only if uiApi is EUIAPI_Win32). |
| parent | Handle of the parent window of the viewer. If NULL, the viewer is built as a independent floating window (only if uiApi is EUIAPI_Win32). |
| None eVision.Easy3D.E3DViewer.__init__ | ( | self, | |
| int | orgX, | ||
| int | orgY, | ||
| int | width, | ||
| int | height ) |
Creates an eVision.Easy3D.E3DViewer object.
Remarks:
The origin point (orgX, orgY) defines the offset of the top left corner of the viewer from the top left corner of its parent window client area. If the window has no parent, it defines the offset from the top left corner of the screen. If the parent window is too small to contain the viewer, the viewer will be cropped accordingly.
When the parent application that use eVision.Easy3D.E3DViewer is a Qt application, call the constructor with EUIAPI_Qt.
| orgX | X coordinate of the top left corner of the viewer window (only if uiApi is EUIAPI_Win32). |
| orgY | Y coordinate of the top left corner of the viewer window (only if uiApi is EUIAPI_Win32). |
| width | Width of the viewer window (only if uiApi is EUIAPI_Win32). |
| height | Height of the viewer window (only if uiApi is EUIAPI_Win32). |
| None eVision.Easy3D.E3DViewer.__init__ | ( | self, | |
| eVision.Easy3D.EUIAPI | uiApi, | ||
| int | orgX, | ||
| int | orgY, | ||
| int | width, | ||
| int | height, | ||
| ctypes.c_void_p | parent ) |
Creates an eVision.Easy3D.E3DViewer object.
Remarks:
The origin point (orgX, orgY) defines the offset of the top left corner of the viewer from the top left corner of its parent window client area. If the window has no parent, it defines the offset from the top left corner of the screen. If the parent window is too small to contain the viewer, the viewer will be cropped accordingly.
When the parent application that use eVision.Easy3D.E3DViewer is a Qt application, call the constructor with EUIAPI_Qt.
| uiApi | The User Interface API used by the parent application. See eVision.Easy3D.EUIAPI. |
| orgX | X coordinate of the top left corner of the viewer window (only if uiApi is EUIAPI_Win32). |
| orgY | Y coordinate of the top left corner of the viewer window (only if uiApi is EUIAPI_Win32). |
| width | Width of the viewer window (only if uiApi is EUIAPI_Win32). |
| height | Height of the viewer window (only if uiApi is EUIAPI_Win32). |
| parent | Handle of the parent window of the viewer. If NULL, the viewer is built as a independent floating window (only if uiApi is EUIAPI_Win32). |
| None eVision.Easy3D.E3DViewer.__init__ | ( | self, | |
| eVision.Easy3D.EUIAPI | uiApi, | ||
| int | orgX, | ||
| int | orgY, | ||
| int | width, | ||
| int | height ) |
Creates an eVision.Easy3D.E3DViewer object.
Remarks:
The origin point (orgX, orgY) defines the offset of the top left corner of the viewer from the top left corner of its parent window client area. If the window has no parent, it defines the offset from the top left corner of the screen. If the parent window is too small to contain the viewer, the viewer will be cropped accordingly.
When the parent application that use eVision.Easy3D.E3DViewer is a Qt application, call the constructor with EUIAPI_Qt.
| uiApi | The User Interface API used by the parent application. See eVision.Easy3D.EUIAPI. |
| orgX | X coordinate of the top left corner of the viewer window (only if uiApi is EUIAPI_Win32). |
| orgY | Y coordinate of the top left corner of the viewer window (only if uiApi is EUIAPI_Win32). |
| width | Width of the viewer window (only if uiApi is EUIAPI_Win32). |
| height | Height of the viewer window (only if uiApi is EUIAPI_Win32). |
| None eVision.Easy3D.E3DViewer.__init__ | ( | self, | |
| eVision.Easy3D.EUIAPI | uiApi ) |
Creates an eVision.Easy3D.E3DViewer object.
Remarks:
The origin point (orgX, orgY) defines the offset of the top left corner of the viewer from the top left corner of its parent window client area. If the window has no parent, it defines the offset from the top left corner of the screen. If the parent window is too small to contain the viewer, the viewer will be cropped accordingly.
When the parent application that use eVision.Easy3D.E3DViewer is a Qt application, call the constructor with EUIAPI_Qt.
| uiApi | The User Interface API used by the parent application. See eVision.Easy3D.EUIAPI. |
| None eVision.Easy3D.E3DViewer.__init__ | ( | self | ) |
Creates an eVision.Easy3D.E3DViewer object.
Remarks:
The origin point (orgX, orgY) defines the offset of the top left corner of the viewer from the top left corner of its parent window client area. If the window has no parent, it defines the offset from the top left corner of the screen. If the parent window is too small to contain the viewer, the viewer will be cropped accordingly.
When the parent application that use eVision.Easy3D.E3DViewer is a Qt application, call the constructor with EUIAPI_Qt.
| None eVision.Easy3D.E3DViewer.Add3DObjects | ( | self, | |
| list[eVision._eVision.Easy3D.E3DObject] | objects ) |
Add the given eVision.Easy3D.E3DObject to the list of rendered eVision.Easy3D.E3DObject.
Remarks:
The features that need to be visualize are set with show methods. The registered features have a default style. Previously set styles are ignored. Objects in which eVision.Easy3D.E3DObjectFeature.BoundingBox was not computed are ignored.
| objects | List of eVision.Easy3D.E3DObject |
| None eVision.Easy3D.E3DViewer.AddRenderSource | ( | self, | |
| str | name, | ||
| eVision.Easy3D.E3DBox | box ) |
Adds a new Render Source.
The given render source (point cloud, mesh, ZMap, sphere, box, plane or line) is added to the current display.
| name | A name for the render source, to be used to access and configure the render source. |
| box | An eVision.Easy3D.E3DBox to be added as render source. |
| None eVision.Easy3D.E3DViewer.AddRenderSource | ( | self, | |
| str | name, | ||
| eVision.Easy3D.E3DBox | box, | ||
| eVision.EC24 | color ) |
Adds a new Render Source.
The given render source (point cloud, mesh, ZMap, sphere, box, plane or line) is added to the current display.
| name | A name for the render source, to be used to access and configure the render source. |
| box | An eVision.Easy3D.E3DBox to be added as render source. |
| color | The color of the eVision.Easy3D.E3DSphere, eVision.Easy3D.E3DBox, eVision.Easy3D.E3DLine or eVision.Easy3D.E3DPlane. |
| None eVision.Easy3D.E3DViewer.AddRenderSource | ( | self, | |
| str | name, | ||
| eVision.Easy3D.E3DBox | box, | ||
| eVision.EC24 | color, | ||
| int | opacity ) |
Adds a new Render Source.
The given render source (point cloud, mesh, ZMap, sphere, box, plane or line) is added to the current display.
| name | A name for the render source, to be used to access and configure the render source. |
| box | An eVision.Easy3D.E3DBox to be added as render source. |
| color | The color of the eVision.Easy3D.E3DSphere, eVision.Easy3D.E3DBox, eVision.Easy3D.E3DLine or eVision.Easy3D.E3DPlane. |
| opacity | The opacity of the eVision.Easy3D.E3DSphere, eVision.Easy3D.E3DBox or eVision.Easy3D.E3DPlane. |
| None eVision.Easy3D.E3DViewer.AddRenderSource | ( | self, | |
| str | name, | ||
| eVision.Easy3D.E3DLine | line ) |
Adds a new Render Source.
The given render source (point cloud, mesh, ZMap, sphere, box, plane or line) is added to the current display.
| name | A name for the render source, to be used to access and configure the render source. |
| line | An eVision.Easy3D.E3DLine to be added as render source. |
| None eVision.Easy3D.E3DViewer.AddRenderSource | ( | self, | |
| str | name, | ||
| eVision.Easy3D.E3DLine | line, | ||
| eVision.EC24 | color ) |
Adds a new Render Source.
The given render source (point cloud, mesh, ZMap, sphere, box, plane or line) is added to the current display.
| name | A name for the render source, to be used to access and configure the render source. |
| line | An eVision.Easy3D.E3DLine to be added as render source. |
| color | The color of the eVision.Easy3D.E3DSphere, eVision.Easy3D.E3DBox, eVision.Easy3D.E3DLine or eVision.Easy3D.E3DPlane. |
| None eVision.Easy3D.E3DViewer.AddRenderSource | ( | self, | |
| str | name, | ||
| eVision.Easy3D.E3DPlane | plane ) |
Adds a new Render Source.
The given render source (point cloud, mesh, ZMap, sphere, box, plane or line) is added to the current display.
| name | A name for the render source, to be used to access and configure the render source. |
| plane | An eVision.Easy3D.E3DPlane to be added as render source. |
| None eVision.Easy3D.E3DViewer.AddRenderSource | ( | self, | |
| str | name, | ||
| eVision.Easy3D.E3DPlane | plane, | ||
| eVision.EC24 | color ) |
Adds a new Render Source.
The given render source (point cloud, mesh, ZMap, sphere, box, plane or line) is added to the current display.
| name | A name for the render source, to be used to access and configure the render source. |
| plane | An eVision.Easy3D.E3DPlane to be added as render source. |
| color | The color of the eVision.Easy3D.E3DSphere, eVision.Easy3D.E3DBox, eVision.Easy3D.E3DLine or eVision.Easy3D.E3DPlane. |
| None eVision.Easy3D.E3DViewer.AddRenderSource | ( | self, | |
| str | name, | ||
| eVision.Easy3D.E3DPlane | plane, | ||
| eVision.EC24 | color, | ||
| int | opacity ) |
Adds a new Render Source.
The given render source (point cloud, mesh, ZMap, sphere, box, plane or line) is added to the current display.
| name | A name for the render source, to be used to access and configure the render source. |
| plane | An eVision.Easy3D.E3DPlane to be added as render source. |
| color | The color of the eVision.Easy3D.E3DSphere, eVision.Easy3D.E3DBox, eVision.Easy3D.E3DLine or eVision.Easy3D.E3DPlane. |
| opacity | The opacity of the eVision.Easy3D.E3DSphere, eVision.Easy3D.E3DBox or eVision.Easy3D.E3DPlane. |
| None eVision.Easy3D.E3DViewer.AddRenderSource | ( | self, | |
| str | name, | ||
| eVision.Easy3D.E3DSphere | sphere ) |
Adds a new Render Source.
The given render source (point cloud, mesh, ZMap, sphere, box, plane or line) is added to the current display.
| name | A name for the render source, to be used to access and configure the render source. |
| sphere | An eVision.Easy3D.E3DSphere to be added as render source. |
| None eVision.Easy3D.E3DViewer.AddRenderSource | ( | self, | |
| str | name, | ||
| eVision.Easy3D.E3DSphere | sphere, | ||
| eVision.EC24 | color ) |
Adds a new Render Source.
The given render source (point cloud, mesh, ZMap, sphere, box, plane or line) is added to the current display.
| name | A name for the render source, to be used to access and configure the render source. |
| sphere | An eVision.Easy3D.E3DSphere to be added as render source. |
| color | The color of the eVision.Easy3D.E3DSphere, eVision.Easy3D.E3DBox, eVision.Easy3D.E3DLine or eVision.Easy3D.E3DPlane. |
| None eVision.Easy3D.E3DViewer.AddRenderSource | ( | self, | |
| str | name, | ||
| eVision.Easy3D.E3DSphere | sphere, | ||
| eVision.EC24 | color, | ||
| int | opacity ) |
Adds a new Render Source.
The given render source (point cloud, mesh, ZMap, sphere, box, plane or line) is added to the current display.
| name | A name for the render source, to be used to access and configure the render source. |
| sphere | An eVision.Easy3D.E3DSphere to be added as render source. |
| color | The color of the eVision.Easy3D.E3DSphere, eVision.Easy3D.E3DBox, eVision.Easy3D.E3DLine or eVision.Easy3D.E3DPlane. |
| opacity | The opacity of the eVision.Easy3D.E3DSphere, eVision.Easy3D.E3DBox or eVision.Easy3D.E3DPlane. |
| None eVision.Easy3D.E3DViewer.AddRenderSource | ( | self, | |
| str | name, | ||
| eVision.Easy3D.EMesh | source ) |
Adds a new Render Source.
The given render source (point cloud, mesh, ZMap, sphere, box, plane or line) is added to the current display.
| name | A name for the render source, to be used to access and configure the render source. |
| source | An eVision.Easy3D.EPointCloud, eVision.Easy3D.EMesh or eVision.Easy3D.EZMap to be added as render source. |
| None eVision.Easy3D.E3DViewer.AddRenderSource | ( | self, | |
| str | name, | ||
| eVision.Easy3D.EPointCloud | source ) |
Adds a new Render Source.
The given render source (point cloud, mesh, ZMap, sphere, box, plane or line) is added to the current display.
| name | A name for the render source, to be used to access and configure the render source. |
| source | An eVision.Easy3D.EPointCloud, eVision.Easy3D.EMesh or eVision.Easy3D.EZMap to be added as render source. |
| None eVision.Easy3D.E3DViewer.AddRenderSource | ( | self, | |
| str | name, | ||
| eVision.Easy3D.EZMap | None | source ) |
Adds a new Render Source.
The given render source (point cloud, mesh, ZMap, sphere, box, plane or line) is added to the current display.
| name | A name for the render source, to be used to access and configure the render source. |
| source | An eVision.Easy3D.EPointCloud, eVision.Easy3D.EMesh or eVision.Easy3D.EZMap to be added as render source. |
| int eVision.Easy3D.E3DViewer.AddTextLabel | ( | self, | |
| eVision.Easy3D.TextLabel | label ) |
Adds a text label linked to an eVision.Easy3D.E3DPoint.
Remarks:
See also eVision.Easy3D.E3DViewer.EditTextLabel. and eVision.Easy3D.E3DViewer.GetTextLabel.
| label | The label to add. |
| eVision.Easy3D.E3DPoint eVision.Easy3D.E3DViewer.AutoRotate | ( | self | ) |
Retrieves, enables and configures the auto rotate display.
| eVision.Easy3D.E3DViewer.AutoRotate | ( | self, | |
| eVision.Easy3D.E3DPoint | value ) |
Retrieves, enables and configures the auto rotate display.
| eVision.Easy3D.EAxisOriginMode eVision.Easy3D.E3DViewer.AxisOrigin | ( | self | ) |
Sets and Gets the axis origin mode.
Remarks:
The default mode is eVision.Easy3D.EAxisOriginMode.BoundingBoxOrigin.
| eVision.Easy3D.E3DViewer.AxisOrigin | ( | self, | |
| eVision.Easy3D.EAxisOriginMode | value ) |
Sets and Gets the axis origin mode.
Remarks:
The default mode is eVision.Easy3D.EAxisOriginMode.BoundingBoxOrigin.
| eVision.ERGBColor eVision.Easy3D.E3DViewer.BackgroundColor | ( | self | ) |
Sets/Gets the 3D viewer background color.
| eVision.Easy3D.E3DViewer.BackgroundColor | ( | self, | |
| eVision.ERGBColor | value ) |
Sets/Gets the 3D viewer background color.
| None eVision.Easy3D.E3DViewer.ClearRenderSource | ( | self | ) |
Clears the 3D data, nothing will be displayed.
Remarks:
| None eVision.Easy3D.E3DViewer.ClearTextLabels | ( | self | ) |
Removes all text labels.
| eVision.ERGBColor eVision.Easy3D.E3DViewer.ColorRampGraduationColor | ( | self | ) |
Sets/Gets the graduation color.
Remarks:
The default color is white.
| eVision.Easy3D.E3DViewer.ColorRampGraduationColor | ( | self, | |
| eVision.ERGBColor | value ) |
Sets/Gets the graduation color.
Remarks:
The default color is white.
| eVision.Easy3D.EColorRampMode eVision.Easy3D.E3DViewer.ColorRampMode | ( | self | ) |
Set/Gets the current color ramp mode.
| eVision.Easy3D.E3DViewer.ColorRampMode | ( | self, | |
| eVision.Easy3D.EColorRampMode | value ) |
Set/Gets the current color ramp mode.
| None eVision.Easy3D.E3DViewer.ConfigureRenderSource | ( | self, | |
| eVision.Easy3D.EMesh | sourceObject ) |
Sets a unique 3D source to be rendered.
It replaces the current object.
Remarks:
For display performance purposes, the object geometry is copied into the viewer.
Subsequent modifications on the object will thus not be visible until a new call to eVision.Easy3D.E3DViewer.ConfigureRenderSource has been made.
The initial viewing position looks at the object center.
| sourceObject | A 3D source (eVision.Easy3D.EPointCloud, eVision.Easy3D.EMesh, eVision.Easy3D.EZMap) to render. |
| None eVision.Easy3D.E3DViewer.ConfigureRenderSource | ( | self, | |
| eVision.Easy3D.EMesh | sourceObject, | ||
| bool | keepCurrentView ) |
Sets a unique 3D source to be rendered.
It replaces the current object.
Remarks:
For display performance purposes, the object geometry is copied into the viewer.
Subsequent modifications on the object will thus not be visible until a new call to eVision.Easy3D.E3DViewer.ConfigureRenderSource has been made.
The initial viewing position looks at the object center.
| sourceObject | A 3D source (eVision.Easy3D.EPointCloud, eVision.Easy3D.EMesh, eVision.Easy3D.EZMap) to render. |
| keepCurrentView | An optional boolean, use true to keep the current view or false to reset the view and center the new object. |
The default value resets the view.
| None eVision.Easy3D.E3DViewer.ConfigureRenderSource | ( | self, | |
| eVision.Easy3D.EPointCloud | sourceObject ) |
Sets a unique 3D source to be rendered.
It replaces the current object.
Remarks:
For display performance purposes, the object geometry is copied into the viewer.
Subsequent modifications on the object will thus not be visible until a new call to eVision.Easy3D.E3DViewer.ConfigureRenderSource has been made.
The initial viewing position looks at the object center.
| sourceObject | A 3D source (eVision.Easy3D.EPointCloud, eVision.Easy3D.EMesh, eVision.Easy3D.EZMap) to render. |
| None eVision.Easy3D.E3DViewer.ConfigureRenderSource | ( | self, | |
| eVision.Easy3D.EPointCloud | sourceObject, | ||
| bool | keepCurrentView ) |
Sets a unique 3D source to be rendered.
It replaces the current object.
Remarks:
For display performance purposes, the object geometry is copied into the viewer.
Subsequent modifications on the object will thus not be visible until a new call to eVision.Easy3D.E3DViewer.ConfigureRenderSource has been made.
The initial viewing position looks at the object center.
| sourceObject | A 3D source (eVision.Easy3D.EPointCloud, eVision.Easy3D.EMesh, eVision.Easy3D.EZMap) to render. |
| keepCurrentView | An optional boolean, use true to keep the current view or false to reset the view and center the new object. |
The default value resets the view.
| None eVision.Easy3D.E3DViewer.ConfigureRenderSource | ( | self, | |
| eVision.Easy3D.EZMap16 | sourceObject ) |
Sets a unique 3D source to be rendered.
It replaces the current object.
Remarks:
For display performance purposes, the object geometry is copied into the viewer.
Subsequent modifications on the object will thus not be visible until a new call to eVision.Easy3D.E3DViewer.ConfigureRenderSource has been made.
The initial viewing position looks at the object center.
| sourceObject | A 3D source (eVision.Easy3D.EPointCloud, eVision.Easy3D.EMesh, eVision.Easy3D.EZMap) to render. |
| None eVision.Easy3D.E3DViewer.ConfigureRenderSource | ( | self, | |
| eVision.Easy3D.EZMap16 | sourceObject, | ||
| bool | keepCurrentView ) |
Sets a unique 3D source to be rendered.
It replaces the current object.
Remarks:
For display performance purposes, the object geometry is copied into the viewer.
Subsequent modifications on the object will thus not be visible until a new call to eVision.Easy3D.E3DViewer.ConfigureRenderSource has been made.
The initial viewing position looks at the object center.
| sourceObject | A 3D source (eVision.Easy3D.EPointCloud, eVision.Easy3D.EMesh, eVision.Easy3D.EZMap) to render. |
| keepCurrentView | An optional boolean, use true to keep the current view or false to reset the view and center the new object. |
The default value resets the view.
| None eVision.Easy3D.E3DViewer.ConfigureRenderSource | ( | self, | |
| eVision.Easy3D.EZMap32f | sourceObject ) |
Sets a unique 3D source to be rendered.
It replaces the current object.
Remarks:
For display performance purposes, the object geometry is copied into the viewer.
Subsequent modifications on the object will thus not be visible until a new call to eVision.Easy3D.E3DViewer.ConfigureRenderSource has been made.
The initial viewing position looks at the object center.
| sourceObject | A 3D source (eVision.Easy3D.EPointCloud, eVision.Easy3D.EMesh, eVision.Easy3D.EZMap) to render. |
| None eVision.Easy3D.E3DViewer.ConfigureRenderSource | ( | self, | |
| eVision.Easy3D.EZMap32f | sourceObject, | ||
| bool | keepCurrentView ) |
Sets a unique 3D source to be rendered.
It replaces the current object.
Remarks:
For display performance purposes, the object geometry is copied into the viewer.
Subsequent modifications on the object will thus not be visible until a new call to eVision.Easy3D.E3DViewer.ConfigureRenderSource has been made.
The initial viewing position looks at the object center.
| sourceObject | A 3D source (eVision.Easy3D.EPointCloud, eVision.Easy3D.EMesh, eVision.Easy3D.EZMap) to render. |
| keepCurrentView | An optional boolean, use true to keep the current view or false to reset the view and center the new object. |
The default value resets the view.
| None eVision.Easy3D.E3DViewer.ConfigureRenderSource | ( | self, | |
| eVision.Easy3D.EZMap8 | sourceObject ) |
Sets a unique 3D source to be rendered.
It replaces the current object.
Remarks:
For display performance purposes, the object geometry is copied into the viewer.
Subsequent modifications on the object will thus not be visible until a new call to eVision.Easy3D.E3DViewer.ConfigureRenderSource has been made.
The initial viewing position looks at the object center.
| sourceObject | A 3D source (eVision.Easy3D.EPointCloud, eVision.Easy3D.EMesh, eVision.Easy3D.EZMap) to render. |
| None eVision.Easy3D.E3DViewer.ConfigureRenderSource | ( | self, | |
| eVision.Easy3D.EZMap8 | sourceObject, | ||
| bool | keepCurrentView ) |
Sets a unique 3D source to be rendered.
It replaces the current object.
Remarks:
For display performance purposes, the object geometry is copied into the viewer.
Subsequent modifications on the object will thus not be visible until a new call to eVision.Easy3D.E3DViewer.ConfigureRenderSource has been made.
The initial viewing position looks at the object center.
| sourceObject | A 3D source (eVision.Easy3D.EPointCloud, eVision.Easy3D.EMesh, eVision.Easy3D.EZMap) to render. |
| keepCurrentView | An optional boolean, use true to keep the current view or false to reset the view and center the new object. |
The default value resets the view.
| None eVision.Easy3D.E3DViewer.ConfigureRenderSource | ( | self, | |
| eVision.Easy3D.EZMap | None | sourceObject ) |
Sets a unique 3D source to be rendered.
It replaces the current object.
Remarks:
For display performance purposes, the object geometry is copied into the viewer.
Subsequent modifications on the object will thus not be visible until a new call to eVision.Easy3D.E3DViewer.ConfigureRenderSource has been made.
The initial viewing position looks at the object center.
| sourceObject | A 3D source (eVision.Easy3D.EPointCloud, eVision.Easy3D.EMesh, eVision.Easy3D.EZMap) to render. |
| None eVision.Easy3D.E3DViewer.ConfigureRenderSource | ( | self, | |
| eVision.Easy3D.EZMap | None | sourceObject, | ||
| bool | keepCurrentView ) |
Sets a unique 3D source to be rendered.
It replaces the current object.
Remarks:
For display performance purposes, the object geometry is copied into the viewer.
Subsequent modifications on the object will thus not be visible until a new call to eVision.Easy3D.E3DViewer.ConfigureRenderSource has been made.
The initial viewing position looks at the object center.
| sourceObject | A 3D source (eVision.Easy3D.EPointCloud, eVision.Easy3D.EMesh, eVision.Easy3D.EZMap) to render. |
| keepCurrentView | An optional boolean, use true to keep the current view or false to reset the view and center the new object. |
The default value resets the view.
| None eVision.Easy3D.E3DViewer.DecPointSize | ( | self | ) |
Decreases the displayed point size.
| None eVision.Easy3D.E3DViewer.DisableFixColorRampBounds | ( | self | ) |
| None eVision.Easy3D.E3DViewer.EditTextLabel | ( | self, | |
| int | id, | ||
| eVision.Easy3D.TextLabel | label ) |
Edits a text label.
Remarks:
See also eVision.Easy3D.E3DViewer.AddTextLabel and eVision.Easy3D.E3DViewer.GetTextLabel.
If you want to modify only a subset of the fields of a eVision.Easy3D.TextLabel, please call eVision.Easy3D.E3DViewer.GetTextLabel, modify the eVision.Easy3D.TextLabel and then pass it to eVision.Easy3D.E3DViewer.EditTextLabel.
| id | The id of the text label to edit. |
| label | The new value of the label. |
| float eVision.Easy3D.E3DViewer.EDLShadingFactor | ( | self | ) |
Gets/Sets how strong Eye-Dome-Lighting shading is.
In this mode, every pixel is shaded by how much closer its neighbor pixels are to the camera.
Remarks:
Factor value ranges between 0 and 1. 0 means no shading, 1 means the strongest shading.
| eVision.Easy3D.E3DViewer.EDLShadingFactor | ( | self, | |
| float | value ) |
Gets/Sets how strong Eye-Dome-Lighting shading is.
In this mode, every pixel is shaded by how much closer its neighbor pixels are to the camera.
Remarks:
Factor value ranges between 0 and 1. 0 means no shading, 1 means the strongest shading.
| bool eVision.Easy3D.E3DViewer.EnableEDLShading | ( | self | ) |
Gets/Sets if Eye-Dome-Lighting shading mode is enabled.
In this mode, every pixel is shaded by how much closer its neighbor pixels are to the camera.
Remarks:
Enabling Eye-Dome-Lighting shading has no effect when eVision.Easy3D.E3DViewer.IsEDLShadingSupported is equal to false.
| eVision.Easy3D.E3DViewer.EnableEDLShading | ( | self, | |
| bool | value ) |
Gets/Sets if Eye-Dome-Lighting shading mode is enabled.
In this mode, every pixel is shaded by how much closer its neighbor pixels are to the camera.
Remarks:
Enabling Eye-Dome-Lighting shading has no effect when eVision.Easy3D.E3DViewer.IsEDLShadingSupported is equal to false.
| bool eVision.Easy3D.E3DViewer.EnableFixColorRampBounds | ( | self | ) |
Gets the state of the fix color ramp bounds.
Remarks:
To enable fix color ramp bounds, use eVision.Easy3D.E3DViewer.FixColorRampBounds.
| bool eVision.Easy3D.E3DViewer.EnableSmartColorRamp | ( | self | ) |
Sets/Gets the state of the smart generation of color.
If the smart generation of color is active, then the outliers inside the pointcloud will not be taken into account in the color ramp.
Remarks:
Default: true. When set to true, fix color ramp bounds are disabled (see also eVision.Easy3D.E3DViewer.DisableFixColorRampBounds).
| eVision.Easy3D.E3DViewer.EnableSmartColorRamp | ( | self, | |
| bool | value ) |
Sets/Gets the state of the smart generation of color.
If the smart generation of color is active, then the outliers inside the pointcloud will not be taken into account in the color ramp.
Remarks:
Default: true. When set to true, fix color ramp bounds are disabled (see also eVision.Easy3D.E3DViewer.DisableFixColorRampBounds).
| float eVision.Easy3D.E3DViewer.FieldOfView | ( | self | ) |
Sets/Gets the field of view.
Remarks:
If the projection type is EProjectionType_Orthographic, the field of view is not taken into account. See also eVision.Easy3D.E3DViewer.ProjectionType. For the angle unit see eVision.Easy.SetAngleUnit.
| eVision.Easy3D.E3DViewer.FieldOfView | ( | self, | |
| float | value ) |
Sets/Gets the field of view.
Remarks:
If the projection type is EProjectionType_Orthographic, the field of view is not taken into account. See also eVision.Easy3D.E3DViewer.ProjectionType. For the angle unit see eVision.Easy.SetAngleUnit.
| eVision.EFloatRange eVision.Easy3D.E3DViewer.FixColorRampBounds | ( | self | ) |
Gets/Sets the bounds of the color ramp.
Remarks:
This function also sets to false eVision.Easy3D.E3DViewer.EnableSmartColorRamp. See also eVision.Easy3D.E3DViewer.DisableFixColorRampBounds
| eVision.Easy3D.E3DViewer.FixColorRampBounds | ( | self, | |
| eVision.EFloatRange | value ) |
Gets/Sets the bounds of the color ramp.
Remarks:
This function also sets to false eVision.Easy3D.E3DViewer.EnableSmartColorRamp. See also eVision.Easy3D.E3DViewer.DisableFixColorRampBounds
| str eVision.Easy3D.E3DViewer.FontPath | ( | self | ) |
Configure the TrueType font used to display text on the 3D Viewer.
Remarks:
Setup a font file must be done before the eVision.Easy3D.E3DViewer.InitRendering method is called.
By default, the TTF file is:
| eVision.Easy3D.E3DViewer.FontPath | ( | self, | |
| str | value ) |
Configure the TrueType font used to display text on the 3D Viewer.
Remarks:
Setup a font file must be done before the eVision.Easy3D.E3DViewer.InitRendering method is called.
By default, the TTF file is:
| None eVision.Easy3D.E3DViewer.GenerateColors | ( | self, | |
| eVision.Easy3D.EColorRampMode | mode ) |
Choose the current color ramp mode.
Colors are calculated from point coordinates or attributes, several mappings are exposed in eVision.Easy3D.EColorRampMode.
Use eVision.Easy3D.E3DViewer.ColorRampMode.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| mode | The color ramp mode from eVision.Easy3D.EColorRampMode. |
| None eVision.Easy3D.E3DViewer.GetColorRampLocation | ( | self, | |
| eVision.EPoint | botLeft, | ||
| eVision.EPoint | topRight ) |
Gets the location of the color ramp.
| botLeft | The left most and bottom most point of the color ramp. |
| topRight | The right most and top most point of the color ramp. |
| eVision.Easy3D.ERenderStyle eVision.Easy3D.E3DViewer.GetFeatureStyleFor3DObject | ( | self, | |
| int | idx, | ||
| eVision.Easy3D.E3DObjectFeature | feature ) |
Gets how the eVision.Easy3D.E3DObjectFeature of the registered eVision.Easy3D.E3DObject at the specified location idx should be rendered.
If the feature wasn't computed in the corresponding eVision.Easy3D.E3DObject, its feature style has no effect.
| idx | the position in the list of registered eVision.Easy3D.E3DObject |
| feature | the feature |
| eVision.Easy3D.ESourceColorMode eVision.Easy3D.E3DViewer.GetRenderSourceColorMode | ( | self, | |
| str | name ) |
Gets the Source Color Mode.
The Source Color Mode defines how the colors of the point cloud or mesh are chosen. See eVision.Easy3D.ESourceColorMode.
Remarks:
See also eVision.Easy3D.E3DViewer.GetRenderSourceConstantColor and eVision.Easy3D.E3DViewer.GenerateColors.
| name | The name of the render source to be considered. |
| eVision.EC24 eVision.Easy3D.E3DViewer.GetRenderSourceConstantColor | ( | self, | |
| str | name ) |
Gets the constant color used to display a point cloud or a mesh, when eVision.Easy3D.ESourceColorMode is set to eVision.Easy3D.ESourceColorMode.Constant.
Remarks:
See also eVision.Easy3D.E3DViewer.GetRenderSourceColorMode.
| name | The name of the render source to be considered. |
| str eVision.Easy3D.E3DViewer.GetRenderSourceName | ( | self, | |
| int | index ) |
Returns the name of the ith render source.
Remarks:
The number of render sources is given by eVision.Easy3D.E3DViewer.NumRenderSources.
| index | The index of the render source to consider. |
| int eVision.Easy3D.E3DViewer.GetRenderSourceOpacity | ( | self, | |
| str | name ) |
Gets the opacity used to display the render source.
Only compatible with eVision.Easy3D.ESourceColorMode.Constant.
| name | The name of the render source to be considered. |
| int eVision.Easy3D.E3DViewer.GetRenderSourcePointSize | ( | self, | |
| str | name ) |
Gets the point size used to display the point clouds.
| name | The name of the render source to be considered. |
| bool eVision.Easy3D.E3DViewer.GetRenderSourceWireFrame | ( | self, | |
| str | name ) |
Gets the wireframe mode used to render a mesh.
| name | The name of the render source to be considered. |
| eVision.EC24 eVision.Easy3D.E3DViewer.GetRenderSourceWireFrameColor | ( | self, | |
| str | name ) |
Gets the wireframe color.
| name | The name of the render source to be considered. |
| None eVision.Easy3D.E3DViewer.GetRotationMatrix | ( | self, | |
| eVision.Easy3D.E3DTransformMatrix | matrix ) |
Gets the view rotation matrix.
| matrix | A matrix representing the view orientation. |
| eVision.Easy3D.TextLabel eVision.Easy3D.E3DViewer.GetTextLabel | ( | self, | |
| int | id ) |
Gets the text label information.
Remarks:
See also eVision.Easy3D.E3DViewer.AddTextLabel and eVision.Easy3D.E3DViewer.EditTextLabel.
| id | The id of the text label. |
| bool eVision.Easy3D.E3DViewer.Has3DObjects | ( | self | ) |
Return true if at least one 3D object is registered.
Remarks:
| bool eVision.Easy3D.E3DViewer.HasRenderSource | ( | self, | |
| str | name ) |
Is the given render source name exists ?
| name | The name of the render source to be checked. |
| None eVision.Easy3D.E3DViewer.HideColorRampLegend | ( | self | ) |
Disables the display of a color ramp legend.
Remarks:
| None eVision.Easy3D.E3DViewer.HideFeatureFor3DObject | ( | self, | |
| int | idx, | ||
| eVision.Easy3D.E3DObjectFeature | feature ) |
Sets the eVision.Easy3D.E3DObjectFeature of the registered eVision.Easy3D.E3DObject at the specified location idx to be not rendered.
If the feature wasn't computed in the corresponding eVision.Easy3D.E3DObject, this has no effect.
| idx | the position in the list of registered eVision.Easy3D.E3DObject |
| feature | the feature |
| None eVision.Easy3D.E3DViewer.HideFeatureForAll3DObjects | ( | self, | |
| eVision.Easy3D.E3DObjectFeature | feature ) |
Sets the eVision.Easy3D.E3DObjectFeature of all the registered eVision.Easy3D.E3DObject to be not rendered.
| feature | the feature |
| None eVision.Easy3D.E3DViewer.HideRenderSource | ( | self, | |
| str | name ) |
Hides the given render source.
Remarks:
See also eVision.Easy3D.E3DViewer.ShowRenderSource.
| name | The name of the render source. |
| None eVision.Easy3D.E3DViewer.IncPointSize | ( | self | ) |
Increases the displayed point size.
| None eVision.Easy3D.E3DViewer.InitRendering | ( | self | ) |
Initializes the rendering state, must be called one time before the first eVision.Easy3D.E3DViewer.Show.
| bool eVision.Easy3D.E3DViewer.IsAutoRotate | ( | self | ) |
Returns true if the auto rotation is active.
| bool eVision.Easy3D.E3DViewer.IsColorRampLegendVisible | ( | self | ) |
Whether the color ramp legend is visible or not.
Remarks:
See also eVision.Easy3D.E3DViewer.ShowColorRampLegend and eVision.Easy3D.E3DViewer.HideColorRampLegend.
| bool eVision.Easy3D.E3DViewer.IsEDLShadingSupported | ( | self | ) |
Indicates whether Eye-Dome-Lighting shading mode is supported.
Remarks:
Support of Eye-Dome-Lighting shading is detected when eVision.Easy3D.E3DViewer.InitRendering is called. Before, this method will always return false.
| bool eVision.Easy3D.E3DViewer.IsFeatureVisibleFor3DObject | ( | self, | |
| int | idx, | ||
| eVision.Easy3D.E3DObjectFeature | feature ) |
Whether the eVision.Easy3D.E3DObjectFeature of the registered eVision.Easy3D.E3DObject si rendered or not.
If the feature wasn't computed in the corresponding eVision.Easy3D.E3DObject, the visibility of the feature has no effect.
| idx | the position in the list of registered eVision.Easy3D.E3DObject |
| feature | the feature |
| bool eVision.Easy3D.E3DViewer.IsInitialized | ( | self | ) |
Indicates if 3DViewer has already been initialized.
| bool eVision.Easy3D.E3DViewer.IsRenderSourceVisible | ( | self, | |
| str | name ) |
Returns true if the render source is currently visible.
Remarks:
See also eVision.Easy3D.E3DViewer.ShowRenderSource and eVision.Easy3D.E3DViewer.HideRenderSource.
| name | The name of the render source to be queried. |
| bool eVision.Easy3D.E3DViewer.IsShapeRenderSource | ( | self, | |
| str | name ) |
Returns true if the render source is a shape.
| name | The name of the render source to be queried. |
| eVision.Easy3D.E3DPoint eVision.Easy3D.E3DViewer.LastPickedPoint | ( | self | ) |
Returns the last picked eVision.Easy3D.E3DPoint if there is one.
Otherwise, it throws an eVision.EException.
| None eVision.Easy3D.E3DViewer.LockRotationFinalPosition | ( | self, | |
| int | x, | ||
| int | y ) |
Finalizes a rotation transformation of the view point using the (x,y) coordinate.
Usually (x,y) is the mouse cursor coordinate when a button is released.
Remarks:
See also eVision.Easy3D.E3DViewer.LockRotationInitialPosition and eVision.Easy3D.E3DViewer.UpdateRotationPosition.
| x | X coordinate. |
| y | Y coordinate. |
| None eVision.Easy3D.E3DViewer.LockRotationInitialPosition | ( | self, | |
| int | x, | ||
| int | y ) |
Starts a rotation transformation of the view point using the (x,y) coordinate.
Usually (x,y) is the mouse cursor coordinate when a button is pressed.
Remarks:
See also eVision.Easy3D.E3DViewer.UpdateRotationPosition and eVision.Easy3D.E3DViewer.LockRotationFinalPosition.
| x | X coordinate. |
| y | Y coordinate. |
| None eVision.Easy3D.E3DViewer.LockTranslationFinalPosition | ( | self, | |
| int | x, | ||
| int | y ) |
Finalizes a rotation transformation of the view point using the (x,y) coordinate.
Usually (x,y) is the mouse cursor coordinate when a button is released.
Remarks:
See also eVision.Easy3D.E3DViewer.LockTranslationInitialPosition and eVision.Easy3D.E3DViewer.UpdateTranslationPosition.
| x | X coordinate. |
| y | Y coordinate. |
| None eVision.Easy3D.E3DViewer.LockTranslationInitialPosition | ( | self, | |
| int | x, | ||
| int | y ) |
Starts a translation transformation of the view point using the (x,y) coordinate.
Usually (x,y) is the mouse cursor coordinate when a button is pressed.
Remarks:
See also eVision.Easy3D.E3DViewer.UpdateTranslationPosition and eVision.Easy3D.E3DViewer.LockTranslationFinalPosition.
| x | X coordinate. |
| y | Y coordinate. |
| int eVision.Easy3D.E3DViewer.Num3DObjects | ( | self | ) |
Return the number of 3D objects registered.
Remarks:
| int eVision.Easy3D.E3DViewer.NumRenderSources | ( | self | ) |
Returns the number of render sources.
Remarks:
| eVision.Easy3D.E3DPoint eVision.Easy3D.E3DViewer.Pick3DPoint | ( | self, | |
| int | x, | ||
| int | y ) |
Returns and displays the picked eVision.Easy3D.E3DPoint in the eVision.Easy3D.EPointCloud.
Remarks:
If there is no point close enough to the picking ray, an eVision.EException is thrown (see also eVision.Easy3D.E3DViewer.PickingDistanceThreshold). If a callback function is configured (see eVision.Easy3D.E3DViewer.SetPickedPointCallBack), then no eVision.EException is thrown when there is no point found.
| x | The X pixel coordinate in the 3DViewer windows |
| y | The Y pixel coordinate in the 3DViewer windows |
| bool eVision.Easy3D.E3DViewer.PickingDisplay | ( | self | ) |
Enables or disables the display of the picked point.
Remarks:
See also eVision.Easy3D.E3DViewer.PickingLabelSize, eVision.Easy3D.E3DViewer.PickingLabelFixed and eVision.Easy3D.E3DViewer.PickingLabelColor.
| eVision.Easy3D.E3DViewer.PickingDisplay | ( | self, | |
| bool | value ) |
Enables or disables the display of the picked point.
Remarks:
See also eVision.Easy3D.E3DViewer.PickingLabelSize, eVision.Easy3D.E3DViewer.PickingLabelFixed and eVision.Easy3D.E3DViewer.PickingLabelColor.
| float eVision.Easy3D.E3DViewer.PickingDistanceThreshold | ( | self | ) |
Sets or gets the distance threshold for the picking.
Remarks:
See also eVision.Easy3D.E3DViewer.Pick3DPoint.
| eVision.Easy3D.E3DViewer.PickingDistanceThreshold | ( | self, | |
| float | value ) |
Sets or gets the distance threshold for the picking.
Remarks:
See also eVision.Easy3D.E3DViewer.Pick3DPoint.
| eVision.EC24 eVision.Easy3D.E3DViewer.PickingLabelColor | ( | self | ) |
Sets or gets the color of the picked point label.
Remarks:
See also eVision.Easy3D.E3DViewer.PickingDisplay, eVision.Easy3D.E3DViewer.PickingLabelFixed and eVision.Easy3D.E3DViewer.PickingLabelSize.
| eVision.Easy3D.E3DViewer.PickingLabelColor | ( | self, | |
| eVision.EC24 | value ) |
Sets or gets the color of the picked point label.
Remarks:
See also eVision.Easy3D.E3DViewer.PickingDisplay, eVision.Easy3D.E3DViewer.PickingLabelFixed and eVision.Easy3D.E3DViewer.PickingLabelSize.
| bool eVision.Easy3D.E3DViewer.PickingLabelFixed | ( | self | ) |
Sets or gets the state to fix or not the label.
Remarks:
Default state is false.
See also eVision.Easy3D.E3DViewer.PickingDisplay, eVision.Easy3D.E3DViewer.PickingLabelSize and eVision.Easy3D.E3DViewer.PickingLabelColor.
| eVision.Easy3D.E3DViewer.PickingLabelFixed | ( | self, | |
| bool | value ) |
Sets or gets the state to fix or not the label.
Remarks:
Default state is false.
See also eVision.Easy3D.E3DViewer.PickingDisplay, eVision.Easy3D.E3DViewer.PickingLabelSize and eVision.Easy3D.E3DViewer.PickingLabelColor.
| float eVision.Easy3D.E3DViewer.PickingLabelSize | ( | self | ) |
Sets or gets the size of the picked point label.
Remarks:
Default value for size is 0.05.
See also eVision.Easy3D.E3DViewer.PickingDisplay, eVision.Easy3D.E3DViewer.PickingLabelFixed and eVision.Easy3D.E3DViewer.PickingLabelColor.
| eVision.Easy3D.E3DViewer.PickingLabelSize | ( | self, | |
| float | value ) |
Sets or gets the size of the picked point label.
Remarks:
Default value for size is 0.05.
See also eVision.Easy3D.E3DViewer.PickingDisplay, eVision.Easy3D.E3DViewer.PickingLabelFixed and eVision.Easy3D.E3DViewer.PickingLabelColor.
| int eVision.Easy3D.E3DViewer.PointSize | ( | self | ) |
Displays size of the points, in pixels.
Remarks:
The size of the point (range value is 1 to 5 pixels, and 2 by default).
This value is used only to draw an eVision.Easy3D.EPointCloud, not for an eVision.Easy3D.EMesh.
| eVision.Easy3D.E3DViewer.PointSize | ( | self, | |
| int | value ) |
Displays size of the points, in pixels.
Remarks:
The size of the point (range value is 1 to 5 pixels, and 2 by default).
This value is used only to draw an eVision.Easy3D.EPointCloud, not for an eVision.Easy3D.EMesh.
| eVision.Easy3D.EProjectionType eVision.Easy3D.E3DViewer.ProjectionType | ( | self | ) |
Sets/Gets the projection type.
Remarks:
If the projection type is EProjectionType_Perspective, then the field of view can be set with the method eVision.Easy3D.E3DViewer.FieldOfView.
| eVision.Easy3D.E3DViewer.ProjectionType | ( | self, | |
| eVision.Easy3D.EProjectionType | value ) |
Sets/Gets the projection type.
Remarks:
If the projection type is EProjectionType_Perspective, then the field of view can be set with the method eVision.Easy3D.E3DViewer.FieldOfView.
| None eVision.Easy3D.E3DViewer.Register3DObjects | ( | self, | |
| list[eVision._eVision.Easy3D.E3DObject] | objects ) |
Sets the list of eVision.Easy3D.E3DObject from which their features can be rendered.
Remarks:
The features that need to be visualize are set with show methods. The registered features have a default style. Previously set styles are ignored. Removes the currently registered eVision.Easy3D.E3DObject. Objects in which eVision.Easy3D.E3DObjectFeature.BoundingBox was not computed are ignored.
| objects | List of eVision.Easy3D.E3DObject |
| None eVision.Easy3D.E3DViewer.RemoveAllRenderSources | ( | self | ) |
Removes all render sources.
The eVision.Easy3D.E3DViewer display will be empty.
| None eVision.Easy3D.E3DViewer.RemoveCurrent3DObjects | ( | self | ) |
Removes all eVision.Easy3D.E3DObject currently registered.
| None eVision.Easy3D.E3DViewer.RemoveRenderSource | ( | self, | |
| str | name ) |
Removes the given render source.
| name | The name of the render source to be changed. |
| None eVision.Easy3D.E3DViewer.RemoveTextLabel | ( | self, | |
| int | id ) |
Removes a text label.
Remarks:
See also eVision.Easy3D.E3DViewer.AddTextLabel.
| id | The id of the text label. |
| bool eVision.Easy3D.E3DViewer.RenderAxis | ( | self | ) |
Enables or disables the display of the axis.
Remarks:
The default state is true.
| eVision.Easy3D.E3DViewer.RenderAxis | ( | self, | |
| bool | value ) |
Enables or disables the display of the axis.
Remarks:
The default state is true.
| eVision.Easy3D.E3DAxisDisplay eVision.Easy3D.E3DViewer.RenderAxisConfiguration | ( | self | ) |
Sets/Gets the axis configuration.
| eVision.Easy3D.E3DViewer.RenderAxisConfiguration | ( | self, | |
| eVision.Easy3D.E3DAxisDisplay | value ) |
Sets/Gets the axis configuration.
| int eVision.Easy3D.E3DViewer.RenderDecimationLevel | ( | self | ) |
Sets or Gets the point cloud decimation level used during the rendering.
Remarks:
The viewer will only render one point every [Decimation Level] points (1 by default, and need to be > 0).
This decimation depends on the order of the points in the eVision.Easy3D.EPointCloud.
Irrespectively from this parameter, the viewer decimates the rendered point clouds if it detects lags in its display.
| eVision.Easy3D.E3DViewer.RenderDecimationLevel | ( | self, | |
| int | value ) |
Sets or Gets the point cloud decimation level used during the rendering.
Remarks:
The viewer will only render one point every [Decimation Level] points (1 by default, and need to be > 0).
This decimation depends on the order of the points in the eVision.Easy3D.EPointCloud.
Irrespectively from this parameter, the viewer decimates the rendered point clouds if it detects lags in its display.
| bool eVision.Easy3D.E3DViewer.RenderGrid | ( | self | ) |
Enables or disables the display of Grid.
Remarks:
Display Grid with true (true by default).
| eVision.Easy3D.E3DViewer.RenderGrid | ( | self, | |
| bool | value ) |
Enables or disables the display of Grid.
Remarks:
Display Grid with true (true by default).
| float eVision.Easy3D.E3DViewer.RenderGridStep | ( | self | ) |
Sets/Gets the same grid step for each axis.
Remarks:
The unit of the grid step value is the same as the one from the eVision.Easy3D.EPointCloud. If value is equal to 0, then the step is auto computed and if the value is smaller than 0, then there is no step on the axis.
Default value is the size of each axis divided by ten.
For the Get function, if the step is not the same for each axis, then the mean is returned.
| eVision.Easy3D.E3DViewer.RenderGridStep | ( | self, | |
| float | value ) |
Sets/Gets the same grid step for each axis.
Remarks:
The unit of the grid step value is the same as the one from the eVision.Easy3D.EPointCloud. If value is equal to 0, then the step is auto computed and if the value is smaller than 0, then there is no step on the axis.
Default value is the size of each axis divided by ten.
For the Get function, if the step is not the same for each axis, then the mean is returned.
| None eVision.Easy3D.E3DViewer.ResetPicking | ( | self | ) |
Resets the last picked point and disable the coordinate display.
| None eVision.Easy3D.E3DViewer.ResetView | ( | self | ) |
Resets the view point to a view that frame the object.
Remarks:
The default view direction is from positive Z.
| None eVision.Easy3D.E3DViewer.ResetView | ( | self, | |
| eVision.Easy3D.EViewDirection | viewDirection ) |
Resets the view point to a view that frame the object.
Remarks:
The default view direction is from positive Z.
| viewDirection | The view direction from eVision.Easy3D.EViewDirection (optional) |
| None eVision.Easy3D.E3DViewer.Resize | ( | self, | |
| int | width, | ||
| int | height ) |
Update the size of the 3D viewer window.
| width | Width of the viewer window. |
| height | Height of the viewer window. |
| None eVision.Easy3D.E3DViewer.SetColorRampLocation | ( | self, | |
| eVision.EPoint | botLeft, | ||
| eVision.EPoint | topRight ) |
Sets the location of the color ramp.
Remarks:
By default, the color ramp is located at the right of the window. The color ramp is always vertical. The value should be between 0 (left/bottom) and 100 (right/top) and corresponds to the % of the window.
| botLeft | The left most and bottom most point of the color ramp. |
| topRight | The right most and top most point of the color ramp. |
| None eVision.Easy3D.E3DViewer.SetFeatureStyleFor3DObject | ( | self, | |
| int | idx, | ||
| eVision.Easy3D.ERenderStyle | style, | ||
| eVision.Easy3D.E3DObjectFeature | feature ) |
Sets how the eVision.Easy3D.E3DObjectFeature of the registered eVision.Easy3D.E3DObject at the specified location idx should be rendered.
If the feature wasn't computed in the corresponding eVision.Easy3D.E3DObject, this has no effect.
| idx | the index of the E3DObject |
| style | the style |
| feature | the feature |
| None eVision.Easy3D.E3DViewer.SetFeatureStyleForAll3DObjects | ( | self, | |
| eVision.Easy3D.ERenderStyle | style, | ||
| eVision.Easy3D.E3DObjectFeature | feature ) |
Sets how the eVision.Easy3D.E3DObjectFeature of all the registered eVision.Easy3D.E3DObject should be rendered.
If the feature wasn't computed in the corresponding eVision.Easy3D.E3DObject, this has no effect.
| style | the style |
| feature | the feature |
| None eVision.Easy3D.E3DViewer.SetFocus | ( | self | ) |
The viewer window takes the focus.
| None eVision.Easy3D.E3DViewer.SetPickedPointCallBack | ( | self, | |
| ctypes.c_void_p | pickedPointCallBack ) |
Sets a callback function that will be called when a new eVision.Easy3D.E3DPoint is picked.
Remarks:
To obtain an IntPtr of the function, use: using System.Runtime.InteropServices;, delegate void CallBackDelegate(IntPtr context, bool pointFound, float pX, float pY, float pZ, int x, int y); void MyCallBackFunction(IntPtr context, bool pointFound, float pX, float pY, float pZ, int x, int y) {...} Marshal.GetFunctionPointerForDelegate(new CallBackDelegate(MyCallBackFunction)). net@
Where context is the context parameter that was given in argument, pickedPointFound is set to false if a there were no point close enough to the picking ray (true otherwise), pX, pY, pZ are the coordinates of the point that was picked, x and y are the position of the mouse in the window.
| pickedPointCallBack | A pointer to a function that will be called when a new eVision.Easy3D.E3DPoint is picked. |
| None eVision.Easy3D.E3DViewer.SetPickedPointCallBack | ( | self, | |
| ctypes.c_void_p | pickedPointCallBack, | ||
| ctypes.c_void_p | context ) |
Sets a callback function that will be called when a new eVision.Easy3D.E3DPoint is picked.
Remarks:
To obtain an IntPtr of the function, use: using System.Runtime.InteropServices;, delegate void CallBackDelegate(IntPtr context, bool pointFound, float pX, float pY, float pZ, int x, int y); void MyCallBackFunction(IntPtr context, bool pointFound, float pX, float pY, float pZ, int x, int y) {...} Marshal.GetFunctionPointerForDelegate(new CallBackDelegate(MyCallBackFunction)). net@
Where context is the context parameter that was given in argument, pickedPointFound is set to false if a there were no point close enough to the picking ray (true otherwise), pX, pY, pZ are the coordinates of the point that was picked, x and y are the position of the mouse in the window.
| pickedPointCallBack | A pointer to a function that will be called when a new eVision.Easy3D.E3DPoint is picked. |
| context | Some context information that will be given in argument to the callback pickedPointCallBack function. |
| None eVision.Easy3D.E3DViewer.SetPickedPointCallBack | ( | self, | |
| ctypes.c_void_p | pickedPointCallBack, | ||
| ctypes.c_void_p | context, | ||
| bool | callCallBackWhenPointNotFound ) |
Sets a callback function that will be called when a new eVision.Easy3D.E3DPoint is picked.
Remarks:
To obtain an IntPtr of the function, use: using System.Runtime.InteropServices;, delegate void CallBackDelegate(IntPtr context, bool pointFound, float pX, float pY, float pZ, int x, int y); void MyCallBackFunction(IntPtr context, bool pointFound, float pX, float pY, float pZ, int x, int y) {...} Marshal.GetFunctionPointerForDelegate(new CallBackDelegate(MyCallBackFunction)). net@
Where context is the context parameter that was given in argument, pickedPointFound is set to false if a there were no point close enough to the picking ray (true otherwise), pX, pY, pZ are the coordinates of the point that was picked, x and y are the position of the mouse in the window.
| pickedPointCallBack | A pointer to a function that will be called when a new eVision.Easy3D.E3DPoint is picked. |
| context | Some context information that will be given in argument to the callback pickedPointCallBack function. |
| callCallBackWhenPointNotFound | Set to true to call the callback function even if there is not point picked. Default: false. |
| None eVision.Easy3D.E3DViewer.SetPosition | ( | self, | |
| int | orgX, | ||
| int | orgY, | ||
| int | width, | ||
| int | height ) |
Sets the position of the 3D viewer window.
| orgX | X coordinate of the top left corner of the viewer window. |
| orgY | Y coordinate of the top left corner of the viewer window. |
| width | Width of the viewer window. |
| height | Height of the viewer window. |
| None eVision.Easy3D.E3DViewer.SetPosition | ( | self, | |
| int | orgX, | ||
| int | orgY, | ||
| int | width, | ||
| int | height, | ||
| ctypes.c_void_p | hWndInsertAfter ) |
Sets the position of the 3D viewer window.
| orgX | X coordinate of the top left corner of the viewer window. |
| orgY | Y coordinate of the top left corner of the viewer window. |
| width | Width of the viewer window. |
| height | Height of the viewer window. |
| hWndInsertAfter | A handle to the window to precede the positioned window in the Z order. Only useful with eVision.Easy3D.EUIAPI.Win32. see SetWindowPos |
| None eVision.Easy3D.E3DViewer.SetRenderSource | ( | self, | |
| str | name, | ||
| eVision.Easy3D.E3DBox | box ) |
Changes the content of a render source with a new point cloud, mesh or ZMap.
| name | The name of the render source to be changed. |
| box | An eVision.Easy3D.E3DBox to replace the existing render source. |
| None eVision.Easy3D.E3DViewer.SetRenderSource | ( | self, | |
| str | name, | ||
| eVision.Easy3D.E3DBox | box, | ||
| eVision.EC24 | color ) |
Changes the content of a render source with a new point cloud, mesh or ZMap.
| name | The name of the render source to be changed. |
| box | An eVision.Easy3D.E3DBox to replace the existing render source. |
| color | The color of the eVision.Easy3D.E3DSphere, eVision.Easy3D.E3DBox, eVision.Easy3D.E3DLine or eVision.Easy3D.E3DPlane. |
| None eVision.Easy3D.E3DViewer.SetRenderSource | ( | self, | |
| str | name, | ||
| eVision.Easy3D.E3DBox | box, | ||
| eVision.EC24 | color, | ||
| int | opacity ) |
Changes the content of a render source with a new point cloud, mesh or ZMap.
| name | The name of the render source to be changed. |
| box | An eVision.Easy3D.E3DBox to replace the existing render source. |
| color | The color of the eVision.Easy3D.E3DSphere, eVision.Easy3D.E3DBox, eVision.Easy3D.E3DLine or eVision.Easy3D.E3DPlane. |
| opacity | The opacity of the eVision.Easy3D.E3DSphere, eVision.Easy3D.E3DBox or eVision.Easy3D.E3DPlane. |
| None eVision.Easy3D.E3DViewer.SetRenderSource | ( | self, | |
| str | name, | ||
| eVision.Easy3D.E3DLine | line ) |
Changes the content of a render source with a new point cloud, mesh or ZMap.
| name | The name of the render source to be changed. |
| line | An eVision.Easy3D.E3DLine to replace the existing render source. |
| None eVision.Easy3D.E3DViewer.SetRenderSource | ( | self, | |
| str | name, | ||
| eVision.Easy3D.E3DLine | line, | ||
| eVision.EC24 | color ) |
Changes the content of a render source with a new point cloud, mesh or ZMap.
| name | The name of the render source to be changed. |
| line | An eVision.Easy3D.E3DLine to replace the existing render source. |
| color | The color of the eVision.Easy3D.E3DSphere, eVision.Easy3D.E3DBox, eVision.Easy3D.E3DLine or eVision.Easy3D.E3DPlane. |
| None eVision.Easy3D.E3DViewer.SetRenderSource | ( | self, | |
| str | name, | ||
| eVision.Easy3D.E3DPlane | plane ) |
Changes the content of a render source with a new point cloud, mesh or ZMap.
| name | The name of the render source to be changed. |
| plane | An eVision.Easy3D.E3DPlane to replace the existing render source. |
| None eVision.Easy3D.E3DViewer.SetRenderSource | ( | self, | |
| str | name, | ||
| eVision.Easy3D.E3DPlane | plane, | ||
| eVision.EC24 | color ) |
Changes the content of a render source with a new point cloud, mesh or ZMap.
| name | The name of the render source to be changed. |
| plane | An eVision.Easy3D.E3DPlane to replace the existing render source. |
| color | The color of the eVision.Easy3D.E3DSphere, eVision.Easy3D.E3DBox, eVision.Easy3D.E3DLine or eVision.Easy3D.E3DPlane. |
| None eVision.Easy3D.E3DViewer.SetRenderSource | ( | self, | |
| str | name, | ||
| eVision.Easy3D.E3DPlane | plane, | ||
| eVision.EC24 | color, | ||
| int | opacity ) |
Changes the content of a render source with a new point cloud, mesh or ZMap.
| name | The name of the render source to be changed. |
| plane | An eVision.Easy3D.E3DPlane to replace the existing render source. |
| color | The color of the eVision.Easy3D.E3DSphere, eVision.Easy3D.E3DBox, eVision.Easy3D.E3DLine or eVision.Easy3D.E3DPlane. |
| opacity | The opacity of the eVision.Easy3D.E3DSphere, eVision.Easy3D.E3DBox or eVision.Easy3D.E3DPlane. |
| None eVision.Easy3D.E3DViewer.SetRenderSource | ( | self, | |
| str | name, | ||
| eVision.Easy3D.E3DSphere | sphere ) |
Changes the content of a render source with a new point cloud, mesh or ZMap.
| name | The name of the render source to be changed. |
| sphere | An eVision.Easy3D.E3DSphere to replace the existing render source. |
| None eVision.Easy3D.E3DViewer.SetRenderSource | ( | self, | |
| str | name, | ||
| eVision.Easy3D.E3DSphere | sphere, | ||
| eVision.EC24 | color ) |
Changes the content of a render source with a new point cloud, mesh or ZMap.
| name | The name of the render source to be changed. |
| sphere | An eVision.Easy3D.E3DSphere to replace the existing render source. |
| color | The color of the eVision.Easy3D.E3DSphere, eVision.Easy3D.E3DBox, eVision.Easy3D.E3DLine or eVision.Easy3D.E3DPlane. |
| None eVision.Easy3D.E3DViewer.SetRenderSource | ( | self, | |
| str | name, | ||
| eVision.Easy3D.E3DSphere | sphere, | ||
| eVision.EC24 | color, | ||
| int | opacity ) |
Changes the content of a render source with a new point cloud, mesh or ZMap.
| name | The name of the render source to be changed. |
| sphere | An eVision.Easy3D.E3DSphere to replace the existing render source. |
| color | The color of the eVision.Easy3D.E3DSphere, eVision.Easy3D.E3DBox, eVision.Easy3D.E3DLine or eVision.Easy3D.E3DPlane. |
| opacity | The opacity of the eVision.Easy3D.E3DSphere, eVision.Easy3D.E3DBox or eVision.Easy3D.E3DPlane. |
| None eVision.Easy3D.E3DViewer.SetRenderSource | ( | self, | |
| str | name, | ||
| eVision.Easy3D.EMesh | source ) |
Changes the content of a render source with a new point cloud, mesh or ZMap.
| name | The name of the render source to be changed. |
| source | An eVision.Easy3D.EPointCloud, an eVision.Easy3D.EMesh or an eVision.Easy3D.EZMap to replace the existing render source. |
| None eVision.Easy3D.E3DViewer.SetRenderSource | ( | self, | |
| str | name, | ||
| eVision.Easy3D.EPointCloud | source ) |
Changes the content of a render source with a new point cloud, mesh or ZMap.
| name | The name of the render source to be changed. |
| source | An eVision.Easy3D.EPointCloud, an eVision.Easy3D.EMesh or an eVision.Easy3D.EZMap to replace the existing render source. |
| None eVision.Easy3D.E3DViewer.SetRenderSource | ( | self, | |
| str | name, | ||
| eVision.Easy3D.EZMap | None | source ) |
Changes the content of a render source with a new point cloud, mesh or ZMap.
| name | The name of the render source to be changed. |
| source | An eVision.Easy3D.EPointCloud, an eVision.Easy3D.EMesh or an eVision.Easy3D.EZMap to replace the existing render source. |
| None eVision.Easy3D.E3DViewer.SetRenderSourceColorMode | ( | self, | |
| str | name, | ||
| eVision.Easy3D.ESourceColorMode | colorMode ) |
Sets the Source Color Mode.
The Source Color Mode defines how the colors of the point cloud or mesh are chosen. See eVision.Easy3D.ESourceColorMode.
Remarks:
See also eVision.Easy3D.E3DViewer.SetRenderSourceConstantColor and eVision.Easy3D.E3DViewer.GenerateColors.
| name | The name of the render source to be considered. |
| colorMode | The source color mode. |
| None eVision.Easy3D.E3DViewer.SetRenderSourceConstantColor | ( | self, | |
| str | name, | ||
| eVision.EC24 | color ) |
Sets the constant color used to display a point cloud or a mesh, when eVision.Easy3D.ESourceColorMode is set to eVision.Easy3D.ESourceColorMode.Constant.
Remarks:
See also eVision.Easy3D.E3DViewer.SetRenderSourceColorMode.
| name | The name of the render source to be considered. |
| color | The color. |
| None eVision.Easy3D.E3DViewer.SetRenderSourceOpacity | ( | self, | |
| str | name, | ||
| int | opacity ) |
Sets the opacity used to display the render source.
Only compatible with eVision.Easy3D.ESourceColorMode.Constant.
| name | The name of the render source to be considered. |
| opacity | The opacity between fully transparent (0) and fully opaque (255). |
| None eVision.Easy3D.E3DViewer.SetRenderSourcePointSize | ( | self, | |
| str | name, | ||
| int | size ) |
Sets the point size used to display the point clouds.
| name | The name of the render source to be considered. |
| size | The number of pixels used to render a point. |
| None eVision.Easy3D.E3DViewer.SetRenderSourceWireFrame | ( | self, | |
| str | name, | ||
| bool | state ) |
Sets the wireframe mode used to render a mesh.
| name | The name of the render source to be considered. |
| state | Enable or disable the wireframe rendering mode. |
| None eVision.Easy3D.E3DViewer.SetRenderSourceWireFrameColor | ( | self, | |
| str | name, | ||
| eVision.EC24 | color ) |
Sets the wireframe color.
| name | The name of the render source to be considered. |
| color | Color of the wireframe. |
| None eVision.Easy3D.E3DViewer.SetRotationMatrix | ( | self, | |
| eVision.Easy3D.E3DTransformMatrix | matrix ) |
Sets the view rotation matrix.
| matrix | A matrix representing the view orientation. |
| None eVision.Easy3D.E3DViewer.SetViewAngle | ( | self, | |
| float | angleX, | ||
| float | angleY ) |
Sets view angles.
| angleX | Rotation around the X axis. |
| angleY | Rotation around the Y axis. |
| None eVision.Easy3D.E3DViewer.Show | ( | self | ) |
Shows the viewer window, refresh the display.
| None eVision.Easy3D.E3DViewer.ShowColorRampLegend | ( | self | ) |
Enables the display of a color ramp legend.
Remarks:
See also eVision.Easy3D.E3DViewer.HideColorRampLegend, eVision.Easy3D.E3DViewer.SetColorRampLocation, eVision.Easy3D.E3DViewer.ColorRampGraduationColor.
| None eVision.Easy3D.E3DViewer.ShowFeatureFor3DObject | ( | self, | |
| int | idx, | ||
| eVision.Easy3D.E3DObjectFeature | feature ) |
Sets the eVision.Easy3D.E3DObjectFeature of the registered eVision.Easy3D.E3DObject at the specified location idx to be rendered.
If the feature wasn't computed in the corresponding eVision.Easy3D.E3DObject, this has no effect.
| idx | the position in the list of registered eVision.Easy3D.E3DObject |
| feature | the feature |
| None eVision.Easy3D.E3DViewer.ShowFeatureForAll3DObjects | ( | self, | |
| eVision.Easy3D.E3DObjectFeature | feature ) |
Sets the eVision.Easy3D.E3DObjectFeature of all the registered eVision.Easy3D.E3DObject to be rendered.
| feature | the feature |
| None eVision.Easy3D.E3DViewer.ShowRenderSource | ( | self, | |
| str | name ) |
Shows the given render source.
Remarks:
See also eVision.Easy3D.E3DViewer.HideRenderSource.
| name | The name of the render source. |
| None eVision.Easy3D.E3DViewer.StopAutoRotate | ( | self | ) |
Stops the display automatic rotation.
| None eVision.Easy3D.E3DViewer.Terminate | ( | self | ) |
Closes and frees allocated resources.
Must be called when the object should be destroyed.
This method is always called implicitly during the destruction of the object. It is still recommended to call it explicitly in programming languages other than C++ to ensure the underlying resources are correctly released.
| None eVision.Easy3D.E3DViewer.ToggleRenderAxis | ( | self | ) |
Toggles the display of the axis.
| None eVision.Easy3D.E3DViewer.ToggleWireframeMode | ( | self | ) |
Toggles the display of wireframe triangles.
| None eVision.Easy3D.E3DViewer.UpdateRotationPosition | ( | self, | |
| int | x, | ||
| int | y ) |
Updates a rotation transformation of the view point using the (x,y) coordinate.
Usually (x,y) is the mouse cursor coordinate when the mouse moves.
Remarks:
See also eVision.Easy3D.E3DViewer.LockRotationInitialPosition and eVision.Easy3D.E3DViewer.LockRotationFinalPosition.
| x | X coordinate. |
| y | Y coordinate. |
| None eVision.Easy3D.E3DViewer.UpdateTranslationPosition | ( | self, | |
| int | x, | ||
| int | y ) |
Updates a translation transformation of the view point using the (x,y) coordinate.
Usually (x,y) is the mouse cursor coordinate when a button is pressed.
Remarks:
See also eVision.Easy3D.E3DViewer.LockTranslationInitialPosition and eVision.Easy3D.E3DViewer.LockTranslationFinalPosition.
| x | X coordinate. |
| y | Y coordinate. |
| None eVision.Easy3D.E3DViewer.UpdateViewDistance | ( | self, | |
| float | delta ) |
Applies a delta factor to the view distance.
Usually this control is mapped on the mouse wheel.
| delta | The factor to change the view distance: move the view point closer to the object when delta is lower than 1 and further to the object when delta is larger than 1. |
| eVision.Easy3D.E3DPoint eVision.Easy3D.E3DViewer.ViewAngle | ( | self | ) |
Gets/Sets view angles.
| eVision.Easy3D.E3DViewer.ViewAngle | ( | self, | |
| eVision.Easy3D.E3DPoint | value ) |
Gets/Sets view angles.
| float eVision.Easy3D.E3DViewer.ViewDistance | ( | self | ) |
Sets/Gets view distance.
Remarks:
Distance between the point of the view and the object.
| eVision.Easy3D.E3DViewer.ViewDistance | ( | self, | |
| float | value ) |
Sets/Gets view distance.
Remarks:
Distance between the point of the view and the object.
| eVision.Easy3D.E3DPoint eVision.Easy3D.E3DViewer.ViewTarget | ( | self | ) |
Gets/Sets view target position (by default, the camera position is 'look at center of the point cloud').
| eVision.Easy3D.E3DViewer.ViewTarget | ( | self, | |
| eVision.Easy3D.E3DPoint | value ) |
Gets/Sets view target position (by default, the camera position is 'look at center of the point cloud').
| bool eVision.Easy3D.E3DViewer.WireframeMode | ( | self | ) |
Enables or disables the display of wireframe triangles.
Remarks:
Display wireframe triangles with true (false by default).
| eVision.Easy3D.E3DViewer.WireframeMode | ( | self, | |
| bool | value ) |
Enables or disables the display of wireframe triangles.
Remarks:
Display wireframe triangles with true (false by default).