Carna Version 3.3.3
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
Carna::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.h>

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 Carna::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
Date
27.3.15

Definition at line 145 of file VolumeGridHelperDetails.h.

Constructor & Destructor Documentation

◆ ~TextureManager()

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

Releases all textures and deletes.

Definition at line 192 of file VolumeGridHelperDetails.h.

Member Function Documentation

◆ attachTexture()

template<typename TextureFactory >
void Carna::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 211 of file VolumeGridHelperDetails.h.

◆ releaseGeometryFeatures()

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

Releases all textures.

Definition at line 199 of file VolumeGridHelperDetails.h.


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