PeriDyno 1.0.0
Loading...
Searching...
No Matches
GhostParticles.cpp
Go to the documentation of this file.
1#include "GhostParticles.h"
2
4
5namespace dyno
6{
7 //IMPLEMENT_TCLASS(GhostParticles, TDataType)
8
9 template<typename TDataType>
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>
26
27 template<typename TDataType>
32
34}
#define DEFINE_CLASS(name)
Definition Object.h:140
void resetStates() override
std::shared_ptr< GraphicsPipeline > graphicsPipeline()
Definition Node.cpp:320
void resetStates() override
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25