PeriDyno 1.0.0
Loading...
Searching...
No Matches
Ocean.h
Go to the documentation of this file.
1
16#pragma once
17#include "OceanBase.h"
18
19#include "CapillaryWave.h"
20
21namespace dyno
22{
23 template<typename TDataType>
24 class Ocean : public OceanBase<TDataType>
25 {
26 DECLARE_TCLASS(Ocean, TDataType)
27 public:
28 typedef typename TDataType::Real Real;
29 typedef typename TDataType::Coord Coord;
30
32 ~Ocean() override;
33
34 public:
35 DEF_VAR(uint, ExtentX, 1, "");
36 DEF_VAR(uint, ExtentZ, 1, "");
37
38 DEF_VAR(Real, WaterLevel, 0, "");
39
41
43
44 protected:
45 void resetStates() override;
46 void updateStates() override;
47 };
48
49 IMPLEMENT_TCLASS(Ocean, TDataType)
50}
#define DECLARE_TCLASS(name, T1)
Definition Object.h:87
#define IMPLEMENT_TCLASS(name, T1)
Definition Object.h:103
DEF_VAR(uint, ExtentX, 1, "")
void updateStates() override
void resetStates() override
DEF_VAR(uint, ExtentZ, 1, "")
~Ocean() override
TDataType::Real Real
Definition Ocean.h:28
DEF_NODE_PORTS(CapillaryWave< TDataType >, CapillaryWave, "Capillary Wave")
DEF_VAR(Real, WaterLevel, 0, "")
DEF_INSTANCE_STATE(HeightField< TDataType >, HeightField, "Topology")
TDataType::Coord Coord
Definition Ocean.h:29
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25
unsigned int uint
Definition VkProgram.h:14