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:
@@ -2,17 +2,17 @@
|
||||
//
|
||||
// Copyright (C) Statoil ASA
|
||||
// Copyright (C) Ceetron Solutions AS
|
||||
//
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
@@ -24,36 +24,34 @@
|
||||
#include "RimEclipseView.h"
|
||||
#include "RimIntersectionCollection.h"
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RimFaultInView, "Fault");
|
||||
CAF_PDM_SOURCE_INIT( RimFaultInView, "Fault" );
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimFaultInView::RimFaultInView()
|
||||
{
|
||||
CAF_PDM_InitObject("RimFault", ":/draw_style_faults_24x24.png", "", "");
|
||||
CAF_PDM_InitObject( "RimFault", ":/draw_style_faults_24x24.png", "", "" );
|
||||
|
||||
CAF_PDM_InitFieldNoDefault(&name, "FaultName", "Name", "", "", "");
|
||||
name.uiCapability()->setUiHidden(true);
|
||||
name.uiCapability()->setUiReadOnly(true);
|
||||
CAF_PDM_InitFieldNoDefault( &name, "FaultName", "Name", "", "", "" );
|
||||
name.uiCapability()->setUiHidden( true );
|
||||
name.uiCapability()->setUiReadOnly( true );
|
||||
|
||||
CAF_PDM_InitField(&showFault, "ShowFault", true, "Show Fault", "", "", "");
|
||||
showFault.uiCapability()->setUiHidden(true);
|
||||
CAF_PDM_InitField( &showFault, "ShowFault", true, "Show Fault", "", "", "" );
|
||||
showFault.uiCapability()->setUiHidden( true );
|
||||
|
||||
CAF_PDM_InitField(&faultColor, "Color", cvf::Color3f(0.588f, 0.588f, 0.804f), "Fault Color", "", "", "");
|
||||
CAF_PDM_InitField( &faultColor, "Color", cvf::Color3f( 0.588f, 0.588f, 0.804f ), "Fault Color", "", "", "" );
|
||||
|
||||
m_rigFault = nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimFaultInView::~RimFaultInView()
|
||||
{
|
||||
}
|
||||
RimFaultInView::~RimFaultInView() {}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
caf::PdmFieldHandle* RimFaultInView::userDescriptionField()
|
||||
{
|
||||
@@ -61,19 +59,21 @@ caf::PdmFieldHandle* RimFaultInView::userDescriptionField()
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimFaultInView::fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue)
|
||||
void RimFaultInView::fieldChangedByUi( const caf::PdmFieldHandle* changedField,
|
||||
const QVariant& oldValue,
|
||||
const QVariant& newValue )
|
||||
{
|
||||
this->updateUiIconFromToggleField();
|
||||
|
||||
if (&faultColor == changedField || &showFault == changedField)
|
||||
if ( &faultColor == changedField || &showFault == changedField )
|
||||
{
|
||||
RimEclipseView* reservoirView = nullptr;
|
||||
|
||||
this->firstAncestorOrThisOfType(reservoirView);
|
||||
this->firstAncestorOrThisOfType( reservoirView );
|
||||
|
||||
if (reservoirView)
|
||||
if ( reservoirView )
|
||||
{
|
||||
reservoirView->scheduleCreateDisplayModelAndRedraw();
|
||||
reservoirView->crossSectionCollection()->scheduleCreateDisplayModelAndRedraw2dIntersectionViews();
|
||||
@@ -82,7 +82,7 @@ void RimFaultInView::fieldChangedByUi(const caf::PdmFieldHandle* changedField, c
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimFaultInView::initAfterRead()
|
||||
{
|
||||
@@ -90,7 +90,7 @@ void RimFaultInView::initAfterRead()
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
caf::PdmFieldHandle* RimFaultInView::objectToggleField()
|
||||
{
|
||||
@@ -98,9 +98,9 @@ caf::PdmFieldHandle* RimFaultInView::objectToggleField()
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimFaultInView::setFaultGeometry(const RigFault* faultGeometry)
|
||||
void RimFaultInView::setFaultGeometry( const RigFault* faultGeometry )
|
||||
{
|
||||
m_rigFault = faultGeometry;
|
||||
|
||||
@@ -108,10 +108,9 @@ void RimFaultInView::setFaultGeometry(const RigFault* faultGeometry)
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
const RigFault* RimFaultInView::faultGeometry() const
|
||||
{
|
||||
return m_rigFault;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user