![]() |
SCENE C++ API
2.0.31
|
Interface to access information and functionality of local workspaces. More...
#include <lslocalworkspace.h>
Public Member Functions | |
~LSLocalWorkspace () | |
Destroys the workspace. More... | |
LSResult::Result | saveWorkspace () |
Saves the current workspace state back to the local workspace file. More... | |
![]() | |
ref_ptr< LSObject > | getRootObject () const |
Gets the root object of the workspace object tree. More... | |
LSPod< std::vector< ref_ptr< LSScan > > > | getScans () const |
Convenience function to acquire a list of all scans which are part of the object tree. More... | |
bool | importData (const LSString &filePath) |
Imports data from a file into this workspace. More... | |
LSPod< std::vector< ref_ptr< LSObject > > > | getSelectedObjects () const |
Gets the current list of selected objects with this workspace. More... | |
ref_ptr< LSPointCloud > | getPointCloud () const |
Gets the project point cloud of this workspace. More... | |
LSResult::Result | createPointCloud () |
Creates a project point cloud of all scans in that workspace. More... | |
LSResult::Result | deletePointCloud () |
Deletes the project point cloud. More... | |
ref_ptr< LSPointSelection > | getPointSelection () const |
Gets the current spatial point selection of this workspace. More... | |
Static Public Member Functions | |
static LSResult::Result | loadWorkspace (LSString workspacePath, ref_ptr< LSLocalWorkspace > &workspaceOut) |
Loads a local workspace from the file system. More... | |
Additional Inherited Members | |
![]() | |
LSSignal< ref_ptr< LSWorkspaceEvent > > | onObjectSelectionChanged |
Dispatched when the object selection has changed. More... | |
LSSignal< ref_ptr< LSWorkspaceEvent > > | onPointSelectionChanged |
Dispatched when the point selection has changed. More... | |
![]() | |
void | ref () const |
Increments the internal reference counter. More... | |
void | unref () const |
Decrements the internal reference counter. More... | |
Interface to access information and functionality of local workspaces.
~LSLocalWorkspace | ( | ) |
Destroys the workspace.
|
static |
Loads a local workspace from the file system.
When working with the Standalone API you should also call LSStandaloneContext::setCurrentWorkspace() after successfully loading a project.
workspacePath | The file system path to the workspace file to be loaded. |
workspaceOut | Out parameter in which the workspace instance is provided if the workspace was successfully loaded. |
LSResult::Result saveWorkspace | ( | ) |
Saves the current workspace state back to the local workspace file.