descriptions/ScanImageIO.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #ifndef LVR2_IO_HDF5_SCANIMAGEIO_HPP
4 #define LVR2_IO_HDF5_SCANIMAGEIO_HPP
5 
6 #include "ImageIO.hpp"
7 #include "MatrixIO.hpp"
9 
10 namespace lvr2
11 {
12 
13 template <typename FeatureBase>
15 {
16  public:
17  void saveScanImage(const size_t& scanPos, const size_t& camNr, const size_t& imgNr, ScanImagePtr& buffer);
18  ScanImagePtr loadScanImage(const size_t& scanPos, const size_t& camNr, const size_t& imgNr);
19 
20  protected:
21  //bool isScanImage(const std::string& group);
22 
23  FeatureBase* m_featureBase = static_cast<FeatureBase*>(this);
24 
25  // dependencies
28 
29  static constexpr const char* ID = "ScanImageIO";
30  static constexpr const char* OBJID = "ScanImage";
31 };
32 
40 template <typename FeatureBase>
42 {
43  // DEPS
46  using deps = typename dep1::template Merge<dep2>;
47 
48  // ADD THE FEATURE ITSELF
49  using type = typename deps::template add_features<ScanImageIO>::type;
50 };
51 
52 } // namespace lvr2
53 
54 #include "ScanImageIO.tcc"
55 
56 #endif // LVR2_IO_HDF5_SCANIMAGEIO_HPP
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 deps::template add_features< ScanImageIO >::type type
typename FeatureConstruct< ImageIO, FeatureBase >::type dep1
static constexpr const char * OBJID
ScanImagePtr loadScanImage(const size_t &scanPos, const size_t &camNr, const size_t &imgNr)
typename Derived::template add_features< Feature >::type type
static constexpr const char * ID
void saveScanImage(const size_t &scanPos, const size_t &camNr, const size_t &imgNr, ScanImagePtr &buffer)
std::shared_ptr< ScanImage > ScanImagePtr
Definition: ScanTypes.hpp:127
MatrixIO< FeatureBase > * m_matrixIO
typename FeatureConstruct< MatrixIO, FeatureBase >::type dep2
ImageIO< FeatureBase > * m_imageIO


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