mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-15 01:42:13 -05:00
clang-format: Set column width to 140
* Set column width to 140 * Use c++20 * Remove redundant virtual
This commit is contained in:
1 parent
8768e186d8
commit
f8c5cf389f
1535 files changed
+10456
-19398
No files matched your search
@@ -43,8 +43,7 @@
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RivReachCircleAnnotationPartMgr::RivReachCircleAnnotationPartMgr( Rim3dView* view,
|
||||
RimReachCircleAnnotationInView* annotationInView )
|
||||
RivReachCircleAnnotationPartMgr::RivReachCircleAnnotationPartMgr( Rim3dView* view, RimReachCircleAnnotationInView* annotationInView )
|
||||
: m_rimView( view )
|
||||
, m_rimAnnotationInView( annotationInView )
|
||||
{
|
||||
@@ -75,9 +74,8 @@ void RivReachCircleAnnotationPartMgr::buildParts( const caf::DisplayCoordTransfo
|
||||
auto* collection = annotationCollection();
|
||||
if ( collection )
|
||||
{
|
||||
std::vector<Vec3d> pointsInDomain =
|
||||
computeCirclePointsInDomain( collection->snapAnnotations(), collection->annotationPlaneZ() );
|
||||
std::vector<cvf::Vec3d> points = displayXf->transformToDisplayCoords( pointsInDomain );
|
||||
std::vector<Vec3d> pointsInDomain = computeCirclePointsInDomain( collection->snapAnnotations(), collection->annotationPlaneZ() );
|
||||
std::vector<cvf::Vec3d> points = displayXf->transformToDisplayCoords( pointsInDomain );
|
||||
|
||||
cvf::ref<cvf::DrawableGeo> drawableGeo = RivPolylineGenerator::createLineAlongPolylineDrawable( points );
|
||||
|
||||
@@ -99,16 +97,16 @@ void RivReachCircleAnnotationPartMgr::buildParts( const caf::DisplayCoordTransfo
|
||||
|
||||
// Center point part
|
||||
{
|
||||
auto centerPos = displayXf->transformToDisplayCoord( rimAnnotation->centerPoint() );
|
||||
double symbolSize = 20;
|
||||
double xMin = centerPos.x() - symbolSize / 2.0;
|
||||
double xMax = xMin + symbolSize;
|
||||
double yMin = centerPos.y() - symbolSize / 2.0;
|
||||
double yMax = yMin + symbolSize;
|
||||
double z = centerPos.z();
|
||||
std::vector<Vec3d> line1 = { { xMin, yMin, z }, { xMax, yMax, z } };
|
||||
std::vector<Vec3d> line2 = { { xMax, yMin, z }, { xMin, yMax, z } };
|
||||
std::vector<std::vector<Vec3d>> symbol = { line1, line2 };
|
||||
auto centerPos = displayXf->transformToDisplayCoord( rimAnnotation->centerPoint() );
|
||||
double symbolSize = 20;
|
||||
double xMin = centerPos.x() - symbolSize / 2.0;
|
||||
double xMax = xMin + symbolSize;
|
||||
double yMin = centerPos.y() - symbolSize / 2.0;
|
||||
double yMax = yMin + symbolSize;
|
||||
double z = centerPos.z();
|
||||
std::vector<Vec3d> line1 = { { xMin, yMin, z }, { xMax, yMax, z } };
|
||||
std::vector<Vec3d> line2 = { { xMax, yMin, z }, { xMin, yMax, z } };
|
||||
std::vector<std::vector<Vec3d>> symbol = { line1, line2 };
|
||||
cvf::ref<cvf::DrawableGeo> drawableGeo = RivPolylineGenerator::createLineAlongPolylineDrawable( symbol );
|
||||
|
||||
cvf::ref<cvf::Part> part = new cvf::Part;
|
||||
|
||||
Reference in new issue
Block a user