PeriDyno 1.0.0
Loading...
Searching...
No Matches
DebugInfo.cpp
Go to the documentation of this file.
1#include "DebugInfo.h"
2#include "Log.h"
3
4#include <sstream>
5
6namespace dyno
7{
9 {
10 this->print();
11 }
12
14 {
15 this->varForceUpdate()->setValue(true);
16 }
17
19 {
20 std::ostringstream oss;
21 oss << this->inInt()->getData();
22
23 Log::sendMessage(Log::Info, oss.str());
24 }
25
27 {
28 this->varForceUpdate()->setValue(true);
29 }
30
32 {
33 std::ostringstream oss;
34 oss << this->inUnsigned()->getData();
35
36 Log::sendMessage(Log::Info, oss.str());
37 }
38
40 {
41 this->varForceUpdate()->setValue(true);
42 }
43
45 {
46 std::ostringstream oss;
47 oss << this->inFloat()->getData();
48
49 Log::sendMessage(Log::Info, oss.str());
50 }
51
53 {
54 this->varForceUpdate()->setValue(true);
55 }
56
58 {
59 std::ostringstream oss;
60 auto vec = this->inVector()->getData();
61 oss << vec.x << " " << vec.y << " " << vec.z;
62
63 Log::sendMessage(Log::Info, oss.str());
64 }
65}
void updateImpl() final
Definition DebugInfo.cpp:8
virtual void print()=0
@ Info
Information to user.
Definition Log.h:48
static void sendMessage(MessageType type, const std::string &text)
Add a new message to log.
Definition Log.cpp:41
void print() override
Definition DebugInfo.cpp:44
void print() override
Definition DebugInfo.cpp:18
void print() override
Definition DebugInfo.cpp:31
void print() override
Definition DebugInfo.cpp:57
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25