PeriDyno 1.0.0
Loading...
Searching...
No Matches
GLPointVisualNode.h
Go to the documentation of this file.
1
16
17#pragma once
18#include "Node.h"
19
20#include "Topology/PointSet.h"
21
22namespace dyno
23{
24 template<typename TDataType>
25 class GLPointVisualNode : public Node
26 {
28 public:
29 typedef typename TDataType::Coord Coord;
30
32 ~GLPointVisualNode() override;
33
34 public:
35 std::string getNodeType() override;
36
37 protected:
38 void resetStates() override;
39
40 DEF_INSTANCE_IN(PointSet<TDataType>, Points, "A set of points");
41
42 DEF_ARRAY_IN(Coord, Vector, DeviceType::GPU, "");
43
44 DEF_VAR(Vec3f, Color, Vec3f(0,0,0.8f), "Color");
45
46 public:
47 Real pointSize = 0.001f;
48 };
49
51};
#define DECLARE_TCLASS(name, T1)
Definition Object.h:87
#define IMPLEMENT_TCLASS(name, T1)
Definition Object.h:103
double Real
Definition Typedef.inl:23
std::string getNodeType() override
DEF_ARRAY_IN(Coord, Vector, DeviceType::GPU, "")
DEF_VAR(Vec3f, Color, Vec3f(0, 0, 0.8f), "Color")
DEF_INSTANCE_IN(PointSet< TDataType >, Points, "A set of points")
A PointSet stores the coordinates for a set of independent points.
Definition PointSet.h:8
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25
Vector< float, 3 > Vec3f
Definition Vector3D.h:93