Low-Level C++ SDK  v1.3.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
10public:
14
17 virtual WeArtForce getForce() = 0;
18
21 virtual WeArtTexture getTexture() = 0;
22};
23
29class TouchEffect : public WeArtEffect {
30public:
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
53private:
54 WeArtTemperature _temperature;
55 WeArtForce _force;
56 WeArtTexture _texture;
57};
Basic object to apply effects.
Definition: WeArtEffect.h:29
bool Set(WeArtTemperature temp, WeArtForce force, WeArtTexture texture)
Set the effect parameters.
Definition: WeArtEffect.cpp:3
virtual WeArtTemperature getTemperature() override
Get temperature value.
Definition: WeArtEffect.h:41
virtual WeArtTexture getTexture() override
Get texture value.
Definition: WeArtEffect.h:49
virtual WeArtForce getForce() override
Get force value.
Definition: WeArtEffect.h:45
TouchEffect(WeArtTemperature temp, WeArtForce force, WeArtTexture texture)
Definition: WeArtEffect.h:31
General effect function interface.
Definition: WeArtEffect.h:9
virtual WeArtTexture getTexture()=0
Get texture value.
virtual WeArtForce getForce()=0
Get force value.
virtual WeArtTemperature getTemperature()=0
Get temperature value.
Force value to be applied to an effect.
Definition: WeArtForce.h:10
Temperature value to be applied to an effect.
Definition: WeArtTemperature.h:5
Temperature value to be applied to an effect.
Definition: WeArtTexture.h:9