descriptions/HyperspectralCameraIO.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #ifndef LVR2_IO_HDF5_HYPERSPECTRALCAMERAIO_HPP
4 #define LVR2_IO_HDF5_HYPERSPECTRALCAMERAIO_HPP
5 
9 
10 namespace lvr2
11 {
12 
13 template <typename FeatureBase>
15 {
16 public:
17  void saveHyperspectralCamera(const size_t& scanPosNo, const HyperspectralCameraPtr &buffer);
18  void saveHyperspectralCamera(std::string &group, const HyperspectralCameraPtr &buffer);
19 
20  HyperspectralCameraPtr loadHyperspectralCamera(const size_t& scanPosNo);
21 
22 protected:
23  bool isHyperspectralCamera(std::string &path);
24 
25  FeatureBase *m_featureBase = static_cast<FeatureBase *>(this);
26 
27  // dependencies
30 
31  static constexpr const char *ID = "HyperspectralCameraIO";
32  static constexpr const char *OBJID = "HyperspectralCamera";
33 };
34 
42 template <typename FeatureBase>
44 {
45 
46  // DEPS
49  using deps = typename dep1::template Merge<dep2>;
50 
51  // ADD THE FEATURE ITSELF
52  using type = typename deps::template add_features<HyperspectralCameraIO>::type;
53 };
54 
55 } // namespace lvr2
56 
57 #include "HyperspectralCameraIO.tcc"
58 
59 #endif // LVR2_IO_HDF5_HYPERSPECTRALCAMERAIO_HPP
HyperspectralCameraPtr loadHyperspectralCamera(const size_t &scanPosNo)
Manager Class for all FeatureBase components located in hdf5 directory.
Definition: FeatureBase.hpp:31
Helper class how to construct a IO feature with its dependencies.
Definition: FeatureBase.hpp:20
typename Derived::template add_features< Feature >::type type
typename FeatureConstruct< MatrixIO, FeatureBase >::type dep2
bool isHyperspectralCamera(std::string &path)
typename FeatureConstruct< ArrayIO, FeatureBase >::type dep1
std::shared_ptr< HyperspectralCamera > HyperspectralCameraPtr
Definition: ScanTypes.hpp:268
void saveHyperspectralCamera(const size_t &scanPosNo, const HyperspectralCameraPtr &buffer)
typename deps::template add_features< HyperspectralCameraIO >::type type


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 Mon Feb 28 2022 22:46:06