descriptions/ScanPositionIO.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #ifndef LVR2_IO_HDF5_SCANPOSITIONIO_HPP
4 #define LVR2_IO_HDF5_SCANPOSITIONIO_HPP
5 
7 
8 #include <boost/optional.hpp>
9 
10 // Dependencies
11 #include "ArrayIO.hpp"
13 #include "MatrixIO.hpp"
14 #include "ScanCameraIO.hpp"
15 #include "ScanIO.hpp"
16 
17 namespace lvr2
18 {
19 
48 template <typename FeatureBase>
50 {
51  public:
52  void saveScanPosition(const size_t& scanPosNo, const ScanPositionPtr& scanPositionPtr);
53  // void save(
54  // const std::string group&,
55  // const ScanPositionPtr& scanPositionPtr);
56 
57  ScanPositionPtr loadScanPosition(const size_t& scanPosNo);
58  //ScanPositionPtr load(const std::string& group, const std::string& container);
59 
60  protected:
61  bool isScanPosition(const std::string& group);
62 
63  FeatureBase* m_featureBase = static_cast<FeatureBase*>(this);
64  // dependencies
71 
72  static constexpr const char* ID = "ScanPositionIO";
73  static constexpr const char* OBJID = "ScanPosition";
74 };
75 
76 template <typename FeatureBase>
78 {
79 
80  // DEPS
86  using deps = typename dep1::template Merge<dep2>::template Merge<dep3>::template Merge<
87  dep4>::template Merge<dep5>;
88 
89  // add the feature itself
90  using type = typename deps::template add_features<ScanPositionIO>::type;
91 };
92 
93 } // namespace lvr2
94 
95 #include "ScanPositionIO.tcc"
96 
97 #endif // LVR2_IO_HDF5_SCANPOSITIONIO_HPP
MatrixIO< FeatureBase > * m_matrixIO
bool isScanPosition(const std::string &group)
HyperspectralCameraIO< FeatureBase > * m_hyperspectralCameraIO
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 dep1::template Merge< dep2 >::template Merge< dep3 >::template Merge< dep4 >::template Merge< dep5 > deps
typename FeatureConstruct< ScanIO, FeatureBase >::type dep3
typename deps::template add_features< ScanPositionIO >::type type
static constexpr const char * OBJID
typename Derived::template add_features< Feature >::type type
ScanCameraIO< FeatureBase > * m_scanCameraIO
ScanPositionPtr loadScanPosition(const size_t &scanPosNo)
typename FeatureConstruct< HyperspectralCameraIO, FeatureBase >::type dep5
ArrayIO< FeatureBase > * m_arrayIO
typename FeatureConstruct< ArrayIO, FeatureBase >::type dep1
ScanIO< FeatureBase > * m_scanIO
void saveScanPosition(const size_t &scanPosNo, const ScanPositionPtr &scanPositionPtr)
static constexpr const char * ID
typename FeatureConstruct< ScanCameraIO, FeatureBase >::type dep4
std::shared_ptr< ScanPosition > ScanPositionPtr
Definition: ScanTypes.hpp:311
typename FeatureConstruct< MatrixIO, FeatureBase >::type dep2


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:09