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
HalfEdgeMesh< Vec > mesh
boost::optional< MapT > getDenseAttributeMap(const std::string &name)
getDenseAttributeMap Reads a dense attribute map from the persistence layer where the attribute group...
boost::optional< HalfEdgeMesh< BaseVec > > getMesh()
Reads a HalfEdgeMesh from the persistence layer.
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 ...
Interface for triangle-meshes with adjacency information.
Definition: BaseMesh.hpp:140
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. ...
boost::optional< MapT > getAttributeMap(const std::string &name)
getAttributeMap Reads a general attribute map from the persistence layer where the attribute group is...
Half-edge data structure implementing the BaseMesh interface.
Interface class for io classes that support annotation channels organized in different groups...
bool addAttributeMap(const MapT &map, const std::string &name)
addAttributeMap Stores a general attribute map to the persistence layer where the attribute group is ...
bool addMesh(const HalfEdgeMesh< BaseVec > &hem)
Adds a HalfEdgeMesh to the persistence layer.


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