-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Support filtering by formation/polygon when calculating statistics #12086
base: dev
Are you sure you want to change the base?
Conversation
6050b0e
to
4c0f465
Compare
Handle formation names for reload of project.
4c08792
to
c47b10b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well organized and easy to read code. Consider naming improvements.
|
||
class RimFormationNames; | ||
|
||
class RimFormationTools |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using namespace RimFormationTools
instead of class RimFormationTools
{ | ||
if ( !polygonCollection->allPolygons().empty() ) | ||
{ | ||
auto polyGrp = uiOrdering.addNewGroup( "Polygon Selection" ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add skipRemainingFields
at end of this function to make sure the polygon selection is not visibible if no polygons are available.
{ | ||
cvf::Vec3d pos3D( point ); | ||
|
||
bool bIncludesCell = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider bool includesCell = false;
RimEclipseCase::initAfterRead(); | ||
|
||
// handle special formations for ensembles | ||
auto ensemble = firstAncestorOrThisOfType<RimEclipseCaseEnsemble>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider
if ( auto ensemble = firstAncestorOrThisOfType<RimEclipseCaseEnsemble>() )
//-------------------------------------------------------------------------------------------------- | ||
std::vector<std::vector<cvf::Vec3d>> RimStatisticsContourMap::selectedPolygons() | ||
{ | ||
std::vector<std::vector<cvf::Vec3d>> allLines; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a lot of text std::vector<std::vector<cvf::Vec3d>
Consider adding a using
statement in RigPolyLinesData
.
Suggested naming
using PolyLineCoords = std::vector<std::vector<cvf::Vec3d>>;
Closes #12057
Closes #12066