RieglProject.hpp
Go to the documentation of this file.
1 
28 #pragma once
29 
30 #include <ostream>
31 #include <string>
32 #include <vector>
33 
34 #define BOOST_FILESYSTEM_NO_DEPRECATED
35 #include <boost/filesystem.hpp>
36 #include <boost/system/error_code.hpp>
37 namespace fs = boost::filesystem;
38 
39 #include <boost/property_tree/ptree.hpp>
40 #include <boost/property_tree/xml_parser.hpp>
41 namespace pt = boost::property_tree;
42 
43 
44 
45 namespace lvr2
46 {
47 
48 class RieglProject {
49  public:
56  RieglProject(std::string dir, std::string input_cloud_format = "rxp");
57  bool parse_project(unsigned int start, unsigned int end);
58 
59  //private:
60  fs::path m_project_dir;
61  std::vector<ScanPosition> m_scan_positions;
62  void parse_scanpositions(pt::ptree project_ptree, unsigned int start, unsigned int end);
63  void parse_images_per_scanpos(ScanPosition &scanpos, pt::ptree scanpos_ptree, pt::ptree project_ptree);
64 
65  void parse_asciiclouds();
66 
67  std::string m_input_cloud_format;
68 };
69 
70 std::ostream& operator<<(std::ostream &lhs, const RieglProject &rhs);
71 std::ostream& operator<<(std::ostream &lhs, const ScanPosition &rhs);
72 
73 } // namespace lvr2
lvr2::RieglProject::RieglProject
RieglProject(std::string dir, std::string input_cloud_format="rxp")
Construct a new Riegl Project object.
Definition: RieglProject.cpp:69
lvr2::RieglProject::parse_asciiclouds
void parse_asciiclouds()
Definition: RieglProject.cpp:267
lvr2::RieglProject::parse_scanpositions
void parse_scanpositions(pt::ptree project_ptree, unsigned int start, unsigned int end)
Definition: RieglProject.cpp:79
lvr2::RieglProject
Definition: RieglProject.hpp:48
lvr2::operator<<
std::ostream & operator<<(std::ostream &os, const BaseVector< T > &v)
Definition: BaseVector.hpp:227
lvr2::RieglProject::parse_project
bool parse_project(unsigned int start, unsigned int end)
Definition: RieglProject.cpp:342
lvr2::ScanPosition
Definition: ScanTypes.hpp:276
lvr2::RieglProject::parse_images_per_scanpos
void parse_images_per_scanpos(ScanPosition &scanpos, pt::ptree scanpos_ptree, pt::ptree project_ptree)
Definition: RieglProject.cpp:174
lvr2::RieglProject::m_project_dir
fs::path m_project_dir
Definition: RieglProject.hpp:60
lvr2::RieglProject::m_input_cloud_format
std::string m_input_cloud_format
Definition: RieglProject.hpp:67
lvr2::RieglProject::m_scan_positions
std::vector< ScanPosition > m_scan_positions
Definition: RieglProject.hpp:61
lvr2
Definition: BaseBufferManipulators.hpp:39


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:24