TerraForge3D
2.3.1
3D Terrain And Landscape Generator
HeightmapNode.h
1
#pragma once
2
3
#include "Base/NodeEditor/NodeEditor.h"
4
#include "Data/ApplicationState.h"
5
#include "Base/Heightmap.h"
6
#include <vector>
7
8
class
Heightmap
;
9
10
class
HeightmapNode
:
public
NodeEditorNode
11
{
12
public
:
13
14
15
virtual
NodeOutput
Evaluate(
NodeInputParam
input,
NodeEditorPin
*pin);
16
17
virtual
void
Load(
nlohmann::json
data);
18
virtual
nlohmann::json
Save();
19
virtual
void
OnRender();
20
21
HeightmapNode
();
22
23
~HeightmapNode
();
24
25
Heightmap
*heightmap;
26
float
scale;
27
bool
isDefault;
28
bool
autoTiled;
29
bool
interpolated;
30
bool
inv;
31
bool
npScale;
32
float
numTiles;
33
float
posi[2];
34
float
rota;
35
36
private
:
37
void
ChangeHeightmap();
38
std::mutex mutex;
39
};
40
Heightmap
Definition:
Heightmap.h:7
HeightmapNode
Definition:
HeightmapNode.h:11
NodeEditorNode
Definition:
NodeEditor.h:118
NodeEditorPin
Definition:
NodeEditor.h:89
nlohmann::basic_json
a class to store JSON values
Definition:
json.hpp:17860
NodeInputParam
Definition:
NodeEditor.h:31
NodeOutput
Definition:
NodeEditor.h:26
TerraForge3D
include
Generators
CPUNodeEditor
Nodes
HeightmapNode.h
Generated on Thu Apr 7 2022 14:10:50 for TerraForge3D by
1.9.3