AttributeMeshIOBase.hpp
Go to the documentation of this file.
1 
28 #ifndef LAS_VEGAS_MESHIOINTERFACE_H
29 #define LAS_VEGAS_MESHIOINTERFACE_H
30 
31 #include <boost/shared_ptr.hpp>
32 #include <boost/shared_array.hpp>
36 #include "lvr2/geometry/Normal.hpp"
39 
42 
43 namespace lvr2{
44 
46 
48 {
49  public:
50 
56  bool addMesh(const HalfEdgeMesh<BaseVec>& hem);
57 
62  boost::optional<HalfEdgeMesh<BaseVec>> getMesh();
63 
73  template<typename MapT, typename BaseVecT>
74  bool addDenseAttributeMap(const BaseMesh<BaseVecT>& mesh, const MapT& map, const std::string& name);
75 
84  template<typename MapT>
85  bool addDenseAttributeMap(const MapT& map, const std::string& name);
86 
96  template <typename MapT>
97  boost::optional<MapT> getDenseAttributeMap(const std::string& name);
98 
108  template<typename MapT>
109  bool addAttributeMap(const MapT& map, const std::string& name);
110 
122  template<typename MapT>
123  boost::optional<MapT> getAttributeMap(const std::string& name);
124 
125 };
126 
127 }
128 
129 #include "AttributeMeshIOBase.tcc"
130 
131 #endif //LAS_VEGAS_MESHIOINTERFACE_H
Handles.hpp
BaseVector.hpp
BaseBuffer.hpp
lvr2::AttributeMeshIOBase::getDenseAttributeMap
boost::optional< MapT > getDenseAttributeMap(const std::string &name)
getDenseAttributeMap Reads a dense attribute map from the persistence layer where the attribute group...
lvr2::BaseVector< float >
lvr2::GroupedChannelIO
Interface class for io classes that support annotation channels organized in different groups.
Definition: descriptions/GroupedChannelIO.hpp:42
lvr2::AttributeMeshIOBase::addDenseAttributeMap
bool addDenseAttributeMap(const BaseMesh< BaseVecT > &mesh, const MapT &map, const std::string &name)
addDenseAttributeMap Stores a dense attribute map to the persistence layer where the attribute group ...
GroupedChannelIO.hpp
AttrMaps.hpp
MeshGeometryIO.hpp
HalfEdgeMesh.hpp
lvr2::MeshGeometryIO
Definition: MeshGeometryIO.hpp:37
lvr2::map
OutMapT< typename InMapT::HandleType, std::result_of_t< MapF(typename InMapT::ValueType)> > map(const InMapT &mapIn, MapF func)
Calls func for each value of the given map and save the result in the output map.
lvr2::AttributeMeshIOBase
Definition: AttributeMeshIOBase.hpp:47
lvr2::AttributeMeshIOBase::addAttributeMap
bool addAttributeMap(const MapT &map, const std::string &name)
addAttributeMap Stores a general attribute map to the persistence layer where the attribute group is ...
lvr2::AttributeMeshIOBase::addMesh
bool addMesh(const HalfEdgeMesh< BaseVec > &hem)
Adds a HalfEdgeMesh to the persistence layer.
Definition: AttributeMeshIOBase.cpp:40
lvr2::AttributeMeshIOBase::getMesh
boost::optional< HalfEdgeMesh< BaseVec > > getMesh()
Reads a HalfEdgeMesh from the persistence layer.
Definition: AttributeMeshIOBase.cpp:69
lvr2
Definition: BaseBufferManipulators.hpp:39
lvr2::AttributeMeshIOBase::getAttributeMap
boost::optional< MapT > getAttributeMap(const std::string &name)
getAttributeMap Reads a general attribute map from the persistence layer where the attribute group is...
lvr2::BaseMesh
Interface for triangle-meshes with adjacency information.
Definition: BaseMesh.hpp:140
mesh
HalfEdgeMesh< Vec > mesh
Definition: src/tools/lvr2_gs_reconstruction/Main.cpp:26
Normal.hpp
lvr2::HalfEdgeMesh
Half-edge data structure implementing the BaseMesh interface.
Definition: HalfEdgeMesh.hpp:70


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