PeriDyno 1.0.0
Loading...
Searching...
No Matches
GLSurfaceVisualNode.h
Go to the documentation of this file.
1
16
17#pragma once
18#include <Node.h>
19
20#include <Topology/TriangleSet.h>
21
22namespace dyno
23{
24 template<typename TDataType>
26 {
28 public:
29 typedef typename TDataType::Coord Coord;
30
31 GLSurfaceVisualNode(bool phong = false);
32 ~GLSurfaceVisualNode() override;
33
34 public:
35 std::string caption() override;
36
37 std::string getNodeType() override;
38
39 public:
41 DEF_VAR(Vec3f, Color, Vec3f(0.8f), "Color");
42 protected:
43 void resetStates() override;
44 };
45
47};
#define DECLARE_TCLASS(name, T1)
Definition Object.h:87
#define IMPLEMENT_TCLASS(name, T1)
Definition Object.h:103
DEF_INSTANCE_IN(TriangleSet< TDataType >, TriangleSet, "A set of triangles")
std::string caption() override
Return the caption.
DEF_VAR(Vec3f, Color, Vec3f(0.8f), "Color")
GLSurfaceVisualNode(bool phong=false)
std::string getNodeType() override
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25
Vector< float, 3 > Vec3f
Definition Vector3D.h:93