PeriDyno 1.0.0
Loading...
Searching...
No Matches
GLWireframeVisualModule.h
Go to the documentation of this file.
1
16
17#pragma once
18#include "Platform.h"
19#include "Topology/EdgeSet.h"
20
21#include "GLVisualModule.h"
25
26namespace dyno
27{
29 {
31
32 public:
33 // render as lines or cylinder
34 DECLARE_ENUM(EEdgeMode,
35 LINE = 0,
36 CYLINDER = 1);
37
38 public:
40 ~GLWireframeVisualModule() override;
41
42 std::string caption() override;
43
44#ifdef CUDA_BACKEND
46#endif
47
48#ifdef VK_BACKEND
50#endif // DEBUG
51
52
53 DEF_VAR(float, Radius, 0.003f, "Cylinder radius");
54 DEF_VAR(float, LineWidth, 1.f, "Line width");
55
56 DEF_ENUM(EEdgeMode, RenderMode, EEdgeMode::LINE, "");
57
58 protected:
59 virtual void updateImpl() override;
60
61 virtual void paintGL(const RenderParams& rparams) override;
62 virtual void updateGL() override;
63 virtual bool initializeGL() override;
64 virtual void releaseGL() override;
65
66 private:
67
69
73 unsigned int mNumEdges = 0;
74
76 };
77};
#define DEF_INSTANCE_IN(T, name, desc)
#define DECLARE_CLASS(name)
Definition Object.h:65
DEF_ENUM(EEdgeMode, RenderMode, EEdgeMode::LINE, "")
virtual void paintGL(const RenderParams &rparams) override
XBuffer< TopologyModule::Edge > mIndexBuffer
DECLARE_ENUM(EEdgeMode, LINE=0, CYLINDER=1)
std::string caption() override
Return the caption.
DEF_VAR(float, LineWidth, 1.f, "Line width")
DEF_VAR(float, Radius, 0.003f, "Cylinder radius")
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25
@ CYLINDER
Definition BasicShape.h:29