2015-04-27 10:25:04 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// Copyright (C) 2015- Statoil ASA
|
|
|
|
|
// Copyright (C) 2015- Ceetron Solutions AS
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2015-04-27 10:25:04 +02: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 10:40:57 +02:00
|
|
|
//
|
2015-04-27 10:25:04 +02: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 10:40:57 +02:00
|
|
|
//
|
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2015-04-27 10:25:04 +02:00
|
|
|
// for more details.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "RigFemPart.h"
|
|
|
|
|
#include "cvfCollection.h"
|
|
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
class RigFemPartCollection : public cvf::Object
|
2015-04-27 10:25:04 +02:00
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
RigFemPartCollection();
|
2019-01-10 22:12:11 +01:00
|
|
|
~RigFemPartCollection() override;
|
2015-04-27 10:25:04 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
void addFemPart( RigFemPart* part );
|
|
|
|
|
RigFemPart* part( size_t index );
|
|
|
|
|
const RigFemPart* part( size_t index ) const;
|
2015-04-27 13:51:22 +02:00
|
|
|
|
|
|
|
|
int partCount() const;
|
2015-04-27 10:25:04 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
size_t totalElementCount() const;
|
|
|
|
|
float characteristicElementSize() const;
|
2015-11-16 07:16:30 +01:00
|
|
|
cvf::BoundingBox boundingBox() const;
|
2015-06-01 16:37:22 +02:00
|
|
|
|
2015-04-27 10:25:04 +02:00
|
|
|
private:
|
|
|
|
|
cvf::Collection<RigFemPart> m_femParts;
|
|
|
|
|
};
|