PeriDyno 1.0.0
Loading...
Searching...
No Matches
JointDeform.h
Go to the documentation of this file.
1
16
17#pragma once
18#include "ModelEditing.h"
19#include "Topology/TriangleSet.h"
21
23
24#include "GLPointVisualModule.h"
26
27#include "FilePath.h"
28#include "SkinInfo.h"
29#include "JointInfo.h"
30
31namespace dyno
32{
36
37 template<typename TDataType>
38 class JointDeform : public ModelEditing<TDataType>
39 {
41
42 public:
43 typedef typename TDataType::Real Real;
44 typedef typename TDataType::Coord Coord;
45 typedef typename TDataType::Matrix Matrix;
46
48
49
50 typedef unsigned char byte;
51 typedef int joint;
52 typedef int shape;
53 typedef int mesh;
54 typedef int primitive;
55 typedef int scene;
56
59
60 public:
61
62
64 DEF_INSTANCE_IN(SkinInfo, Skin, "Skin");
65 DEF_ARRAYLIST_IN(Transform3f, InstanceTransform, DeviceType::GPU, "InstanceTransform");
67
68 protected:
69 void resetStates() override;
70
71
72 void updateStates() override;
73
74
75
76
77 private:
78
79 void updateAnimation(int frameNumber);
80
81
82 };
83
84
85
87}
#define IMPLEMENT_TCLASS(name, T1)
Definition Object.h:103
A class to facilitate showing the shape information.
Definition JointDeform.h:39
void updateAnimation(int frameNumber)
void updateStates() override
DECLARE_TCLASS(JointDeform, TDataType)
DEF_INSTANCE_IN(JointInfo, Joint, "Joint")
DEF_INSTANCE_IN(SkinInfo, Skin, "Skin")
TDataType::Matrix Matrix
Definition JointDeform.h:45
DEF_INSTANCE_STATE(TextureMesh, TextureMesh, "")
TopologyModule::Triangle Triangle
Definition JointDeform.h:47
TDataType::Coord Coord
Definition JointDeform.h:44
TDataType::Real Real
Definition JointDeform.h:43
void resetStates() override
DEF_ARRAYLIST_IN(Transform3f, InstanceTransform, DeviceType::GPU, "InstanceTransform")
unsigned char byte
Definition JointDeform.h:50
Vector< PointType, 3 > Triangle
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25
Transform< float, 3 > Transform3f