Adds the given geometryGraphic to the display. It will be associated with the given
VisionDataGraphic and the VisionDataGraphic’s 3D coordinate space tree will be used
to resolve the geometry graphic’s SelectedSpaceName3D to the display’s DisplaySpaceName3D.
Throws an exception if the geometryGraphic is null.
Throws an exception if the geometryGraphic has already been added to the display.
Throws an exception if the visionDataGraphic is null.
Throws an exception if the visionDataGraphic has NOT yet been added to the display.
Throws an exception if the groupName is null or empty string.
Namespace: Cognex.VisionPro3DAssembly: Cognex.VisionPro3D.Display.Controls (in Cognex.VisionPro3D.Display.Controls.dll) Version: 69.0.0.0 (69.0.0.0)
Syntax
Parameters
- geometryGraphic
- Type: Cognex.VisionPro3D Cog3DGeometryGraphicBase
The geometry graphic to add to the display
- visionDataGraphic
- Type: Cognex.VisionPro3D Cog3DVisionDataGraphicBase
The vision data graphic to associate the geometry graphic with
- groupName (Optional)
- Type: System String
The name of the logical group to add the geometry graphic to. The groupName is case insensitive.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | Throws an exception if the geometryGraphic is null. |
| ArgumentException | Throws an exception if the geometryGraphic has already been added to the display. |
| ArgumentNullException | Throws an exception if the visionDataGraphic is null. |
| ArgumentException | Throws an exception if the visionDataGraphic has not yet been added to the display. |
| ArgumentException | Throws an exception if the groupName is null or empty string. |
See Also