PeriDyno 1.0.0
Loading...
Searching...
No Matches
DataSource.cpp
Go to the documentation of this file.
1#include "DataSource.h"
2
3namespace dyno
4{
6 {
7 return false;
8 }
9
11
12 template<typename TDataType>
14 {
15 this->outFloating()->setValue(this->varValue()->getData());
16
17 auto callback = std::make_shared<FCallBackFunc>(
18 [=]() {this->outFloating()->setValue(this->varValue()->getData()); }
19 );
20
21 this->varValue()->attach(callback);
22 }
23
24 template class FloatingNumber<DataType3f>;
25 template class FloatingNumber<DataType3d>;
26
28
29 template<typename TDataType>
31 {
32 this->outVector()->setValue(this->varValue()->getData());
33
34 auto callback = std::make_shared<FCallBackFunc>(
35 [=]() {this->outVector()->setValue(this->varValue()->getData()); }
36 );
37
38 this->varValue()->attach(callback);
39 }
40
41 template class Vector3Source<DataType3f>;
42 template class Vector3Source<DataType3d>;
43}
#define IMPLEMENT_TCLASS(name, T1)
Definition Object.h:103
bool captionVisible() override
Whether to hide the caption in the GUI.
Definition DataSource.cpp:5
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25