Legend: Made number of digits after point be adjusted to show the number

of significant digits defined by the user.
Not quite complete the solutions is. There are cornercases not covered
well yet.
* Fixed rounding error.
This commit is contained in:
Jacob Støren
2013-09-26 01:05:09 +02:00
parent 1dcca6a6ed
commit a3d964e4eb
2 changed files with 38 additions and 18 deletions

View File

@@ -101,7 +101,7 @@ protected:
private:
void updateFieldVisibility();
cvf::ref<cvf::Color3ubArray> interpolateColorArray(const cvf::Color3ubArray& colorArray, cvf::uint targetColorCount);
double adjust(double value, double precision);
double roundToNumSignificantDigits(double value, double precision);
private:
caf::PdmPointer<RimReservoirView> m_reservoirView;