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
17 bool CanHaveAreaFraction() override {
18 return true;
19 }
20
26 double GetAreaFraction() {
27 return m_areaFraction;
28 }
29
36 return &m_areaFraction;
37 }
38
44 void SetAreaFraction(double value);
45
49 bool IsLandCover() override {
50 return true;
51 }
52
56 bool IsNull() override {
57 return m_areaFraction <= PRECISION;
58 }
59
65 virtual void SurfaceComponentAdded(SurfaceComponent* brick);
66
67 protected:
68 double m_areaFraction;
69};
70
71#endif // HYDROBRICKS_BASE_LAND_COVER_H
Definition Brick.h:10
Definition HydroUnit.h:13
Definition LandCover.h:10
double GetAreaFraction()
Definition LandCover.h:26
virtual void SurfaceComponentAdded(SurfaceComponent *brick)
Definition LandCover.cpp:23
bool IsLandCover() override
Definition LandCover.h:49
void SetAreaFraction(double value)
Definition LandCover.cpp:12
bool IsNull() override
Definition LandCover.h:56
bool CanHaveAreaFraction() override
Definition LandCover.h:17
double * GetAreaFractionPointer()
Definition LandCover.h:35
Definition SurfaceComponent.h:10