aimstil  5.0.5
til::detail::AddNormalAttribute< TMesh, TParam > Class Template Reference

This class enhance a mesh class with a normal vector attribute. More...

#include <til/til_declarations.h>

Inheritance diagram for til::detail::AddNormalAttribute< TMesh, TParam >:
Collaboration diagram for til::detail::AddNormalAttribute< TMesh, TParam >:

Public Types

typedef TParam::Normal Normal
 
typedef TParam::NormalCollaction NormalCollection
 

Public Member Functions

 AddNormalAttribute ()
 
 AddNormalAttribute (const TMesh &mesh)
 
 AddNormalAttribute (const TMesh &mesh, shared_ptr< NormalCollection > &ni)
 
const NormalCollectiongetNormals () const
 
NormalCollectiongetNormals ()
 

Detailed Description

template<class TMesh, typename TParam = DefaultAttributes<TMesh>>
class til::detail::AddNormalAttribute< TMesh, TParam >

This class enhance a mesh class with a normal vector attribute.

The first template argument is the mesh class we want to upgrade. The second template argument is the parameters for this upgrade, giving for exemple the type of the normal vectors.

Definition at line 44 of file til_declarations.h.

Member Typedef Documentation

◆ Normal

template<class TMesh , typename TParam = DefaultAttributes<TMesh>>
typedef TParam::Normal til::detail::AddNormalAttribute< TMesh, TParam >::Normal

Definition at line 286 of file Mesh.h.

◆ NormalCollection

template<class TMesh , typename TParam = DefaultAttributes<TMesh>>
typedef TParam::NormalCollaction til::detail::AddNormalAttribute< TMesh, TParam >::NormalCollection

Definition at line 287 of file Mesh.h.

Constructor & Destructor Documentation

◆ AddNormalAttribute() [1/3]

template<class TMesh , typename TParam = DefaultAttributes<TMesh>>
til::detail::AddNormalAttribute< TMesh, TParam >::AddNormalAttribute ( )
inline

Definition at line 291 of file Mesh.h.

◆ AddNormalAttribute() [2/3]

template<class TMesh , typename TParam = DefaultAttributes<TMesh>>
til::detail::AddNormalAttribute< TMesh, TParam >::AddNormalAttribute ( const TMesh &  mesh)
inlineexplicit

Definition at line 297 of file Mesh.h.

◆ AddNormalAttribute() [3/3]

template<class TMesh , typename TParam = DefaultAttributes<TMesh>>
til::detail::AddNormalAttribute< TMesh, TParam >::AddNormalAttribute ( const TMesh &  mesh,
shared_ptr< NormalCollection > &  ni 
)
inline

Definition at line 298 of file Mesh.h.

Member Function Documentation

◆ getNormals() [1/2]

template<class TMesh , typename TParam = DefaultAttributes<TMesh>>
const NormalCollection& til::detail::AddNormalAttribute< TMesh, TParam >::getNormals ( ) const
inline

Definition at line 303 of file Mesh.h.

◆ getNormals() [2/2]

template<class TMesh , typename TParam = DefaultAttributes<TMesh>>
NormalCollection& til::detail::AddNormalAttribute< TMesh, TParam >::getNormals ( )
inline

Definition at line 304 of file Mesh.h.


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