Public Member Functions | Public Attributes | List of all members
lvr2::MaterializerResult< BaseVecT > Struct Template Reference

Result struct for the materializer. More...

#include <FinalizeAlgorithms.hpp>

Public Member Functions

 MaterializerResult (DenseClusterMap< Material > clusterMaterials)
 Constructor. More...
 
 MaterializerResult (DenseClusterMap< Material > clusterMaterials, StableVector< TextureHandle, Texture > textures, SparseVertexMap< ClusterTexCoordMapping > vertexTexCoords, std::unordered_map< BaseVecT, std::vector< float >> keypoints)
 Constructor. More...
 

Public Attributes

DenseClusterMap< Materialm_clusterMaterials
 Materials for each cluster. More...
 
boost::optional< std::unordered_map< BaseVecT, std::vector< float > > > m_keypoints
 Keypoints. More...
 
boost::optional< StableVector< TextureHandle, Texture > > m_textures
 A stable vector of textures. each texture is identified by a tex.-handle. More...
 
boost::optional< SparseVertexMap< ClusterTexCoordMapping > > m_vertexTexCoords
 Cluster texture coordinates for each vertex. More...
 

Detailed Description

template<typename BaseVecT>
struct lvr2::MaterializerResult< BaseVecT >

Result struct for the materializer.

This struct is a wrapper type for the result of the materializer. It contains a map from cluster to material and may contain optional texture data

Definition at line 61 of file FinalizeAlgorithms.hpp.

Constructor & Destructor Documentation

◆ MaterializerResult() [1/2]

template<typename BaseVecT>
lvr2::MaterializerResult< BaseVecT >::MaterializerResult ( DenseClusterMap< Material clusterMaterials)
inline

Constructor.

Parameters
clusterMaterialsThe cluster material map

Definition at line 92 of file Materializer.hpp.

◆ MaterializerResult() [2/2]

template<typename BaseVecT>
lvr2::MaterializerResult< BaseVecT >::MaterializerResult ( DenseClusterMap< Material clusterMaterials,
StableVector< TextureHandle, Texture textures,
SparseVertexMap< ClusterTexCoordMapping vertexTexCoords,
std::unordered_map< BaseVecT, std::vector< float >>  keypoints 
)
inline

Constructor.

Parameters
clusterMaterialsThe cluster material map
texturesThe stable vector of textures
vertexTexCoordsThe vertex texture coordinates
keypointsThe keypoints

Definition at line 107 of file Materializer.hpp.

Member Data Documentation

◆ m_clusterMaterials

template<typename BaseVecT>
DenseClusterMap<Material> lvr2::MaterializerResult< BaseVecT >::m_clusterMaterials

Materials for each cluster.

Definition at line 76 of file Materializer.hpp.

◆ m_keypoints

template<typename BaseVecT>
boost::optional<std::unordered_map<BaseVecT, std::vector<float> > > lvr2::MaterializerResult< BaseVecT >::m_keypoints

Keypoints.

Definition at line 85 of file Materializer.hpp.

◆ m_textures

template<typename BaseVecT>
boost::optional<StableVector<TextureHandle, Texture> > lvr2::MaterializerResult< BaseVecT >::m_textures

A stable vector of textures. each texture is identified by a tex.-handle.

Definition at line 79 of file Materializer.hpp.

◆ m_vertexTexCoords

template<typename BaseVecT>
boost::optional<SparseVertexMap<ClusterTexCoordMapping> > lvr2::MaterializerResult< BaseVecT >::m_vertexTexCoords

Cluster texture coordinates for each vertex.

Definition at line 82 of file Materializer.hpp.


The documentation for this struct was generated from the following files:


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