SCENE C++ API
2.1.0
|
Functions and types related to the import functionality. More...
Classes | |
class | LSPointDataSource |
Interface for the import of unstructured point cloud data. More... | |
Functions | |
LSResult::Result | importPointData (const ref_ptr< LSProject > &project, const LSString &name, const ref_ptr< LSPointDataSource > &source, ref_ptr< LSScan > &scan) |
Import unstructured or structured point data directly from memory into the given project. More... | |
Functions and types related to the import functionality.
LSResult::Result SCENE_API::importPointData | ( | const ref_ptr< LSProject > & | project, |
const LSString & | name, | ||
const ref_ptr< LSPointDataSource > & | source, | ||
ref_ptr< LSScan > & | scan | ||
) |
Import unstructured or structured point data directly from memory into the given project.
This can be used to import point data without writing and reading files from disk. This can be used to write an importer for a proprietary point cloud file format. Currently only color or intensity is supported. This function cannot import both due to an internal limitation. Please keep in mind that the underlying implementation requires all points to fit in the computers memory. Very big data sets should therefore be separated into multiple chunks! The scan will be imported into the default scan folder (the "Scans" folder below the root object). Each successful call to this function will generate a new scan in the project tree. Here is a simple example:
project | The project that should receive the imported data as a new scan object. |
name | The proposed name for the scan generated from the imported point data. If there is already something with that name, SCENE will generate a unique name by appending numbers. Retrieve the final name of the newly created scan by calling getName() on the objected returned through the scan parameter. |
source | An instance of a implementation of the LSPointDataSource interface. |
scan | Output parameter with a reference to the generated scan. Will stay empty if the import of the point data failed. |