supereight
octree_io.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2016-2019 Emanuele Vespa
3  * SPDX-FileCopyrightText: 2018-2021 Smart Robotics Lab, Imperial College London, Technical University of Munich
4  * SPDX-FileCopyrightText: 2019-2021 Nils Funk
5  * SPDX-FileCopyrightText: 2020-2021 Sotiris Papatheodorou
6  * SPDX-License-Identifier: BSD-3-Clause
7  */
8 
9 #ifndef SE_OCTREE_IO_HPP
10 #define SE_OCTREE_IO_HPP
11 
12 #include <fstream>
13 #include <iostream>
14 #include <sstream>
15 
16 #include "se/map/octree/octree.hpp"
17 
18 namespace se {
19 namespace io {
20 
33 template<typename GetValueF>
34 bool save_3d_slice_vtk(const std::string& filename,
35  const Eigen::Vector3i& lower_coord,
36  const Eigen::Vector3i& upper_coord,
37  GetValueF& get_value);
38 
39 } // namespace io
40 } // namespace se
41 
42 
43 
44 #include "impl/octree_io_impl.hpp"
45 
46 
47 
48 #endif // SE_OCTREE_IO_HPP
bool save_3d_slice_vtk(const std::string &filename, const Eigen::Vector3i &lower_coord, const Eigen::Vector3i &upper_coord, GetValueF &get_value)
Generate a 3D slice of the octree.
Helper wrapper to allocate and de-allocate octants in the octree.
Definition: colour_utils.hpp:17