PeriDyno 0.9.2
Loading...
Searching...
No Matches
SamplingPoints.cpp
Go to the documentation of this file.
1#include "CubeSampler.h"
2
4#include "SamplingPoints.h"
5namespace dyno
6{
7 template<typename TDataType>
9 : Node()
10 {
11
12 this->statePointSet()->setDataPtr(std::make_shared<PointSet<TDataType>>());
13
14 glModule = std::make_shared<GLPointVisualModule>();
15 glModule->setColor(Color(0.25f, 0.52f, 0.8f));
16 glModule->setVisible(true);
17 glModule->varPointSize()->setValue(0.01);
18 this->statePointSet()->connect(glModule->inPointSet());
19 this->graphicsPipeline()->pushModule(glModule);
20 }
21
22 template<typename TDataType>
24 glModule->setVisible(false);
25 };
26
27
28 template<typename TDataType>
30 return this->statePointSet()->getData().getPointSize();
31 };
32
33
34
36}
#define DEFINE_CLASS(name)
Definition Object.h:140
std::shared_ptr< GraphicsPipeline > graphicsPipeline()
Definition Node.cpp:312
std::shared_ptr< GLPointVisualModule > glModule
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:24
ArrayMap< T, DeviceType::GPU > DArrayMap
Definition ArrayMap.inl:80