PeriDyno
1.0.0
Loading...
Searching...
No Matches
D:
Peridyno
peridyno
src
Framework
Auxiliary
DataSource.cpp
Go to the documentation of this file.
1
#include "
DataSource.h
"
2
3
namespace
dyno
4
{
5
bool
DataSource::captionVisible
()
6
{
7
return
false
;
8
}
9
10
IMPLEMENT_TCLASS
(
FloatingNumber
, TDataType);
11
12
template
<
typename
TDataType>
13
FloatingNumber<TDataType>::FloatingNumber
()
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
27
IMPLEMENT_TCLASS
(
Vector3Source
, TDataType);
28
29
template
<
typename
TDataType>
30
Vector3Source<TDataType>::Vector3Source
()
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
}
DataSource.h
IMPLEMENT_TCLASS
#define IMPLEMENT_TCLASS(name, T1)
Definition
Object.h:103
dyno::DataSource::captionVisible
bool captionVisible() override
Whether to hide the caption in the GUI.
Definition
DataSource.cpp:5
dyno::FloatingNumber
Definition
DataSource.h:35
dyno::FloatingNumber::FloatingNumber
FloatingNumber()
Definition
DataSource.cpp:13
dyno::Vector3Source
Definition
DataSource.h:49
dyno::Vector3Source::Vector3Source
Vector3Source()
Definition
DataSource.cpp:30
dyno
This is an implementation of AdditiveCCD based on peridyno.
Definition
Array.h:25
Generated by
1.13.2