PeriDyno 1.0.0
Loading...
Searching...
No Matches
LandScape.h
Go to the documentation of this file.
1
16#pragma once
18
20#include "FilePath.h"
21namespace dyno {
22
23 template<typename TDataType>
24 class LandScape : virtual public ParametricModel<TDataType>
25 {
26 DECLARE_TCLASS(LandScape, TDataType)
27 public:
28 typedef typename TDataType::Real Real;
29 typedef typename TDataType::Coord Coord;
30
33
34 public:
35
36 DEF_VAR(Real, PatchSize, Real(256), "Real patch size");
37
38 DEF_VAR(FilePath, FileName, "", "");
39
41
42 protected:
43 void resetStates() override;
44
46
48
49 private:
50 std::string fileName;
51
53 };
54
55 IMPLEMENT_TCLASS(LandScape, TDataType)
56}
#define DECLARE_TCLASS(name, T1)
Definition Object.h:87
#define IMPLEMENT_TCLASS(name, T1)
Definition Object.h:103
DArray2D< Real > mInitialHeights
Definition LandScape.h:52
DEF_VAR(FilePath, FileName, "", "")
DEF_VAR(Real, PatchSize, Real(256), "Real patch size")
void callbackLoadFile()
TDataType::Real Real
Definition LandScape.h:28
void callbackTransform()
void resetStates() override
TDataType::Coord Coord
Definition LandScape.h:29
DEF_INSTANCE_STATE(HeightField< TDataType >, HeightField, "Topology")
std::string fileName
Definition LandScape.h:50
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25
Array2D< T, DeviceType::GPU > DArray2D
Definition Array2D.inl:90