MeshLib
 
Loading...
Searching...
No Matches
MRLinesLoad.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#include "MRIOFilters.h"
6#include "MRExpected.h"
7#include <filesystem>
8#include <istream>
9#include <string>
10
11namespace MR
12{
13
14namespace LinesLoad
15{
16
20
21MRMESH_API extern const IOFilters Filters;
22
24MRMESH_API Expected<Polyline3> fromMrLines( const std::filesystem::path& file, ProgressCallback callback = {} );
26
28MRMESH_API Expected<Polyline3> fromPts( const std::filesystem::path& file, ProgressCallback callback = {} );
29MRMESH_API Expected<Polyline3> fromPts( std::istream& in, ProgressCallback callback = {} );
30
32MRMESH_API Expected<Polyline3> fromAnySupportedFormat( const std::filesystem::path& file, ProgressCallback callback = {} );
34MRMESH_API Expected<Polyline3> fromAnySupportedFormat( std::istream& in, const std::string& extension, ProgressCallback callback = {} );
35
37
38} // namespace LinesLoad
39
40} // namespace MR
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:589
std::vector< IOFilter > IOFilters
Definition MRIOFilters.h:23
MRMESH_API Expected< Polyline3 > fromPts(const std::filesystem::path &file, ProgressCallback callback={})
loads from .pts file
MRMESH_API Expected< Polyline3 > fromAnySupportedFormat(const std::filesystem::path &file, ProgressCallback callback={})
detects the format from file extension and loads polyline from it
MRMESH_API Expected< Polyline3 > fromMrLines(const std::filesystem::path &file, ProgressCallback callback={})
loads from .mrlines file
MRMESH_API const IOFilters Filters
Definition MRCameraOrientationPlugin.h:7
tl::expected< T, E > Expected
Definition MRExpected.h:49