hydrobricks
Loading...
Searching...
No Matches
LandCover.h
1#ifndef HYDROBRICKS_BASE_LAND_COVER_H
2#define HYDROBRICKS_BASE_LAND_COVER_H
3
4#include "Brick.h"
5#include "Includes.h"
6
7class HydroUnit;
9
10class LandCover : public Brick {
11 public:
12 LandCover();
13
14 bool CanHaveAreaFraction() override {
15 return true;
16 }
17
18 double GetAreaFraction() {
19 return m_areaFraction;
20 }
21
22 double* GetAreaFractionPointer() {
23 return &m_areaFraction;
24 }
25
26 void SetAreaFraction(double value);
27
28 virtual void SurfaceComponentAdded(SurfaceComponent* brick);
29
30 bool IsLandCover() override {
31 return true;
32 }
33
34 bool IsNull() override {
35 return m_areaFraction <= PRECISION;
36 }
37
38 protected:
39 double m_areaFraction;
40
41 private:
42};
43
44#endif // HYDROBRICKS_BASE_LAND_COVER_H
Definition Brick.h:10
Definition HydroUnit.h:13
Definition LandCover.h:10
Definition SurfaceComponent.h:10