FlowEngine 7.517
Photogrammetry Software Development Kit
Loading...
Searching...
No Matches
FlowEngine::WorkspaceLoaderInterface Class Referenceabstract

Utility class to load objects from ".3dk" binary files that can be saved using the WorkspaceSaverInterface. More...

#include <WorkspaceLoaderInterface.h>

Public Member Functions

virtual FLE_DLL ~WorkspaceLoaderInterface ()=default
 Default virtual destructor.
 
virtual FLE_DLL Result load (ConstStringBuffer filePath)=0
 
virtual FLE_DLL Result load (ConstStringBuffer filePath, const Version &minimumVersion)=0
 
virtual FLE_DLL Result load (DynamicBufferInterface &inBuffer)=0
 
virtual FLE_DLL Result getVersion (Version &outVersion) const =0
 
virtual FLE_DLL Index getCameraCount () const =0
 
virtual FLE_DLL Index getSparsePointCloudCount () const =0
 
virtual FLE_DLL Index getStereoPointCloudCount () const =0
 
virtual FLE_DLL Index getStereoMeshCount () const =0
 
virtual FLE_DLL Index getStereoTexturedMeshCount () const =0
 
virtual FLE_DLL Index getBoundingBoxCount () const =0
 
virtual FLE_DLL Index getControlPointConstraintCount () const =0
 
virtual FLE_DLL Result getCamera (Index idx, CameraInterface &outCamera) const =0
 
virtual FLE_DLL Result getSparsePointCloud (Index idx, SparsePointCloudInterface &outSparsePointCloud) const =0
 
virtual FLE_DLL Result getStereoPointCloud (Index idx, StereoPointCloudInterface &outDensePointCloud) const =0
 
virtual FLE_DLL Result getStereoMesh (Index idx, StereoMeshInterface &outMesh) const =0
 
virtual FLE_DLL Result getStereoTexturedMesh (Index idx, StereoTexturedMeshInterface &outTexturedMesh) const =0
 
virtual FLE_DLL Result getBoundingBox (Index idx, BoundingBoxInterface &outBoundingBox) const =0
 
virtual FLE_DLL Result getControlPointConstraint (Index idx, ControlPointConstraintInterface &outControlPointConstraint) const =0
 

Detailed Description

Utility class to load objects from ".3dk" binary files that can be saved using the WorkspaceSaverInterface.

Constructor & Destructor Documentation

◆ ~WorkspaceLoaderInterface()

virtual FLE_DLL FlowEngine::WorkspaceLoaderInterface::~WorkspaceLoaderInterface ( )
virtualdefault

Default virtual destructor.

Member Function Documentation

◆ getBoundingBox()

virtual FLE_DLL Result FlowEngine::WorkspaceLoaderInterface::getBoundingBox ( Index  idx,
BoundingBoxInterface outBoundingBox 
) const
pure virtual

Retrieve the bounding box object at the specified position.

Parameters
[in]idxbounding box element number. Must be less than WorkspaceLoaderInterface::getBoundingBoxCount.
[in,out]outBoundingBoxa bounding box object to be filled with the loaded information.
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()

virtual FLE_DLL Result FlowEngine::WorkspaceLoaderInterface::getCamera ( Index  idx,
CameraInterface outCamera 
) const
pure virtual

Retrieve the camera object at the specified position.

Parameters
[in]idxcamera element number. Must be less than WorkspaceLoaderInterface::getCameraCount.
[in,out]outCameraa camera object to be filled with the loaded information.
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()

virtual FLE_DLL Result FlowEngine::WorkspaceLoaderInterface::getControlPointConstraint ( Index  idx,
ControlPointConstraintInterface outControlPointConstraint 
) const
pure virtual

Retrieve the control point constraint object at the specified position.

Parameters
[in]idxbounding box element number. Must be less than WorkspaceLoaderInterface::getControlPointConstraintCount.
[in,out]outControlPointConstrainta ControlPointConstraintInterface object to be filled with the loaded information.
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()

virtual FLE_DLL Result FlowEngine::WorkspaceLoaderInterface::getSparsePointCloud ( Index  idx,
SparsePointCloudInterface outSparsePointCloud 
) const
pure virtual

Retrieve the sparse point cloud object at the specified position.

Parameters
[in]idxsparse point cloud element number. Must be less than WorkspaceLoaderInterface::getSparsePointCloudCount.
[in,out]outSparsePointClouda sparse point cloud object to be filled with the loaded information.
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()

virtual FLE_DLL Result FlowEngine::WorkspaceLoaderInterface::getStereoMesh ( Index  idx,
StereoMeshInterface outMesh 
) const
pure virtual

Retrieve the stereo mesh object at the specified position.

Parameters
[in]idxmesh element number. Must be less than WorkspaceLoaderInterface::getStereoMeshesCount.
[in,out]outMesha 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()

virtual FLE_DLL Result FlowEngine::WorkspaceLoaderInterface::getStereoPointCloud ( Index  idx,
StereoPointCloudInterface outDensePointCloud 
) const
pure virtual

Retrieve the stereo point cloud object at the specified position.

Parameters
[in]idxstereo point cloud element number. Must be less than WorkspaceLoaderInterface::getStereoPointCloudCount.
[in,out]outDensePointClouda stereo point cloud object to be filled with the loaded information.
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()

virtual FLE_DLL Result FlowEngine::WorkspaceLoaderInterface::getStereoTexturedMesh ( Index  idx,
StereoTexturedMeshInterface outTexturedMesh 
) const
pure virtual

Retrieve the stereo textured mesh object at the specified position.

Parameters
[in]idxtextured mesh element number. Must be less than WorkspaceLoaderInterface::getStereoTexturedMeshCount.
[in,out]outTexturedMesha stereo textured mesh object to be filled with the loaded information.
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]outVersionthe 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]

virtual FLE_DLL Result FlowEngine::WorkspaceLoaderInterface::load ( ConstStringBuffer  filePath)
pure virtual

Load objects from a file in 3DK format.

Parameters
[in]filePathstring buffer containing the UTF-8 encoded path to the file.
Returns
One of the following result codes:

◆ load() [2/3]

virtual FLE_DLL Result FlowEngine::WorkspaceLoaderInterface::load ( ConstStringBuffer  filePath,
const Version minimumVersion 
)
pure virtual

Load objects from a file in 3DK format if the file version is older than the specified minium version.

Parameters
[in]filePathstring buffer containing the UTF-8 encoded path to the file.
[in]minimumVersionthe 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]

virtual FLE_DLL Result FlowEngine::WorkspaceLoaderInterface::load ( DynamicBufferInterface inBuffer)
pure virtual

Load objects from a dynamic buffer in 3DK format.

Parameters
[in]inBuffera dynamic buffer containing the 3DK file.
Returns
One of the following result codes: