mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Use project polygons from polygon cell filter
* Use RimPolygonInView to edit locally defined polygon * Add scaling to polygon in view * Move polygon line visualization to RimGridView * Rename to polygonInViewCollection * Show appearance for local polygon
This commit is contained in:
@@ -78,7 +78,7 @@ RimPolygonAppearance::RimPolygonAppearance()
|
||||
{
|
||||
CAF_PDM_InitObject( "Polygon", ":/PolylinesFromFile16x16.png" );
|
||||
|
||||
CAF_PDM_InitField( &m_isClosed, "IsClosed", false, "Closed Polygon" );
|
||||
CAF_PDM_InitField( &m_isClosed, "IsClosed", true, "Closed Polygon" );
|
||||
CAF_PDM_InitField( &m_showLines, "ShowLines", true, "Show Lines" );
|
||||
CAF_PDM_InitField( &m_showSpheres, "ShowSpheres", false, "Show Spheres" );
|
||||
|
||||
@@ -106,6 +106,15 @@ void RimPolygonAppearance::applyAppearanceSettings( RigPolyLinesData* polyLinesD
|
||||
polyLinesData->setVisibility( m_showLines, m_showSpheres );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimPolygonAppearance::setIsClosed( bool isClosed )
|
||||
{
|
||||
m_isClosed = isClosed;
|
||||
objectChanged.send();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user