ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
LineSetIO.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <LineSet.h>
11 
12 #include <string>
13 
14 #include "CV_io.h"
15 
16 namespace cloudViewer {
17 namespace io {
18 
21 std::shared_ptr<geometry::LineSet> CV_IO_LIB_API
22 CreateLineSetFromFile(const std::string &filename,
23  const std::string &format = "auto",
24  bool print_progress = false);
25 
29 bool CV_IO_LIB_API ReadLineSet(const std::string &filename,
30  geometry::LineSet &lineset,
31  const std::string &format = "auto",
32  bool print_progress = false);
33 
39 bool CV_IO_LIB_API WriteLineSet(const std::string &filename,
40  const geometry::LineSet &lineset,
41  bool write_ascii = false,
42  bool compressed = false,
43  bool print_progress = false);
44 
45 bool CV_IO_LIB_API ReadLineSetFromPLY(const std::string &filename,
46  geometry::LineSet &lineset,
47  bool print_progress = false);
48 
49 bool CV_IO_LIB_API WriteLineSetToPLY(const std::string &filename,
50  const geometry::LineSet &lineset,
51  bool write_ascii = false,
52  bool compressed = false,
53  bool print_progress = false);
54 
55 } // namespace io
56 } // namespace cloudViewer
IsAscii write_ascii
Compressed compressed
std::string filename
#define CV_IO_LIB_API
Definition: CV_io.h:15
filament::Texture::InternalFormat format
LineSet define a sets of lines in 3D. A typical application is to display the point cloud corresponde...
Definition: LineSet.h:29
bool WriteLineSetToPLY(const std::string &filename, const geometry::LineSet &lineset, bool write_ascii=false, bool compressed=false, bool print_progress=false)
std::shared_ptr< geometry::LineSet > CreateLineSetFromFile(const std::string &filename, const std::string &format="auto", bool print_progress=false)
bool WriteLineSet(const std::string &filename, const geometry::LineSet &lineset, bool write_ascii=false, bool compressed=false, bool print_progress=false)
bool ReadLineSet(const std::string &filename, geometry::LineSet &lineset, const std::string &format="auto", bool print_progress=false)
bool ReadLineSetFromPLY(const std::string &filename, geometry::LineSet &lineset, bool print_progress=false)
Generic file read and write utility for python interface.