mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4683 clang-format on all files in ApplicationCode
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2017 - Statoil ASA
|
||||
//
|
||||
//
|
||||
// ResInsight is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
//
|
||||
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
// FITNESS FOR A PARTICULAR PURPOSE.
|
||||
//
|
||||
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
||||
//
|
||||
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
||||
// for more details.
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
@@ -21,24 +21,24 @@
|
||||
#include "RimCheckableObject.h"
|
||||
|
||||
#include "cafAppEnum.h"
|
||||
#include "cafPdmChildArrayField.h"
|
||||
#include "cafPdmChildField.h"
|
||||
#include "cafPdmField.h"
|
||||
#include "cafPdmChildArrayField.h"
|
||||
|
||||
// Include to make Pdm work for cvf::Color
|
||||
#include "cafPdmFieldCvfColor.h"
|
||||
|
||||
namespace caf {
|
||||
class PdmOptionItemInfo;
|
||||
namespace caf
|
||||
{
|
||||
class PdmOptionItemInfo;
|
||||
}
|
||||
|
||||
|
||||
class RimRegularLegendConfig;
|
||||
class RimFractureTemplateCollection;
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
///
|
||||
///
|
||||
///
|
||||
//==================================================================================================
|
||||
class RimStimPlanColors : public RimCheckableObject
|
||||
{
|
||||
@@ -50,44 +50,52 @@ public:
|
||||
COLOR_INTERPOLATION,
|
||||
SINGLE_ELEMENT_COLOR
|
||||
};
|
||||
|
||||
public:
|
||||
RimStimPlanColors();
|
||||
~RimStimPlanColors() override;
|
||||
|
||||
RimRegularLegendConfig* activeLegend() const;
|
||||
QString uiResultName() const;
|
||||
void setDefaultResultName();
|
||||
QString unit() const;
|
||||
cvf::Color3f defaultColor() const;
|
||||
bool showStimPlanMesh() const { return m_showStimPlanMesh; }
|
||||
void setShowStimPlanMesh(bool showStimPlanMesh);
|
||||
RimRegularLegendConfig* activeLegend() const;
|
||||
QString uiResultName() const;
|
||||
void setDefaultResultName();
|
||||
QString unit() const;
|
||||
cvf::Color3f defaultColor() const;
|
||||
bool showStimPlanMesh() const
|
||||
{
|
||||
return m_showStimPlanMesh;
|
||||
}
|
||||
void setShowStimPlanMesh( bool showStimPlanMesh );
|
||||
|
||||
void loadDataAndUpdate();
|
||||
void updateLegendData();
|
||||
void loadDataAndUpdate();
|
||||
void updateLegendData();
|
||||
|
||||
void updateStimPlanTemplates() const;
|
||||
StimPlanResultColorType stimPlanResultColorType() const { return m_stimPlanCellVizMode(); };
|
||||
void updateStimPlanTemplates() const;
|
||||
StimPlanResultColorType stimPlanResultColorType() const
|
||||
{
|
||||
return m_stimPlanCellVizMode();
|
||||
};
|
||||
|
||||
void updateConductivityResultName();
|
||||
void updateConductivityResultName();
|
||||
|
||||
protected:
|
||||
QList<caf::PdmOptionItemInfo> calculateValueOptions(const caf::PdmFieldHandle* fieldNeedingOptions, bool* useOptionsOnly) override;
|
||||
void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue) override;
|
||||
void defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName = "") override;
|
||||
void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) override;
|
||||
QList<caf::PdmOptionItemInfo> calculateValueOptions( const caf::PdmFieldHandle* fieldNeedingOptions,
|
||||
bool* useOptionsOnly ) override;
|
||||
void fieldChangedByUi( const caf::PdmFieldHandle* changedField,
|
||||
const QVariant& oldValue,
|
||||
const QVariant& newValue ) override;
|
||||
void defineUiTreeOrdering( caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName = "" ) override;
|
||||
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
||||
|
||||
private:
|
||||
RimFractureTemplateCollection* fractureTemplateCollection() const;
|
||||
|
||||
static QString toResultName(const QString& resultNameAndUnit);
|
||||
static QString toUnit(const QString& resultNameAndUnit);
|
||||
RimFractureTemplateCollection* fractureTemplateCollection() const;
|
||||
|
||||
static QString toResultName( const QString& resultNameAndUnit );
|
||||
static QString toUnit( const QString& resultNameAndUnit );
|
||||
|
||||
private:
|
||||
caf::PdmField<cvf::Color3f> m_defaultColor;
|
||||
caf::PdmField<QString> m_resultNameAndUnit;
|
||||
caf::PdmChildArrayField<RimRegularLegendConfig*> m_legendConfigurations;
|
||||
caf::PdmField<bool> m_showStimPlanMesh;
|
||||
caf::PdmField<cvf::Color3f> m_defaultColor;
|
||||
caf::PdmField<QString> m_resultNameAndUnit;
|
||||
caf::PdmChildArrayField<RimRegularLegendConfig*> m_legendConfigurations;
|
||||
caf::PdmField<bool> m_showStimPlanMesh;
|
||||
caf::PdmField<caf::AppEnum<StimPlanResultColorType>> m_stimPlanCellVizMode;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user