mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-27 23:50:19 -05:00
#13841 Python: Add get_property API for regular surfaces
This commit is contained in:
1 parent
e8223485b1
commit
68b193cd56
8 files changed
+118
-1
No files matched your search
@@ -405,6 +405,16 @@ void RimRegularSurface::setPropertyAsDepth( const QString& key )
|
||||
m_depthProperty = key;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<float> RimRegularSurface::getProperty( const QString& key ) const
|
||||
{
|
||||
auto it = m_properties.find( key );
|
||||
if ( it != m_properties.end() ) return it->second;
|
||||
return {};
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -42,6 +42,8 @@ public:
|
||||
void setProperty( const QString& key, const std::vector<float>& values );
|
||||
void setPropertyAsDepth( const QString& key );
|
||||
|
||||
std::vector<float> getProperty( const QString& key ) const;
|
||||
|
||||
int nx() const;
|
||||
int ny() const;
|
||||
double originX() const;
|
||||
|
||||
Reference in new issue
Block a user