Public Member Functions | Private Member Functions | Private Attributes | List of all members
lvr2::ClusterPainter Class Reference

Algorithm which generates the same color for all vertices, which are in the same cluster. More...

#include <ClusterPainter.hpp>

Public Member Functions

 ClusterPainter (const ClusterBiMap< FaceHandle > &clusterBiMap)
 
template<typename BaseVecT >
DenseClusterMap< Rgb8Colorsimpsons (const BaseMesh< BaseVecT > &mesh) const
 Assign a pseudo-color to each cluster. More...
 

Private Member Functions

Rgb8Color getSimpsonColorForIdx (size_t idx) const
 

Private Attributes

ClusterBiMap< FaceHandlem_clusterBiMap
 

Detailed Description

Algorithm which generates the same color for all vertices, which are in the same cluster.

Definition at line 55 of file ClusterPainter.hpp.

Constructor & Destructor Documentation

◆ ClusterPainter()

lvr2::ClusterPainter::ClusterPainter ( const ClusterBiMap< FaceHandle > &  clusterBiMap)
inline

Definition at line 58 of file ClusterPainter.hpp.

Member Function Documentation

◆ getSimpsonColorForIdx()

Rgb8Color lvr2::ClusterPainter::getSimpsonColorForIdx ( size_t  idx) const
inlineprivate

Definition at line 70 of file ClusterPainter.hpp.

◆ simpsons()

template<typename BaseVecT >
DenseClusterMap<Rgb8Color> lvr2::ClusterPainter::simpsons ( const BaseMesh< BaseVecT > &  mesh) const

Assign a pseudo-color to each cluster.

The color is deterministically determined by the cluster id.

Member Data Documentation

◆ m_clusterBiMap

ClusterBiMap<FaceHandle> lvr2::ClusterPainter::m_clusterBiMap
private

Definition at line 69 of file ClusterPainter.hpp.


The documentation for this class was generated from the following file:


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