PeriDyno
1.0.0
Loading...
Searching...
No Matches
D:
Peridyno
peridyno
src
Modeling
Samplers
Sampler.cpp
Go to the documentation of this file.
1
#include "
Sampler.h
"
2
3
#include "
GLPointVisualModule.h
"
4
5
namespace
dyno
6
{
7
template
<
typename
TDataType>
8
Sampler<TDataType>::Sampler
()
9
:
Node
()
10
{
11
this->statePointSet()->setDataPtr(std::make_shared<
PointSet<TDataType>
>());
12
13
auto
glModule = std::make_shared<GLPointVisualModule>();
14
glModule->setColor(
Color
(0.25f, 0.52f, 0.8f));
15
glModule->setVisible(
true
);
16
glModule->varPointSize()->setValue(0.005);
17
this->statePointSet()->connect(glModule->inPointSet());
18
this->
graphicsPipeline
()->pushModule(glModule);
19
}
20
21
DEFINE_CLASS
(
Sampler
);
22
}
GLPointVisualModule.h
DEFINE_CLASS
#define DEFINE_CLASS(name)
Definition
Object.h:140
Sampler.h
dyno::Color
Definition
Color.h:7
dyno::Node::graphicsPipeline
std::shared_ptr< GraphicsPipeline > graphicsPipeline()
Definition
Node.cpp:320
dyno::Node::Node
Node()
Definition
Node.cpp:8
dyno::PointSet
A PointSet stores the coordinates for a set of independent points.
Definition
PointSet.h:8
dyno::Sampler
Definition
Sampler.h:27
dyno::Sampler::Sampler
Sampler()
Definition
Sampler.cpp:8
dyno
This is an implementation of AdditiveCCD based on peridyno.
Definition
Array.h:25
Generated by
1.13.2