39 #ifndef PCL_OUTOFCORE_OCTREE_BASE_METADATA_H_
40 #define PCL_OUTOFCORE_OCTREE_BASE_METADATA_H_
42 #include <pcl/pcl_macros.h>
43 #include <pcl/outofcore/boost.h>
44 #include <pcl/outofcore/cJSON.h>
46 #include <pcl/common/eigen.h>
48 #include <pcl/outofcore/metadata.h>
115 getOutofcoreVersion ()
const;
118 setOutofcoreVersion (
const int version);
121 boost::filesystem::path
122 getMetadataFilename ()
const;
125 setMetadataFilename (
const boost::filesystem::path& path_to_metadata);
129 serializeMetadataToDisk ();
133 loadMetadataFromDisk ();
137 loadMetadataFromDisk (
const boost::filesystem::path& path_to_metadata);
144 setOctreeName (
const std::string& name_arg);
150 setPointType (
const std::string& point_type_arg);
152 virtual std::vector<boost::uint64_t>&
154 virtual std::vector<boost::uint64_t>
155 getLODPoints ()
const;
157 virtual boost::uint64_t
158 getLODPoints (
const boost::uint64_t& depth_index)
const;
162 setLODPoints (
const boost::uint64_t& depth);
165 setLODPoints (std::vector<boost::uint64_t>& lod_points_arg);
173 setLODPoints (
const boost::uint64_t& lod_index_arg,
const boost::uint64_t& num_points_arg,
const bool increment=
true);
177 setCoordinateSystem (
const std::string& coordinate_system);
180 getCoordinateSystem ()
const;
184 setDepth (
const boost::uint64_t& depth_arg);
185 virtual boost::uint64_t
218 writeMetadataString (std::vector<char>& buf);
223 #endif // PCL_OUTOFCORE_OCTREE_BASE_METADATA_H_
int outofcore_version_
Outofcore library version identifier; maps to JSON "version":int.
std::string coordinate_system_
Coordinate system; maps to JSON "coord_sys":string.
std::vector< boost::uint64_t > LOD_num_points_
Vector of number of points at each LOD.
boost::filesystem::path metadata_filename_
Metadata (JSON) file pathname (octree extension JSON file)
std::ostream & operator<<(std::ostream &os, const BivariatePolynomialT< real > &p)
std::string point_type_
Delineates the point types of the field; maps to JSON "pointtype":string:
Encapsulated class to read JSON metadata into memory, and write the JSON metadata associated with the...
std::string tree_name_
Name of the tree (which could be used, for example, as the name of a layer); maps to JSON "name":stri...
boost::uint64_t levels_of_depth_
Depth of the tree (which is the number of levels of depth); maps to JSON "lod":int.