#13807 Add Python scripting support for generic view (surface/polygon visibility)

Based on magnesj/ResInsight#1078:
- Lift surfaceInViewCollection()/polygonInViewCollection() to virtual Rim3dView methods
- Make RimGeneric3dView scriptable as GenericView
- Add Project.create_generic_view() Python method
- RimcGridView surface/polygon methods now work on any Rim3dView
- Add Python tests and example script
This commit is contained in:
Magne Sjaastad committed 2026-09-28 18:35:28 +02:00
1 parent 7838290a4d
commit 34f5c52ca7
11 files changed
+192 -22

No files matched your search

@@ -109,6 +109,23 @@ private:
caf::PdmField<QString> m_actnumKey;
};
//==================================================================================================
/// Create a generic (case-less) 3D view for showing surfaces, polygons and well paths without a grid case.
//==================================================================================================
class RimProject_createGenericView : public caf::PdmObjectCreationMethod
{
CAF_PDM_HEADER_INIT;
public:
RimProject_createGenericView( caf::PdmObjectHandle* self );
std::expected<caf::PdmObjectHandle*, QString> execute() override;
QString classKeywordReturnedType() const override;
private:
caf::PdmField<QString> m_name;
};
//==================================================================================================
///
//==================================================================================================