#12593 Simplify object methods exposed to Python

This commit is contained in:
Magne Sjaastad authored and GitHub committed 2025-06-16 11:05:00 +02:00
1 parent b99a213ae7
commit 309c4af07e
63 files changed
+357 -1050

No files matched your search

@@ -39,9 +39,10 @@ CAF_PDM_OBJECT_METHOD_SOURCE_INIT( RimStimPlanModelTemplateCollection,
//--------------------------------------------------------------------------------------------------
RimcStimPlanModelTemplateCollection_appendStimPlanModelTemplate::RimcStimPlanModelTemplateCollection_appendStimPlanModelTemplate(
caf::PdmObjectHandle* self )
: caf::PdmObjectMethod( self )
: caf::PdmObjectCreationMethod( self )
{
CAF_PDM_InitObject( "Create StimPlan Model Template", "", "", "Create a new StimPlan Model Template" );
CAF_PDM_InitScriptableFieldNoDefault( &m_eclipseCase, "EclipseCase", "", "", "", "Eclipse Case" );
CAF_PDM_InitScriptableField( &m_timeStep, "TimeStep", 0, "", "", "", "Time Step" );
@@ -76,15 +77,7 @@ std::expected<caf::PdmObjectHandle*, QString> RimcStimPlanModelTemplateCollectio
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RimcStimPlanModelTemplateCollection_appendStimPlanModelTemplate::resultIsPersistent() const
QString RimcStimPlanModelTemplateCollection_appendStimPlanModelTemplate::classKeywordReturnedType() const
{
return true;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
std::unique_ptr<caf::PdmObjectHandle> RimcStimPlanModelTemplateCollection_appendStimPlanModelTemplate::defaultResult() const
{
return std::unique_ptr<caf::PdmObjectHandle>( new RimStimPlanModelTemplate );
return RimStimPlanModelTemplate::classKeywordStatic();
}