mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-30 17:10:19 -05:00
#14772 Python: Add Case.create_view as object method and forward createView to it
RimCase_createView creates a 3D view in an Eclipse or GeoMech case and returns it. RicfCreateView forwards to it and wraps the view id in the legacy createViewResult. The hand-written Python create_view() wrapper is removed since the generated method has the same name and signature.
This commit is contained in:
1 parent
3eb63c0b8e
commit
bdef98203b
4 files changed
+89
-61
No files matched your search
@@ -24,6 +24,8 @@
|
||||
|
||||
#include <QString>
|
||||
|
||||
class Rim3dView;
|
||||
|
||||
//==================================================================================================
|
||||
/// Replace the grid file of a case (Eclipse result case or GeoMech case) and reload the project.
|
||||
///
|
||||
@@ -47,3 +49,17 @@ private:
|
||||
caf::PdmField<QString> m_newGridFile;
|
||||
caf::PdmField<QString> m_projectFile;
|
||||
};
|
||||
|
||||
//==================================================================================================
|
||||
/// Create a new 3D view in the case. Supports Eclipse cases and GeoMech cases.
|
||||
//==================================================================================================
|
||||
class RimCase_createView : public caf::PdmObjectCreationMethod
|
||||
{
|
||||
CAF_PDM_HEADER_INIT;
|
||||
|
||||
public:
|
||||
RimCase_createView( caf::PdmObjectHandle* self );
|
||||
|
||||
std::expected<caf::PdmObjectHandle*, QString> execute() override;
|
||||
QString classKeywordReturnedType() const override;
|
||||
};
|
||||
Reference in new issue
Block a user