#3187 symbols and labels for well path attributes, initial work.

This commit is contained in:
Gaute Lindkvist committed 2018-08-30 16:06:20 +02:00
1 parent 46c5bbf4c6
commit adc9ad322a
16 files changed
+472 -62

No files matched your search

@@ -23,6 +23,8 @@
#include "cafPdmUiComboBoxEditor.h"
#include <cmath>
CAF_PDM_SOURCE_INIT(RimWellPathAttribute, "WellPathAttribute");
namespace caf
@@ -146,7 +148,7 @@ QString RimWellPathAttribute::generateInchesLabel(double diameter)
double integerPart = 0.0;
double fraction = modf(diameter, &integerPart);
int numerator = static_cast<int>(std::round(fraction / 0.125));
int numerator = static_cast<int>(std::round(8.0 * fraction));
if (numerator > 0)
{