LibCarna Version 3.4.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
LibCarna::helpers::details::VolumeGridHelper::TextureManager< TextureFactory > Class Template Reference

Provides mapping base::VolumeSegment to base::ManagedTexture3D objects in a caching manner. Uses TextureFactory to create new base::ManagedTexture3D instances when cache entry does not exist. More...

#include <VolumeGridHelperDetails.hpp>

Public Member Functions

virtual ~TextureManager ()
 Releases all textures and deletes.
 
void releaseGeometryFeatures ()
 Releases all textures.
 

Protected Member Functions

void attachTexture (base::Geometry &geometry, unsigned int role, const base::VolumeSegment< typename TextureFactory::SegmentIntensityVolume, typename TextureFactory::SegmentNormalsVolume > &segment) const
 Attaches the texture that TextureFactory creates from segment to geometry using role.
 

Detailed Description

template<typename TextureFactory>
class LibCarna::helpers::details::VolumeGridHelper::TextureManager< TextureFactory >

Provides mapping base::VolumeSegment to base::ManagedTexture3D objects in a caching manner. Uses TextureFactory to create new base::ManagedTexture3D instances when cache entry does not exist.

Author
Leonid Kostrykin

Definition at line 146 of file VolumeGridHelperDetails.hpp.

Constructor & Destructor Documentation

◆ ~TextureManager()

template<typename TextureFactory >
LibCarna::helpers::details::VolumeGridHelper::TextureManager< TextureFactory >::~TextureManager ( )
virtual

Releases all textures and deletes.

Definition at line 193 of file VolumeGridHelperDetails.hpp.

Member Function Documentation

◆ attachTexture()

template<typename TextureFactory >
void LibCarna::helpers::details::VolumeGridHelper::TextureManager< TextureFactory >::attachTexture ( base::Geometry geometry,
unsigned int  role,
const base::VolumeSegment< typename TextureFactory::SegmentIntensityVolume, typename TextureFactory::SegmentNormalsVolume > &  segment 
) const
protected

Attaches the texture that TextureFactory creates from segment to geometry using role.

Definition at line 212 of file VolumeGridHelperDetails.hpp.

◆ releaseGeometryFeatures()

template<typename TextureFactory >
void LibCarna::helpers::details::VolumeGridHelper::TextureManager< TextureFactory >::releaseGeometryFeatures ( )

Releases all textures.

Definition at line 200 of file VolumeGridHelperDetails.hpp.


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