Public Member Functions | Public Attributes | List of all members
lvr2::MaterializerResult Struct 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

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]

lvr2::MaterializerResult::MaterializerResult ( DenseClusterMap< Material clusterMaterials)
inline

Constructor.

Parameters
clusterMaterialsThe cluster material map

Definition at line 92 of file Materializer.hpp.

◆ MaterializerResult() [2/2]

lvr2::MaterializerResult::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

DenseClusterMap<Material> lvr2::MaterializerResult::m_clusterMaterials

Materials for each cluster.

Definition at line 76 of file Materializer.hpp.

◆ m_keypoints

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

Keypoints.

Definition at line 85 of file Materializer.hpp.

◆ m_textures

boost::optional<StableVector<TextureHandle, Texture> > lvr2::MaterializerResult::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

boost::optional<SparseVertexMap<ClusterTexCoordMapping> > lvr2::MaterializerResult::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 Wed Mar 2 2022 00:37:27