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

Mapping of clusters to texture coordinates for a single vertex. More...

#include <ClusterTexCoordMapping.hpp>

Public Member Functions

 ClusterTexCoordMapping ()
 Constructor. More...
 
TexCoords getTexCoords (ClusterHandle clusterH) const
 Returns the texture coordinates to a given cluster handle. More...
 
void push (ClusterHandle handle, TexCoords tex)
 Adds an entry to the mapping. More...
 

Private Attributes

size_t m_len
 The number of stored pairs. More...
 
array< boost::optional< pair< ClusterHandle, TexCoords > >, 100 > m_mapping
 The mapping of cluster handles to texture coordinates. More...
 

Detailed Description

Mapping of clusters to texture coordinates for a single vertex.

Each vertex can be contained in several clusters, for each cluster there will be one entry in the array. Each entry is a pair that consists of a cluster handle and texture coordinates. This implementation assumes that a vertex is not contained in more than 100 clusters.

Definition at line 76 of file ClusterTexCoordMapping.hpp.

Constructor & Destructor Documentation

◆ ClusterTexCoordMapping()

lvr2::ClusterTexCoordMapping::ClusterTexCoordMapping ( )
inline

Constructor.

Definition at line 88 of file ClusterTexCoordMapping.hpp.

Member Function Documentation

◆ getTexCoords()

TexCoords lvr2::ClusterTexCoordMapping::getTexCoords ( ClusterHandle  clusterH) const
inline

Returns the texture coordinates to a given cluster handle.

Parameters
clusterHThe cluster handle
Returns
The texture coordinates

Definition at line 116 of file ClusterTexCoordMapping.hpp.

◆ push()

void lvr2::ClusterTexCoordMapping::push ( ClusterHandle  handle,
TexCoords  tex 
)
inline

Adds an entry to the mapping.

Parameters
handleThe cluster handle
texThe texture coordinates

Definition at line 96 of file ClusterTexCoordMapping.hpp.

Member Data Documentation

◆ m_len

size_t lvr2::ClusterTexCoordMapping::m_len
private

The number of stored pairs.

Definition at line 82 of file ClusterTexCoordMapping.hpp.

◆ m_mapping

array<boost::optional<pair<ClusterHandle, TexCoords> >, 100> lvr2::ClusterTexCoordMapping::m_mapping
private

The mapping of cluster handles to texture coordinates.

Definition at line 80 of file ClusterTexCoordMapping.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 Mon Feb 28 2022 22:46:11