Class to manage interactivity with GO2cam. More...
Inherits QObject.
Static Public Member Functions | |
| static void | ClearAll (Boolean askSave=false) |
| Reset GO2cam content (same than creating a new empty file) | |
| static GO2SEnum::GO2SContext | GetCurrentContext () |
| static GO2SEnum::GO2SEdgeDisplay | GetEdgeDisplay () |
| static GO2SGeometry | PickEntity (String forcedMessage="") |
| static GO2SReference | PickReference (String forcedMessage="", GO2SEnum::GO2SPickReference type=GO2SEnum::GO2SPickReference::all) |
| static GO2SXYZ | PickXYZ (String forcedMessage="", Boolean info=false) |
| static GO2SXYZ | PickXYZWithPreview (Array< GO2SGeometry > preview, String forcedMessage="", Boolean info=false) |
| static void | Redraw (Boolean reframe=false) |
| Force the 3D scene to be redrawn. | |
| static void | SetCurrentContext (GO2SEnum::GO2SContext ctx) |
| static void | SetEdgeDisplay (GO2SEnum::GO2SEdgeDisplay disp) |
| static void | SetEntityVisible (GO2SEnum::GO2SFilterType type, GO2SEnum::GO2SFilterMode mode) |
| static void | SetLayerName (Number layerNo, String name) |
| static void | SetLayerVisible (Number layer, Boolean visible) |
| static void | StartSelection () |
| Ask for a selection in the 3D scene. When selection is done, selected elements can be retrieved with GO2SGeometryUtil::GetSelected() | |
| static void | UpdateAll () |
| Update geometry and machining. | |
| static void | UpdateGeometry () |
| Update geometry. | |
| static void | UpdateMachining () |
| Update machining. | |
Class to manage interactivity with GO2cam.
|
static |
Reset GO2cam content (same than creating a new empty file)
| [in] | askSave | if true, ask to save the pce file before clear |
|
static |
Get current GO2cam context
|
static |
Get the current option for edge display
|
static |
Ask for an entity to be picked in the 3D scene When picking on a solid face or edge, returns the whole solid. To get faces or edges, see GO2SInteract.PickReference
| [in] | forcedMessage | optional message to be displayed in the dialog bar |
|
static |
Ask for an entity to be picked in the 3D scene. This function allows to get references on faces or edges when clicking on a solid.
| [in] | forcedMessage | optional message to be displayed in the dialog bar |
| [in] | type | type of reference to pick (point, edge or face) (Version 6.12) |
|
static |
Ask for XYZ to be picked in the 3D scene
| [in] | forcedMessage | optional message to be displayed in the dialog bar |
| [in] | info | v6.12 whether to display coordinates next to cursor |
|
static |
Ask for a point picked in the 3D scene + display a preview under the mouse
| [in] | preview | List of geometries to put under the mouse |
| [in] | forcedMessage | Optional message to be displayed in the dialog bar |
| [in] | info | Since version 6.12, whether to display coordinates next to cursor |
|
static |
Force the 3D scene to be redrawn.
| [in] | reframe | if true, reframe the view |
|
static |
Change GO2Cam context
| [in] | ctx | ctx new wanted context |
|
static |
Set the current option for edge display
| [in] | disp | edge display mode |
|
static |
Set visibility of entity types (ex: show or hide all circles)
| [in] | type | type of entity to filter |
| [in] | mode | visibility |
|
static |
Set the name of a layer
| [in] | layerNo | layer number to rename |
| [in] | name | name of the layer |
|
static |
Set the visibility of a given layer
| [in] | layer | layer index |
| [in] | visible | whether the layer shoul be visible or not |