FlowEngine 7.517
Photogrammetry Software Development Kit
Loading...
Searching...
No Matches
WorkspaceLoaderInterface.h
Go to the documentation of this file.
1/*
2 *
3 * C@@o ____ _____ __ _
4 * oC8@@@@@@@o |___ \| __ \ / _| |
5 * o@@@@@@@@@@@@O __) | | | | |_| | _____ __
6 * O@O 8@@@@@@@@@O |__ <| | | | _| |/ _ \ \ /\ / /
7 * o@@@@@@@O OOOOOCo ___) | |__| | | | | (_) \ V V /
8 * C@@@@@@@@@@@@Oo |____/|_____/|_| |_|\___/ \_/\_/
9 * o8@@@@@@@@@@@@@@@@8OOCCCC
10 * oO@@@@@@@@@@@@@@@@@@@o 3Dflow s.r.l. - www.3dflow.net
11 * oO8@@@@@@@@@@@@o Copyright 2022
12 * oO88@@@@@@@@8OCo All Rights Reserved
13 * O@@@@@@@@@@@@@@@@@@@@@@@@@8OCCoooooooCCo
14 * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@O
15 * @@@Oo oO8@@@@@@@@@@@@@@@@8
16 *
17 */
18
19#ifndef FLOWENGINEWORKSPACELOADER_H
20#define FLOWENGINEWORKSPACELOADER_H
21
22#pragma once
23
24#include "CommonDef.h"
25
26#include "CameraInterface.h"
29#include "StereoMeshInterface.h"
33
34namespace FlowEngine
35{
36 class DynamicBufferInterface;
37
40 {
41 public:
42
44 FLE_DLL virtual ~WorkspaceLoaderInterface() = default;
45
46 public:
47
56 FLE_DLL virtual Result load( ConstStringBuffer filePath ) = 0;
57
65 FLE_DLL virtual Result load( ConstStringBuffer filePath, const Version &minimumVersion ) = 0;
66
75 FLE_DLL virtual Result load( DynamicBufferInterface &inBuffer ) = 0;
76
77 public:
78
85 FLE_DLL virtual Result getVersion( Version &outVersion ) const = 0;
86
87 public:
88
90 FLE_DLL virtual Index getCameraCount() const = 0;
91
93 FLE_DLL virtual Index getSparsePointCloudCount() const = 0;
94
96 FLE_DLL virtual Index getStereoPointCloudCount() const = 0;
97
99 FLE_DLL virtual Index getStereoMeshCount() const = 0;
100
102 FLE_DLL virtual Index getStereoTexturedMeshCount() const = 0;
103
105 FLE_DLL virtual Index getBoundingBoxCount() const = 0;
106
108 FLE_DLL virtual Index getControlPointConstraintCount() const = 0;
109
110 public:
111
118 FLE_DLL virtual Result getCamera( Index idx, CameraInterface &outCamera ) const = 0;
119
126 FLE_DLL virtual Result getSparsePointCloud( Index idx, SparsePointCloudInterface &outSparsePointCloud ) const = 0;
127
134 FLE_DLL virtual Result getStereoPointCloud( Index idx, StereoPointCloudInterface &outDensePointCloud ) const = 0;
135
142 FLE_DLL virtual Result getStereoMesh( Index idx, StereoMeshInterface &outMesh ) const = 0;
143
150 FLE_DLL virtual Result getStereoTexturedMesh( Index idx, StereoTexturedMeshInterface &outTexturedMesh ) const = 0;
151
158 FLE_DLL virtual Result getBoundingBox( Index idx, BoundingBoxInterface &outBoundingBox ) const = 0;
159
166 FLE_DLL virtual Result getControlPointConstraint( Index idx, ControlPointConstraintInterface &outControlPointConstraint ) const = 0;
167 };
168
172
176}
177
178#endif
#define FLOWENGINE_FACTORY
Definition: CommonDef.h:32
An oriented bounding box.
Definition: BoundingBoxInterface.h:35
Stores a camera object to feed the Structure from Motion parameters.
Definition: CameraInterface.h:38
Stores a ground control point constraint with image projections and 3D constraint.
Definition: ControlPointConstraintInterface.h:34
Dynamic memory buffer utility used to marshall variable amount of data.
Definition: DynamicBufferInterface.h:30
Stores a PointCloud object.
Definition: SparsePointCloudInterface.h:36
Stores a simple stereo mesh object for the FlowEngine interface.
Definition: StereoMeshInterface.h:38
Stores a simple Dense Point Cloud object for the FlowEngine interface.
Definition: StereoPointCloudInterface.h:38
Stores a simple textured mesh object for the FlowEngine interface.
Definition: StereoTexturedMeshInterface.h:36
Utility class to load objects from ".3dk" binary files that can be saved using the WorkspaceSaverInte...
Definition: WorkspaceLoaderInterface.h:40
virtual FLE_DLL Result getControlPointConstraint(Index idx, ControlPointConstraintInterface &outControlPointConstraint) const =0
virtual FLE_DLL Result getBoundingBox(Index idx, BoundingBoxInterface &outBoundingBox) const =0
virtual FLE_DLL Index getStereoMeshCount() const =0
virtual FLE_DLL Result getSparsePointCloud(Index idx, SparsePointCloudInterface &outSparsePointCloud) const =0
virtual FLE_DLL Result getStereoMesh(Index idx, StereoMeshInterface &outMesh) const =0
virtual FLE_DLL Index getStereoTexturedMeshCount() const =0
virtual FLE_DLL ~WorkspaceLoaderInterface()=default
Default virtual destructor.
virtual FLE_DLL Result getVersion(Version &outVersion) const =0
virtual FLE_DLL Index getBoundingBoxCount() const =0
virtual FLE_DLL Result load(DynamicBufferInterface &inBuffer)=0
virtual FLE_DLL Index getSparsePointCloudCount() const =0
virtual FLE_DLL Result load(ConstStringBuffer filePath)=0
virtual FLE_DLL Result load(ConstStringBuffer filePath, const Version &minimumVersion)=0
virtual FLE_DLL Index getCameraCount() const =0
virtual FLE_DLL Index getStereoPointCloudCount() const =0
virtual FLE_DLL Result getStereoTexturedMesh(Index idx, StereoTexturedMeshInterface &outTexturedMesh) const =0
virtual FLE_DLL Index getControlPointConstraintCount() const =0
virtual FLE_DLL Result getStereoPointCloud(Index idx, StereoPointCloudInterface &outDensePointCloud) const =0
virtual FLE_DLL Result getCamera(Index idx, CameraInterface &outCamera) const =0
Definition: BoundingBoxInterface.cpp:26
std::ptrdiff_t Index
Index type.
Definition: CommonDef.h:100
void DestroyWorkspaceLoader(WorkspaceLoaderInterface *workspaceLoader)
Definition: WorkspaceLoaderInterface.cpp:32
WorkspaceLoaderInterface * CreateWorkspaceLoader()
Definition: WorkspaceLoaderInterface.cpp:27
Result
Enumerates possible results generated by FlowEngine.
Definition: CommonDef.h:45
Specialization for a const buffer characters.
Definition: CommonDef.h:296
Represents a version in the major.minor categories format.
Definition: CommonDef.h:347