2021-10-29 15:41:03 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
2024-02-22 15:13:29 +01:00
|
|
|
// Copyright (C) 2024 Equinor ASA
|
2021-10-29 15:41:03 +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.
|
|
|
|
|
//
|
|
|
|
|
// 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>
|
|
|
|
|
// for more details.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2024-02-22 15:13:29 +01:00
|
|
|
class RimPolygon;
|
|
|
|
|
class RimPolygonInView;
|
2021-10-29 15:41:03 +02:00
|
|
|
|
2024-03-04 07:28:04 +01:00
|
|
|
class QString;
|
|
|
|
|
|
2024-02-22 15:13:29 +01:00
|
|
|
namespace caf
|
2021-10-29 15:41:03 +02:00
|
|
|
{
|
2024-02-22 15:13:29 +01:00
|
|
|
class PdmObject;
|
|
|
|
|
}
|
2021-10-29 15:41:03 +02:00
|
|
|
|
2024-02-22 15:13:29 +01:00
|
|
|
class RimPolygonTools
|
|
|
|
|
{
|
|
|
|
|
public:
|
2024-03-04 07:28:04 +01:00
|
|
|
static void activate3dEditOfPolygonInView( RimPolygon* polygon, caf::PdmObject* sourceObject );
|
|
|
|
|
static void selectPolygonInView( RimPolygon* polygon, caf::PdmObject* sourceObject );
|
|
|
|
|
static bool exportPolygonCsv( const RimPolygon* polygon, const QString& filePath );
|
|
|
|
|
static bool exportPolygonPol( const RimPolygon* polygon, const QString& filePath );
|
|
|
|
|
|
|
|
|
|
static QString polygonCacheName();
|
2024-02-22 15:13:29 +01:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
static RimPolygonInView* findPolygonInView( RimPolygon* polygon, caf::PdmObject* sourceObject );
|
2021-10-29 15:41:03 +02:00
|
|
|
};
|