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:
@@ -23,10 +23,6 @@
|
||||
#include "RimPolygonInView.h"
|
||||
#include "RimTools.h"
|
||||
|
||||
#include "cafDisplayCoordTransform.h"
|
||||
|
||||
#include "cvfModelBasicList.h"
|
||||
|
||||
CAF_PDM_SOURCE_INIT( RimPolygonInViewCollection, "RimPolygonInViewCollection" );
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -83,15 +79,7 @@ void RimPolygonInViewCollection::syncPolygonsInView()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimPolygonInViewCollection::appendPartsToModel( cvf::ModelBasicList* model,
|
||||
caf::DisplayCoordTransform* scaleTransform,
|
||||
const cvf::BoundingBox& boundingBox )
|
||||
std::vector<RimPolygonInView*> RimPolygonInViewCollection::polygonsInView() const
|
||||
{
|
||||
for ( auto polygon : m_polygons )
|
||||
{
|
||||
if ( polygon && polygon->isChecked() )
|
||||
{
|
||||
polygon->appendPartsToModel( model, scaleTransform, boundingBox );
|
||||
}
|
||||
}
|
||||
return m_polygons.childrenByType();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user