Low-Level C++ SDK  v1.3.0
Loading...
Searching...
No Matches
WeArtHapticObject.h
Go to the documentation of this file.
1#pragma once
2
3#include "WeArtCommon.h"
4#include "WeArtEffect.h"
5#include <vector>
6
7#include "WeArtTemperature.h"
8#include "WeArtForce.h"
9#include "WeArtTexture.h"
10#include "WeArtMessages.h"
11#include "WeArtClient.h"
12
22public:
23 // Sets default values for this component's properties
25
26 // Hand/finger state variables
29
30 // State variables. Serialized.
34
35 // List of effect active on this object
36 // Not serialized.
37 std::vector<WeArtEffect*> activeEffects;
38
39 void AddEffect(WeArtEffect* effect);
40 void RemoveEffect(WeArtEffect* effect);
41 bool ContainsEffect(WeArtEffect* effect);
42 void UpdateEffects(void);
43
44 void SendMessage(WeArtMessage* msg);
45
46private:
47 WeArtClient* weArtclient;
48};
Weart client, used to connect to the Weart middleware, perform operations and receive messages.
Definition: WeArtClient.h:19
General effect function interface.
Definition: WeArtEffect.h:9
A haptic object class, representing one or multiple thimbles and hand with which the user interacts.
Definition: WeArtHapticObject.h:21
int32 handSideFlag
Definition: WeArtHapticObject.h:27
void RemoveEffect(WeArtEffect *effect)
Definition: WeArtHapticObject.cpp:24
void SendMessage(WeArtMessage *msg)
Definition: WeArtHapticObject.cpp:118
std::vector< WeArtEffect * > activeEffects
Definition: WeArtHapticObject.h:37
void AddEffect(WeArtEffect *effect)
Definition: WeArtHapticObject.cpp:16
WeArtForce weArtForce
Definition: WeArtHapticObject.h:32
bool ContainsEffect(WeArtEffect *effect)
Definition: WeArtHapticObject.cpp:32
WeArtTemperature weArtTemperature
Definition: WeArtHapticObject.h:31
void UpdateEffects(void)
Definition: WeArtHapticObject.cpp:37
int32 actuationPointFlag
Definition: WeArtHapticObject.h:28
WeArtTexture weArtTexture
Definition: WeArtHapticObject.h:33
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