PeriDyno 1.0.0
Loading...
Searching...
No Matches
GLInstanceVisualNode.cpp
Go to the documentation of this file.
2
4
5namespace dyno
6{
7 template<typename TDataType>
9 : Node()
10 {
11 auto sRender = std::make_shared<GLPhotorealisticInstanceRender>();
12 this->inInstanceTransform()->connect(sRender->inTransform());
13 this->inTextureMesh()->connect(sRender->inTextureMesh());
14
15 this->graphicsPipeline()->pushModule(sRender);
16 this->setAutoSync(true);
17 }
18
19 template<typename TDataType>
21 {
22 printf("GLInstanceVisualNode released \n");
23 }
24
25 template<typename TDataType>
27 {
28 return "Instance Visualizer";
29 }
30
31 template<typename TDataType>
33 {
34 return "Visualization";
35 }
36
37 template<typename TDataType>
42
44}
#define DEFINE_CLASS(name)
Definition Object.h:140
std::string getNodeType() override
std::string caption() override
Return the caption.
std::shared_ptr< GraphicsPipeline > graphicsPipeline()
Definition Node.cpp:320
void setAutoSync(bool con)
Whether the node can be automatically synchronized when its ancestor is updated.
Definition Node.cpp:63
void update()
Called every time interval.
Definition Node.cpp:146
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25