descriptions/ScanCameraIO.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #ifndef LVR2_IO_HDF5_SCANCAMERAIO_HPP
4 #define LVR2_IO_HDF5_SCANCAMERAIO_HPP
5 
6 #include "ScanImageIO.hpp"
8 
9 namespace lvr2
10 {
11 
12 template <typename FeatureBase>
14 {
15  public:
16  void saveScanCamera(const size_t& scanPosNo, const size_t& scanCamNo, ScanCameraPtr& camera);
17  //void save(const std::string& group, const std::string& container, ScanCameraPtr& buffer);
18  //ScanCameraPtr load(const std::string& group, const std::string& constainer);
19  ScanCameraPtr loadScanCamera(const size_t& scanPosNo, const size_t& scanCamNo);
20 
21  protected:
22  bool isScanCamera(const std::string& group);
23 
24  FeatureBase* m_featureBase = static_cast<FeatureBase*>(this);
25 
26  // dependencies
28 
29  static constexpr const char* ID = "ScanCameraIO";
30  static constexpr const char* OBJID = "ScanCamera";
31 };
32 
40 template <typename FeatureBase>
42 {
43 
44  // DEPS
46 
47  // ADD THE FEATURE ITSELF
48  using type = typename deps::template add_features<ScanCameraIO>::type;
49 };
50 
51 } // namespace lvr2
52 
53 #include "ScanCameraIO.tcc"
54 
55 #endif // LVR2_IO_HDF5_SCANCAMERAIO_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
ScanImageIO< FeatureBase > * m_scanImageIO
static constexpr const char * ID
ScanCameraPtr loadScanCamera(const size_t &scanPosNo, const size_t &scanCamNo)
typename Derived::template add_features< Feature >::type type
std::shared_ptr< ScanCamera > ScanCameraPtr
Definition: ScanTypes.hpp:153
static constexpr const char * OBJID
void saveScanCamera(const size_t &scanPosNo, const size_t &scanCamNo, ScanCameraPtr &camera)
typename deps::template add_features< ScanCameraIO >::type type
typename FeatureConstruct< ScanImageIO, FeatureBase >::type deps
bool isScanCamera(const std::string &group)


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