mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5125 Make each well measurement a checkable entity.
This commit is contained in:
@@ -20,16 +20,10 @@
|
||||
#include "RimCheckableNamedObject.h"
|
||||
|
||||
#include "cafPdmChildArrayField.h"
|
||||
#include "cafPdmChildField.h"
|
||||
#include "cafPdmField.h"
|
||||
#include "cafPdmObject.h"
|
||||
#include "cafPdmProxyValueField.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
class RimWellMeasurement;
|
||||
class RimRegularLegendConfig;
|
||||
class RiuViewer;
|
||||
class RimWellMeasurementInView;
|
||||
|
||||
class RimWellMeasurementInViewCollection : public RimCheckableNamedObject
|
||||
{
|
||||
@@ -39,22 +33,15 @@ public:
|
||||
RimWellMeasurementInViewCollection();
|
||||
~RimWellMeasurementInViewCollection() override;
|
||||
|
||||
RimRegularLegendConfig* legendConfig();
|
||||
std::vector<QString> measurementKinds() const;
|
||||
|
||||
void updateLegendRangesTextAndVisibility( RiuViewer* nativeOrOverrideViewer, bool isUsingOverrideViewer );
|
||||
std::vector<RimWellMeasurementInView*> measurements() const;
|
||||
|
||||
protected:
|
||||
void defineUiTreeOrdering( caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName = "" ) override;
|
||||
void fieldChangedByUi( const caf::PdmFieldHandle* changedField,
|
||||
const QVariant& oldValue,
|
||||
const QVariant& newValue ) override;
|
||||
QList<caf::PdmOptionItemInfo> calculateValueOptions( const caf::PdmFieldHandle* fieldNeedingOptions,
|
||||
bool* useOptionsOnly );
|
||||
|
||||
bool updateLegendData();
|
||||
void initAfterRead();
|
||||
|
||||
private:
|
||||
caf::PdmChildField<RimRegularLegendConfig*> m_legendConfig;
|
||||
caf::PdmField<std::vector<QString>> m_measurementKinds;
|
||||
caf::PdmChildArrayField<RimWellMeasurementInView*> m_measurementsInView;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user