#3630 2d Maps: schedule update of volumes when creating LGRs

This commit is contained in:
Gaute Lindkvist
2018-11-08 10:18:49 +01:00
parent 30f5a76ee4
commit ad9f86a517
9 changed files with 81 additions and 140 deletions

View File

@@ -58,8 +58,9 @@ class Rim3dOverlayInfoConfig : public caf::PdmObject
double sum;
double weightedMean;
const std::vector<size_t>* histogram;
bool isValid(double parameter) { return parameter != HUGE_VAL && parameter != -HUGE_VAL; }
bool isValid() { return histogram && histogram->size() > 0 && min != HUGE_VAL && max != HUGE_VAL; }
bool isValid() { return histogram && histogram->size() > 0 && isValid(min) && isValid(max); }
};
public: