Kanzi 3.9.10
kanzi::Morph::DataTextureInfo Class Reference

Data texture information structure. More...

#include <kanzi/core.ui/graphics3d/morph.hpp>

Public Member Functions

size_t getDataSize () const
 Gets the data size.
 
TextureSharedPtr getDataTexture () const
 Gets the data texture.
 
size_t getNormalOffset () const
 Gets the normal offset.
 
size_t getPositionOffset () const
 Gets the position offset.
 
size_t getTangentOffset () const
 Gets the tangent offset.
 

Static Public Member Functions

static unique_ptr< DataTextureInfocreate (size_t dataSize, TextureSharedPtr dataTexture, size_t positionOffset, size_t normalOffset, size_t tangentOffset)
 Creates a new data texture info structure.
 

Protected Member Functions

 DataTextureInfo (size_t dataSize, TextureSharedPtr dataTexture, size_t positionOffset, size_t normalOffset, size_t tangentOffset)
 Constructor.
 

Protected Attributes

size_t m_dataSize
 Morph data size.
 
TextureSharedPtr m_dataTexture
 Data texture containing the morph data.
 
size_t m_normalOffset
 Normal offset.
 
size_t m_positionOffset
 Position offset.
 
size_t m_tangentOffset
 Position offset.
 

Detailed Description

Data texture information structure.

Since
Kanzi 3.9.7

Constructor & Destructor Documentation

◆ DataTextureInfo()

kanzi::Morph::DataTextureInfo::DataTextureInfo ( size_t dataSize,
TextureSharedPtr dataTexture,
size_t positionOffset,
size_t normalOffset,
size_t tangentOffset )
inlineexplicitprotected

Constructor.

Parameters
dataSizeSize of one morph data block.
dataTextureData texture container.
positionOffsetPosition data offset.
normalOffsetNormal data offset.
tangentOffsetTangent data offset.

Member Function Documentation

◆ create()

static unique_ptr< DataTextureInfo > kanzi::Morph::DataTextureInfo::create ( size_t dataSize,
TextureSharedPtr dataTexture,
size_t positionOffset,
size_t normalOffset,
size_t tangentOffset )
inlinestatic

Creates a new data texture info structure.

Parameters
dataSizeSize of one morph data block.
dataTextureData texture container.
positionOffsetPosition data offset.
normalOffsetNormal data offset.
tangentOffsetTangent data offset.

◆ getDataSize()

size_t kanzi::Morph::DataTextureInfo::getDataSize ( ) const
inline

Gets the data size.

Returns
Data size for the morph data block.

◆ getDataTexture()

TextureSharedPtr kanzi::Morph::DataTextureInfo::getDataTexture ( ) const
inline

Gets the data texture.

Returns
Data texture containing morph data.

◆ getPositionOffset()

size_t kanzi::Morph::DataTextureInfo::getPositionOffset ( ) const
inline

Gets the position offset.

Returns
Position offset into the data texture.

◆ getNormalOffset()

size_t kanzi::Morph::DataTextureInfo::getNormalOffset ( ) const
inline

Gets the normal offset.

Returns
Normal offset into the data texture.

◆ getTangentOffset()

size_t kanzi::Morph::DataTextureInfo::getTangentOffset ( ) const
inline

Gets the tangent offset.

Returns
Tangent offset into the data texture.

Member Data Documentation

◆ m_dataSize

size_t kanzi::Morph::DataTextureInfo::m_dataSize
protected

Morph data size.

◆ m_dataTexture

TextureSharedPtr kanzi::Morph::DataTextureInfo::m_dataTexture
protected

Data texture containing the morph data.

◆ m_positionOffset

size_t kanzi::Morph::DataTextureInfo::m_positionOffset
protected

Position offset.

◆ m_normalOffset

size_t kanzi::Morph::DataTextureInfo::m_normalOffset
protected

Normal offset.

◆ m_tangentOffset

size_t kanzi::Morph::DataTextureInfo::m_tangentOffset
protected

Position offset.


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