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
lvr2::FeatureConstruct
Helper class how to construct a IO feature with its dependencies.
Definition: FeatureBase.hpp:20
lvr2::ScanCameraIO
Definition: descriptions/ScanCameraIO.hpp:13
lvr2::ScanCameraIO::OBJID
static constexpr const char * OBJID
Definition: descriptions/ScanCameraIO.hpp:30
lvr2::ScanCameraIO::m_scanImageIO
ScanImageIO< FeatureBase > * m_scanImageIO
Definition: descriptions/ScanCameraIO.hpp:27
lvr2::ScanCameraIO::saveScanCamera
void saveScanCamera(const size_t &scanPosNo, const size_t &scanCamNo, ScanCameraPtr &camera)
lvr2::ScanCameraIO::isScanCamera
bool isScanCamera(const std::string &group)
lvr2::ScanCameraIO::m_featureBase
FeatureBase * m_featureBase
Definition: descriptions/ScanCameraIO.hpp:24
ScanTypes.hpp
lvr2::FeatureConstruct< ScanCameraIO, FeatureBase >::deps
typename FeatureConstruct< ScanImageIO, FeatureBase >::type deps
Definition: descriptions/ScanCameraIO.hpp:45
lvr2::ScanImageIO
Definition: descriptions/ScanImageIO.hpp:14
ScanImageIO.hpp
lvr2::FeatureConstruct::type
typename Derived::template add_features< Feature >::type type
Definition: FeatureBase.hpp:151
lvr2
Definition: BaseBufferManipulators.hpp:39
lvr2::ScanCameraIO::ID
static constexpr const char * ID
Definition: descriptions/ScanCameraIO.hpp:29
lvr2::FeatureConstruct< ScanCameraIO, FeatureBase >::type
typename deps::template add_features< ScanCameraIO >::type type
Definition: descriptions/ScanCameraIO.hpp:48
lvr2::FeatureBase
Manager Class for all FeatureBase components located in hdf5 directory.
Definition: FeatureBase.hpp:31
lvr2::ScanCameraIO::loadScanCamera
ScanCameraPtr loadScanCamera(const size_t &scanPosNo, const size_t &scanCamNo)
lvr2::ScanCameraPtr
std::shared_ptr< ScanCamera > ScanCameraPtr
Definition: ScanTypes.hpp:153


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 Wed Mar 2 2022 00:37:24