![]() |
SCENE C++ API
2.0.31
|
Provides general access to all SCENE workspace types. More...
#include <lsworkspace.h>
Public Member Functions | |
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... | |
Public Attributes | |
Signals | |
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... | |
Additional Inherited Members | |
![]() | |
void | ref () const |
Increments the internal reference counter. More... | |
void | unref () const |
Decrements the internal reference counter. More... | |
Provides general access to all SCENE workspace types.
Gets the root object of the workspace object tree.
Convenience function to acquire a list of all scans which are part of the object tree.
bool importData | ( | const LSString & | filePath | ) |
Imports data from a file into this workspace.
The specified file may be of any supported scan or project type.
filePath | The path to the file to be imported. |
Gets the current list of selected objects with this workspace.
ref_ptr<LSPointCloud> getPointCloud | ( | ) | const |
Gets the project point cloud of this workspace.
LSResult::Result createPointCloud | ( | ) |
Creates a project point cloud of all scans in that workspace.
If the project contains modifications, the project must be saved before the creation is possible. Otherwise LSResult::Internal will be returned. Project must to be open with write access. Otherwise LSResult::Internal will be returned.
LSResult::Result deletePointCloud | ( | ) |
Deletes the project point cloud.
If the project contains modifications, the project must be saved before the deletion is possible. Otherwise LSResult::Internal will be returned. Project must to be open with write access. Otherwise LSResult::Internal will be returned.
ref_ptr<LSPointSelection> getPointSelection | ( | ) | const |
Gets the current spatial point selection of this workspace.
LSSignal<ref_ptr<LSWorkspaceEvent> > onObjectSelectionChanged |
Dispatched when the object selection has changed.
LSSignal<ref_ptr<LSWorkspaceEvent> > onPointSelectionChanged |
Dispatched when the point selection has changed.