PeriDyno 1.0.0
Loading...
Searching...
No Matches
AnimationDriver.h
Go to the documentation of this file.
1
16#pragma once
18#include "Topology/DiscreteElements.h"
20
21namespace dyno
22{
23 template<typename TDataType>
25 {
27 public:
28 typedef typename TDataType::Real Real;
29 typedef typename TDataType::Coord Coord;
30 typedef typename TDataType::Matrix Matrix;
31
32 typedef typename ::dyno::BallAndSocketJoint<Real> BallAndSocketJoint;
33 typedef typename ::dyno::SliderJoint<Real> SliderJoint;
34 typedef typename ::dyno::HingeJoint<Real> HingeJoint;
35 typedef typename ::dyno::FixedJoint<Real> FixedJoint;
36 typedef typename ::dyno::PointJoint<Real> PointJoint;
37 typedef typename dyno::Quat<Real> TQuat;
38
40 ~AnimationDriver() override {};
41
42 DEF_VAR(Real, Speed,4,"Speed");
43 DEF_VAR(std::vector<std::string>, DriverName, std::vector<std::string>(), "Speed");
44
47 DEF_VAR_IN(Real, DeltaTime,"");
48
49
50 public:
51
52
53
54 protected:
55
56 void onEvent(PKeyboardEvent event) override;
57
58 private:
59
60 float move = 0;
61 };
62}
void onEvent(PKeyboardEvent event) override
DEF_VAR_IN(Real, DeltaTime,"")
::dyno::FixedJoint< Real > FixedJoint
::dyno::PointJoint< Real > PointJoint
::dyno::BallAndSocketJoint< Real > BallAndSocketJoint
::dyno::SliderJoint< Real > SliderJoint
TDataType::Coord Coord
TDataType::Matrix Matrix
::dyno::HingeJoint< Real > HingeJoint
DEF_INSTANCE_IN(HierarchicalScene, HierarchicalScene,"Animation objects")
dyno::Quat< Real > TQuat
DEF_VAR(Real, Speed, 4,"Speed")
DECLARE_TCLASS(AnimationDriver, TDataType)
DEF_VAR(std::vector< std::string >, DriverName, std::vector< std::string >(), "Speed")
DEF_INSTANCE_IN(DiscreteElements< TDataType >, Topology, "Topology")
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25