Carna Version 3.3.3
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
Carna::helpers::details::VolumeGridHelper::NormalsComponent< SegmentIntensityVolumeType, SegmentNormalsVolumeType > Class Template Reference

Defines the helpers::VolumeGridHelper component that computes and maintains normal maps. More...

#include <VolumeGridHelperDetails.h>

+ Inheritance diagram for Carna::helpers::details::VolumeGridHelper::NormalsComponent< SegmentIntensityVolumeType, SegmentNormalsVolumeType >:
+ Collaboration diagram for Carna::helpers::details::VolumeGridHelper::NormalsComponent< SegmentIntensityVolumeType, SegmentNormalsVolumeType >:

Public Member Functions

 NormalsComponent ()
 Sets the role to use for attaching textures to base::Geometry nodes to DEFAULT_ROLE_NORMALS.
 
void setNormalsRole (unsigned int role)
 Sets the role to use for attaching textures to base::Geometry nodes.
 
unsigned int normalsRole () const
 Tels the role used for attaching textures to base::Geometry nodes.
 
void computeNormals ()
 Computes the normal map on the previously set grid.
 
- Public Member Functions inherited from Carna::helpers::details::VolumeGridHelper::TextureManager< NormalsTextureFactory< SegmentIntensityVolumeType, SegmentNormalsVolumeType > >
virtual ~TextureManager ()
 Releases all textures and deletes.
 
void releaseGeometryFeatures ()
 Releases all textures.
 
- Public Member Functions inherited from Carna::helpers::details::VolumeGridHelper::NormalsComponentBase
virtual ~NormalsComponentBase ()
 Deletes.
 

Static Public Attributes

static const unsigned int DEFAULT_ROLE_NORMALS = 1
 Holds the default role to use for attaching textures to base::Geometry nodes.
 

Protected Member Functions

void setGrid (base::VolumeGrid< SegmentIntensityVolumeType, SegmentNormalsVolumeType > &grid)
 Sets the grid that computeNormals operates on.
 
void attachTexture (base::Geometry &geometry, const base::VolumeSegment< SegmentIntensityVolumeType, SegmentNormalsVolumeType > &segment) const
 Attaches the texture that represents the base::VolumeSegmentNormalsComponent::normals of segment to geometry using the previously configured role.
 
void initializeSegment (base::VolumeSegment< SegmentIntensityVolumeType, SegmentNormalsVolumeType > &segment, const base::math::Vector3ui &size) const
 Initializes normal map of segment.
 
- Protected Member Functions inherited from Carna::helpers::details::VolumeGridHelper::TextureManager< NormalsTextureFactory< SegmentIntensityVolumeType, SegmentNormalsVolumeType > >
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.
 
- Protected Member Functions inherited from Carna::helpers::details::VolumeGridHelper::NormalsComponentBase
virtual base::math::Vector3ui gridResolution () const =0
 Tells the effective grid resolution.
 

Detailed Description

template<typename SegmentIntensityVolumeType, typename SegmentNormalsVolumeType>
class Carna::helpers::details::VolumeGridHelper::NormalsComponent< SegmentIntensityVolumeType, SegmentNormalsVolumeType >

Defines the helpers::VolumeGridHelper component that computes and maintains normal maps.

Author
Leonid Kostrykin
Date
27.3.15 - 29.3.15

Definition at line 399 of file VolumeGridHelperDetails.h.

Constructor & Destructor Documentation

◆ NormalsComponent()

template<typename SegmentIntensityVolumeType , typename SegmentNormalsVolumeType >
Carna::helpers::details::VolumeGridHelper::NormalsComponent< SegmentIntensityVolumeType, SegmentNormalsVolumeType >::NormalsComponent ( )

Sets the role to use for attaching textures to base::Geometry nodes to DEFAULT_ROLE_NORMALS.

Definition at line 467 of file VolumeGridHelperDetails.h.

Member Function Documentation

◆ attachTexture()

template<typename SegmentIntensityVolumeType , typename SegmentNormalsVolumeType >
void Carna::helpers::details::VolumeGridHelper::NormalsComponent< SegmentIntensityVolumeType, SegmentNormalsVolumeType >::attachTexture ( base::Geometry geometry,
const base::VolumeSegment< SegmentIntensityVolumeType, SegmentNormalsVolumeType > &  segment 
) const
protected

Attaches the texture that represents the base::VolumeSegmentNormalsComponent::normals of segment to geometry using the previously configured role.

Definition at line 577 of file VolumeGridHelperDetails.h.

◆ computeNormals()

template<typename SegmentIntensityVolumeType , typename SegmentNormalsVolumeType >
void Carna::helpers::details::VolumeGridHelper::NormalsComponent< SegmentIntensityVolumeType, SegmentNormalsVolumeType >::computeNormals ( )

Computes the normal map on the previously set grid.

Definition at line 488 of file VolumeGridHelperDetails.h.

◆ initializeSegment()

template<typename SegmentIntensityVolumeType , typename SegmentNormalsVolumeType >
void Carna::helpers::details::VolumeGridHelper::NormalsComponent< SegmentIntensityVolumeType, SegmentNormalsVolumeType >::initializeSegment ( base::VolumeSegment< SegmentIntensityVolumeType, SegmentNormalsVolumeType > &  segment,
const base::math::Vector3ui size 
) const
protected

Initializes normal map of segment.

Definition at line 587 of file VolumeGridHelperDetails.h.

◆ normalsRole()

template<typename SegmentIntensityVolumeType , typename SegmentNormalsVolumeType >
unsigned int Carna::helpers::details::VolumeGridHelper::NormalsComponent< SegmentIntensityVolumeType, SegmentNormalsVolumeType >::normalsRole ( ) const

Tels the role used for attaching textures to base::Geometry nodes.

Definition at line 481 of file VolumeGridHelperDetails.h.

◆ setGrid()

template<typename SegmentIntensityVolumeType , typename SegmentNormalsVolumeType >
void Carna::helpers::details::VolumeGridHelper::NormalsComponent< SegmentIntensityVolumeType, SegmentNormalsVolumeType >::setGrid ( base::VolumeGrid< SegmentIntensityVolumeType, SegmentNormalsVolumeType > &  grid)
protected

Sets the grid that computeNormals operates on.

Definition at line 570 of file VolumeGridHelperDetails.h.

◆ setNormalsRole()

template<typename SegmentIntensityVolumeType , typename SegmentNormalsVolumeType >
void Carna::helpers::details::VolumeGridHelper::NormalsComponent< SegmentIntensityVolumeType, SegmentNormalsVolumeType >::setNormalsRole ( unsigned int  role)

Sets the role to use for attaching textures to base::Geometry nodes.

Definition at line 474 of file VolumeGridHelperDetails.h.

Member Data Documentation

◆ DEFAULT_ROLE_NORMALS

template<typename SegmentIntensityVolumeType , typename SegmentNormalsVolumeType >
const unsigned int Carna::helpers::details::VolumeGridHelper::NormalsComponent< SegmentIntensityVolumeType, SegmentNormalsVolumeType >::DEFAULT_ROLE_NORMALS = 1
static

Holds the default role to use for attaching textures to base::Geometry nodes.

Definition at line 413 of file VolumeGridHelperDetails.h.


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