mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Well Label Color: Added label color setting on Well Paths
This commit is contained in:
parent
2c546ea1e9
commit
5e51ded9a9
@ -197,8 +197,7 @@ void RivWellPathPartMgr::buildWellPathParts(cvf::Vec3d displayModelOffset, doubl
|
||||
drawableText->setDrawBorder(false);
|
||||
drawableText->setDrawBackground(false);
|
||||
drawableText->setVerticalAlignment(cvf::TextDrawer::CENTER);
|
||||
//drawableText->setTextColor(cvf::Color3f(0.08f, 0.08f, 0.08f));
|
||||
drawableText->setTextColor(cvf::Color3f(0.92f, 0.92f, 0.92f));
|
||||
drawableText->setTextColor(m_wellPathCollection->wellPathLabelColor());
|
||||
|
||||
cvf::String cvfString = cvfqt::Utils::fromQString(m_rimWellPath->name());
|
||||
|
||||
|
@ -42,6 +42,9 @@
|
||||
#include "RimAnalysisModels.h"
|
||||
#include <fstream>
|
||||
|
||||
#include "RiaApplication.h"
|
||||
#include "RiaPreferences.h"
|
||||
|
||||
namespace caf
|
||||
{
|
||||
template<>
|
||||
@ -65,6 +68,9 @@ RimWellPathCollection::RimWellPathCollection()
|
||||
|
||||
CAF_PDM_InitField(&showWellPathLabel, "ShowWellPathLabel", true, "Show well path labels", "", "", "");
|
||||
|
||||
cvf::Color3f defWellLabelColor = RiaApplication::instance()->preferences()->defaultWellLabelColor();
|
||||
CAF_PDM_InitField(&wellPathLabelColor, "WellPathLabelColor", defWellLabelColor, "Well label color", "", "", "");
|
||||
|
||||
CAF_PDM_InitField(&wellPathVisibility, "GlobalWellPathVisibility", WellVisibilityEnum(ALL_ON), "Global well path visibility", "", "", "");
|
||||
|
||||
CAF_PDM_InitField(&wellPathRadiusScaleFactor, "WellPathRadiusScale", 0.1, "Well Path radius scale", "", "", "");
|
||||
|
@ -52,6 +52,7 @@ public:
|
||||
typedef caf::AppEnum<RimWellPathCollection::WellVisibilityType> WellVisibilityEnum;
|
||||
|
||||
caf::PdmField<bool> showWellPathLabel;
|
||||
caf::PdmField<cvf::Color3f> wellPathLabelColor;
|
||||
|
||||
caf::PdmField<WellVisibilityEnum> wellPathVisibility;
|
||||
caf::PdmField<double> wellPathRadiusScaleFactor;
|
||||
|
Loading…
Reference in New Issue
Block a user