mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-30 17:10:19 -05:00
#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:
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;
|
||||
};
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
//==================================================================================================
|
||||
|
||||
Reference in new issue
Block a user