Low-Level C++ SDK  v1.2.0
Loading...
Searching...
No Matches
WeArtTexture Struct Reference

Temperature value to be applied to an effect. More...

#include <WeArtTexture.h>

Public Member Functions

 WeArtTexture ()
 
 WeArtTexture (bool active, TextureType type, float velocity, float textureVolume)
 
float textureVelocity () const
 Gets the texture velocity.
 
void textureVelocity (float velocity)
 Sets the texture velocity (speed at which the vibration is emitted, between 0 and 0.5)
 
TextureType textureType () const
 Texture type getter.
 
void textureType (TextureType type)
 Texture type setter.
 
float volume () const
 Volume value getter.
 
void volume (float v)
 Volume value setter.
 
bool operator== (const WeArtTexture &other) const
 

Public Attributes

bool active
 

Static Public Attributes

static constexpr TextureType DefaultTextureType = TextureType::ClickNormal
 
static constexpr float DefaultVolume = 100.0f
 
static constexpr float MinVolume = 0.0f
 
static constexpr float MaxVolume = 100.0f
 
static constexpr float DefaultVelocity = 0.0f
 
static constexpr float MinVelocity = 0.0f
 
static constexpr float MaxVelocity = 0.5f
 

Detailed Description

Temperature value to be applied to an effect.

WEART - Texture component https://www.weart.it/

Constructor & Destructor Documentation

◆ WeArtTexture() [1/2]

WeArtTexture::WeArtTexture ( )
inline

◆ WeArtTexture() [2/2]

WeArtTexture::WeArtTexture ( bool  active,
TextureType  type,
float  velocity,
float  textureVolume 
)
inline

Member Function Documentation

◆ operator==()

bool WeArtTexture::operator== ( const WeArtTexture other) const
inline

◆ textureType() [1/2]

TextureType WeArtTexture::textureType ( ) const
inline

Texture type getter.

Returns
current texture type value

◆ textureType() [2/2]

void WeArtTexture::textureType ( TextureType  type)
inline

Texture type setter.

Parameters
typeTexture type value to set

◆ textureVelocity() [1/2]

float WeArtTexture::textureVelocity ( ) const
inline

Gets the texture velocity.

Returns
current texture velocity value

◆ textureVelocity() [2/2]

void WeArtTexture::textureVelocity ( float  velocity)
inline

Sets the texture velocity (speed at which the vibration is emitted, between 0 and 0.5)

Parameters
velocityTexture velocity

◆ volume() [1/2]

float WeArtTexture::volume ( ) const
inline

Volume value getter.

Returns
current texture volume

◆ volume() [2/2]

void WeArtTexture::volume ( float  v)
inline

Volume value setter.

Parameters
vVolume to set

Member Data Documentation

◆ active

bool WeArtTexture::active

◆ DefaultTextureType

constexpr TextureType WeArtTexture::DefaultTextureType = TextureType::ClickNormal
staticconstexpr

◆ DefaultVelocity

constexpr float WeArtTexture::DefaultVelocity = 0.0f
staticconstexpr

◆ DefaultVolume

constexpr float WeArtTexture::DefaultVolume = 100.0f
staticconstexpr

◆ MaxVelocity

constexpr float WeArtTexture::MaxVelocity = 0.5f
staticconstexpr

◆ MaxVolume

constexpr float WeArtTexture::MaxVolume = 100.0f
staticconstexpr

◆ MinVelocity

constexpr float WeArtTexture::MinVelocity = 0.0f
staticconstexpr

◆ MinVolume

constexpr float WeArtTexture::MinVolume = 0.0f
staticconstexpr

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