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

This commit is contained in:
Gaute Lindkvist
2018-08-30 14:03:58 +02:00
parent 46c5bbf4c6
commit adc9ad322a
16 changed files with 472 additions and 62 deletions

View File

@@ -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)
{