ICog3DDisplayV2 MethodsCognex VisionPro 9.8 SR1

The ICog3DDisplayV2 type exposes the following members.

Methods

  NameDescription
Public methodAdd(Cog3DVisionDataGraphicBase, String)
Adds a Cog3DVisionDataGraphicBase item to the display to the given group. Throws an exception if the item is null. Throws an exception if the item has already been added to the display. Throws an exception if the groupName is null or empty string.
Public methodAdd(Cog3DGeometryGraphicBase, Cog3DVisionDataGraphicBase, String)
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.
Public methodClear
Cleras the contents of the display
Public methodFitView
Zooms in and out to fit the content of the world into the view
Public methodGetGeometryGraphic
Returns a Cog3DGeometryGraphicBase item at the given index
Public methodGetGeometryGraphics 
Returns all the Cog3DGeometryGraphicBase graphic items added to the display
Public methodGetGeometryGraphics(String)
Returns all the Cog3DGeometryGraphicBase from the given group
Public methodGetLostAndFoundGeometryGraphics
Returns all the Cog3DGeometryGraphicBase graphic items that has been added to the display but its SelectedSpaceName3D could not be resolved because either: - the SelectedSpaceName3D of the geometry graphic can not be found in the associated VisionData's 3D coordinate space tree - or there is something wrong with the associated VisionData's 3D coordinate space tree and therefore it could not be rendered
Public methodGetLostAndFoundVisionDataGraphics
Returns all the Cog3DVisionDataGraphicBase graphic items that has been added to the display but its 3D coordinate space does not hold an entry specified by DisplaySpaceName3D and therefore cannot be rendered
Public methodGetVisionDataGraphic
Returns a Cog3DVisionDataGraphicBase item at the given index
Public methodGetVisionDataGraphics 
Returns all the Cog3DVisionDataGraphicBase graphic items added to the display
Public methodGetVisionDataGraphics(String)
Returns all the Cog3DVisionDataGraphicBase from the given group
Public methodRemove(String)
Removes all the Cog3DVisionDataGraphicBase and Cog3DGeometryGraphicBase graphics from the display from the specified group. NOTE: when it removes a Cog3DVisionDataGraphicBase all of its associated geometry graphics will be removed regardless of which group they are in.
Public methodRemove(Cog3DGeometryGraphicBase)
Removes the given Cog3DGeometryGraphicBase from the display
Public methodRemove(Cog3DVisionDataGraphicBase)
Removes the given Cog3DVisionDataGraphicBase from the display with all of its associated geometry graphics.
Public methodRemoveGeometryGraphicByIndex
Removes the given Cog3DGeometryGraphicBase from the display at the given index
Public methodRemoveVisionDataGraphicByIndex
Removes the given Cog3DVisionDataGraphicBase from the display at the given index. The associated geometry graphics will be removed too.
Public methodResetView
Reset the camera's location to its default: 0,0,Z, looking at 0,0,0. Zooms to an extent to fit the graphics into the view.
Public methodSaveAsImage(String)
Save the content of the display into an image file with the current resolution of the display. If the filename attribute is not set, the display will show a Save File Dialog to the user so she can specify the name and location of the file to save the image to.
Public methodSaveAsImage(Int32, Int32, String)
Save the content of the scene into an image file with the given width and height as the resolution of the resulting image. If the filename attribute is not set, the display will show a Save File Dialog to the user so she can specify the name and location of the file to save the image to.
Public methodSetView
Change the camera's position and look direction in the 3-D space.
Top
See Also