2016-12-16 07:05:11 -06:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2016- Statoil ASA
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2016-12-16 07:05:11 -06:00
|
|
|
// 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.
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2016-12-16 07:05:11 -06:00
|
|
|
// 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.
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2016-12-16 07:05:11 -06:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2017-06-09 03:33:50 -05:00
|
|
|
#include "RimCheckableNamedObject.h"
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
#include "cafPdmChildArrayField.h"
|
2018-08-21 03:34:29 -05:00
|
|
|
#include "cafPdmChildField.h"
|
2016-12-16 07:05:11 -06:00
|
|
|
#include "cafPdmField.h"
|
|
|
|
#include "cafPdmObject.h"
|
|
|
|
|
2018-09-05 04:46:02 -05:00
|
|
|
#include <vector>
|
|
|
|
|
2017-01-02 04:59:30 -06:00
|
|
|
class RimWellPathFracture;
|
2016-12-16 07:05:11 -06:00
|
|
|
|
|
|
|
//==================================================================================================
|
2019-09-06 03:40:57 -05:00
|
|
|
///
|
|
|
|
///
|
2016-12-16 07:05:11 -06:00
|
|
|
//==================================================================================================
|
2017-06-09 03:33:50 -05:00
|
|
|
class RimWellPathFractureCollection : public RimCheckableNamedObject
|
2016-12-16 07:05:11 -06:00
|
|
|
{
|
2019-09-06 03:40:57 -05:00
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
2016-12-16 07:05:11 -06:00
|
|
|
public:
|
2023-04-14 07:07:45 -05:00
|
|
|
RimWellPathFractureCollection();
|
|
|
|
~RimWellPathFractureCollection() override;
|
2019-09-06 03:40:57 -05:00
|
|
|
|
2021-02-26 07:27:59 -06:00
|
|
|
bool hasFractures() const;
|
|
|
|
void addFracture( RimWellPathFracture* fracture );
|
2022-06-01 23:50:14 -05:00
|
|
|
void removeFracture( RimWellPathFracture* fracture );
|
2021-02-26 07:27:59 -06:00
|
|
|
void deleteFractures();
|
2019-09-06 03:40:57 -05:00
|
|
|
|
2018-09-07 06:32:53 -05:00
|
|
|
std::vector<RimWellPathFracture*> allFractures() const;
|
2018-09-07 06:24:56 -05:00
|
|
|
std::vector<RimWellPathFracture*> activeFractures() const;
|
2017-01-02 03:12:43 -06:00
|
|
|
|
2023-02-26 03:48:40 -06:00
|
|
|
void onChildDeleted( caf::PdmChildArrayFieldHandle* childArray, std::vector<caf::PdmObjectHandle*>& referringObjects ) override;
|
2021-01-26 08:32:18 -06:00
|
|
|
|
2017-06-09 03:33:50 -05:00
|
|
|
private:
|
2020-02-12 04:43:15 -06:00
|
|
|
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
|
2018-08-21 03:34:29 -05:00
|
|
|
|
2018-09-07 06:32:53 -05:00
|
|
|
private:
|
2021-02-26 07:27:59 -06:00
|
|
|
caf::PdmChildArrayField<RimWellPathFracture*> m_fractures;
|
2016-12-16 07:05:11 -06:00
|
|
|
};
|