Utility class to load objects from ".3dk" binary files that can be saved using the WorkspaceSaverInterface.
More...
#include <WorkspaceLoaderInterface.h>
Utility class to load objects from ".3dk" binary files that can be saved using the WorkspaceSaverInterface.
◆ ~WorkspaceLoaderInterface()
virtual FLE_DLL FlowEngine::WorkspaceLoaderInterface::~WorkspaceLoaderInterface |
( |
| ) |
|
|
virtualdefault |
Default virtual destructor.
◆ getBoundingBox()
Retrieve the bounding box object at the specified position.
- Parameters
-
- Returns
- One of the following result codes:
◆ getBoundingBoxCount()
virtual FLE_DLL Index FlowEngine::WorkspaceLoaderInterface::getBoundingBoxCount |
( |
| ) |
const |
|
pure virtual |
- Returns
- the number of bounding boxes in this loader.
◆ getCamera()
Retrieve the camera object at the specified position.
- Parameters
-
- Returns
- One of the following result codes:
◆ getCameraCount()
virtual FLE_DLL Index FlowEngine::WorkspaceLoaderInterface::getCameraCount |
( |
| ) |
const |
|
pure virtual |
- Returns
- the number of cameras in this loader.
◆ getControlPointConstraint()
Retrieve the control point constraint object at the specified position.
- Parameters
-
- Returns
- One of the following result codes:
◆ getControlPointConstraintCount()
virtual FLE_DLL Index FlowEngine::WorkspaceLoaderInterface::getControlPointConstraintCount |
( |
| ) |
const |
|
pure virtual |
- Returns
- the number of control point constraints in this loader.
◆ getSparsePointCloud()
Retrieve the sparse point cloud object at the specified position.
- Parameters
-
- Returns
- One of the following result codes:
◆ getSparsePointCloudCount()
virtual FLE_DLL Index FlowEngine::WorkspaceLoaderInterface::getSparsePointCloudCount |
( |
| ) |
const |
|
pure virtual |
- Returns
- the number of sparse point clouds in this loader.
◆ getStereoMesh()
Retrieve the stereo mesh object at the specified position.
- Parameters
-
[in] | idx | mesh element number. Must be less than WorkspaceLoaderInterface::getStereoMeshesCount. |
[in,out] | outMesh | a stereo mesh object to be filled with the loaded information. |
- Returns
- One of the following result codes:
◆ getStereoMeshCount()
virtual FLE_DLL Index FlowEngine::WorkspaceLoaderInterface::getStereoMeshCount |
( |
| ) |
const |
|
pure virtual |
- Returns
- the number of stereo meshes in this loader.
◆ getStereoPointCloud()
Retrieve the stereo point cloud object at the specified position.
- Parameters
-
- Returns
- One of the following result codes:
◆ getStereoPointCloudCount()
virtual FLE_DLL Index FlowEngine::WorkspaceLoaderInterface::getStereoPointCloudCount |
( |
| ) |
const |
|
pure virtual |
- Returns
- the number of stereo point clouds in this loader.
◆ getStereoTexturedMesh()
Retrieve the stereo textured mesh object at the specified position.
- Parameters
-
- Returns
- One of the following result codes:
◆ getStereoTexturedMeshCount()
virtual FLE_DLL Index FlowEngine::WorkspaceLoaderInterface::getStereoTexturedMeshCount |
( |
| ) |
const |
|
pure virtual |
- Returns
- the number of stereo textured meshes in this loader.
◆ getVersion()
virtual FLE_DLL Result FlowEngine::WorkspaceLoaderInterface::getVersion |
( |
Version & |
outVersion | ) |
const |
|
pure virtual |
Get the version of the loaded 3DK file.
- Parameters
-
[out] | outVersion | the version struct containing the major and minor categories. |
- Returns
- One of the following result codes:
- Note
- prior to v. 4.448 the version was not written in the 3DK.
◆ load() [1/3]
Load objects from a file in 3DK format.
- Parameters
-
[in] | filePath | string buffer containing the UTF-8 encoded path to the file. |
- Returns
- One of the following result codes:
◆ load() [2/3]
Load objects from a file in 3DK format if the file version is older than the specified minium version.
- Parameters
-
[in] | filePath | string buffer containing the UTF-8 encoded path to the file. |
[in] | minimumVersion | the minimum file version allowed to load. |
- Note
- This function is identical to the other load(), except that it will fail with Result::UnsupportedVersion if the target file has no version (FlowEngine v.4.448 and lower) or the version is older than
minimumVersion
.
- See also
- WorkspaceLoader::load
◆ load() [3/3]
Load objects from a dynamic buffer in 3DK format.
- Parameters
-
[in] | inBuffer | a dynamic buffer containing the 3DK file. |
- Returns
- One of the following result codes: