PeriDyno
1.0.0
Loading...
Searching...
No Matches
D:
Peridyno
peridyno
src
Dynamics
Cuda
ParticleSystem
GhostParticles.cpp
Go to the documentation of this file.
1
#include "
GhostParticles.h
"
2
3
#include "
GLPointVisualModule.h
"
4
5
namespace
dyno
6
{
7
//IMPLEMENT_TCLASS(GhostParticles, TDataType)
8
9
template
<
typename
TDataType>
10
GhostParticles<TDataType>::GhostParticles
()
11
:
ParticleSystem
<TDataType>()
12
{
13
auto
ghostRender = std::make_shared<GLPointVisualModule>();
14
ghostRender->setColor(
Color
(1, 0.5, 0));
15
ghostRender->setColorMapMode(GLPointVisualModule::PER_OBJECT_SHADER);
16
17
this->statePointSet()->connect(ghostRender->inPointSet());
18
19
this->
graphicsPipeline
()->pushModule(ghostRender);
20
}
21
22
template
<
typename
TDataType>
23
GhostParticles<TDataType>::~GhostParticles
()
24
{
25
}
26
27
template
<
typename
TDataType>
28
void
GhostParticles<TDataType>::resetStates
()
29
{
30
ParticleSystem<TDataType>::resetStates
();
31
}
32
33
DEFINE_CLASS
(
GhostParticles
);
34
}
GLPointVisualModule.h
GhostParticles.h
DEFINE_CLASS
#define DEFINE_CLASS(name)
Definition
Object.h:140
dyno::Color
Definition
Color.h:7
dyno::GhostParticles
Definition
GhostParticles.h:9
dyno::GhostParticles::resetStates
void resetStates() override
Definition
GhostParticles.cpp:28
dyno::GhostParticles::GhostParticles
GhostParticles()
Definition
GhostParticles.cpp:10
dyno::GhostParticles::~GhostParticles
~GhostParticles() override
Definition
GhostParticles.cpp:23
dyno::Node::graphicsPipeline
std::shared_ptr< GraphicsPipeline > graphicsPipeline()
Definition
Node.cpp:320
dyno::ParticleSystem::resetStates
void resetStates() override
Definition
ParticleSystem.cpp:27
dyno::ParticleSystem::ParticleSystem
ParticleSystem()
Definition
ParticleSystem.cpp:8
dyno
This is an implementation of AdditiveCCD based on peridyno.
Definition
Array.h:25
Generated by
1.13.2