Low-Level C++ SDK
v1.2.0
Loading...
Searching...
No Matches
WeArtEffect.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
WeArtTemperature.h
"
4
#include "
WeArtForce.h
"
5
#include "
WeArtTexture.h
"
6
#include <vector>
7
9
class
WeArtEffect
{
10
public
:
13
virtual
WeArtTemperature
getTemperature
() = 0;
14
17
virtual
WeArtForce
getForce
() = 0;
18
21
virtual
WeArtTexture
getTexture
() = 0;
22
};
23
29
class
TouchEffect
:
public
WeArtEffect
{
30
public
:
31
TouchEffect
(
WeArtTemperature
temp,
WeArtForce
force,
WeArtTexture
texture)
32
: _temperature(temp), _force(force), _texture(texture) {}
33
39
bool
Set
(
WeArtTemperature
temp,
WeArtForce
force,
WeArtTexture
texture);
40
41
virtual
WeArtTemperature
getTemperature
()
override
{
42
return
_temperature;
43
}
44
45
virtual
WeArtForce
getForce
()
override
{
46
return
_force;
47
}
48
49
virtual
WeArtTexture
getTexture
()
override
{
50
return
_texture;
51
}
52
53
private
:
54
WeArtTemperature
_temperature;
55
WeArtForce
_force;
56
WeArtTexture
_texture;
57
};
WeArtForce.h
WeArtTemperature.h
WeArtTexture.h
TouchEffect
Basic object to apply effects.
Definition:
WeArtEffect.h:29
TouchEffect::Set
bool Set(WeArtTemperature temp, WeArtForce force, WeArtTexture texture)
Set the effect parameters.
Definition:
WeArtEffect.cpp:3
TouchEffect::getTemperature
virtual WeArtTemperature getTemperature() override
Get temperature value.
Definition:
WeArtEffect.h:41
TouchEffect::getTexture
virtual WeArtTexture getTexture() override
Get texture value.
Definition:
WeArtEffect.h:49
TouchEffect::getForce
virtual WeArtForce getForce() override
Get force value.
Definition:
WeArtEffect.h:45
TouchEffect::TouchEffect
TouchEffect(WeArtTemperature temp, WeArtForce force, WeArtTexture texture)
Definition:
WeArtEffect.h:31
WeArtEffect
General effect function interface.
Definition:
WeArtEffect.h:9
WeArtEffect::getTexture
virtual WeArtTexture getTexture()=0
Get texture value.
WeArtEffect::getForce
virtual WeArtForce getForce()=0
Get force value.
WeArtEffect::getTemperature
virtual WeArtTemperature getTemperature()=0
Get temperature value.
WeArtForce
Force value to be applied to an effect.
Definition:
WeArtForce.h:10
WeArtTemperature
Temperature value to be applied to an effect.
Definition:
WeArtTemperature.h:5
WeArtTexture
Temperature value to be applied to an effect.
Definition:
WeArtTexture.h:9
WeArtEffect.h
Generated by
1.9.6