Workspace to compute geometries without displaying them. More...
Inherits QObject.
Public Member Functions | |
| GO2SWorkspace () | |
| GO2SEnum::GO2SError | Activate () |
| GO2SEnum::GO2SError | Close () |
| GO2SGeometry | Copy (GO2SGeometry geom) |
| GO2SEnum::GO2SError | CopyToolpath (GO2SGeometry geom, GO2SEnum::GO2SToolpathType type, GO2SXYZ dir=nullptr) |
| Boolean | IsActive () |
| Boolean | IsMain () |
| Boolean | IsOpen () |
Workspace to compute geometries without displaying them.
A workspace is a separate area where geometries can be created, modified and intersected. Its content is never displayed and is discarded when the workspace is closed, or at the end of the script. Several workspaces can be open at the same time; exactly one of them is active, the Main workspace by default. New geometries are always created in the active workspace.
| GO2SWorkspace::GO2SWorkspace | ( | ) |
Open a new workspace. It is not active: call Activate() to create geometries in it
| GO2SEnum::GO2SError GO2SWorkspace::Activate | ( | ) |
Make this workspace the active one: new geometries are created in it
| GO2SEnum::GO2SError GO2SWorkspace::Close | ( | ) |
Close the workspace and discard all its geometries. If it was the active workspace, the Main workspace becomes active
| GO2SGeometry GO2SWorkspace::Copy | ( | GO2SGeometry | geom | ) |
Copy a geometry of any workspace into this one
| [in] | geom | geometry to copy |
| GO2SEnum::GO2SError GO2SWorkspace::CopyToolpath | ( | GO2SGeometry | geom, |
| GO2SEnum::GO2SToolpathType | type, | ||
| GO2SXYZ | dir = nullptr ) |
Copy a geometry of any workspace into the toolpath computed by a toolpath macro. The element is written as the macro writes its own: origin offset, layer, color and plane of the macro
| [in] | geom | geometry to copy |
| [in] | type | type of the toolpath element |
| [in] | dir | tool direction, (0,0,1) if null |
| Boolean GO2SWorkspace::IsActive | ( | ) |
| Boolean GO2SWorkspace::IsMain | ( | ) |
| Boolean GO2SWorkspace::IsOpen | ( | ) |