mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
clang-format: Set column width to 140
* Set column width to 140 * Use c++20 * Remove redundant virtual
This commit is contained in:
@@ -113,8 +113,7 @@ bool RicPointTangentManipulator::eventFilter( QObject* obj, QEvent* inputEvent )
|
||||
|
||||
if ( m_partManager->isManipulatorActive() )
|
||||
{
|
||||
m_isDraggingInComparisonView =
|
||||
m_viewer->isMousePosWithinComparisonView( mouseEvent->x(), mouseEvent->y() );
|
||||
m_isDraggingInComparisonView = m_viewer->isMousePosWithinComparisonView( mouseEvent->x(), mouseEvent->y() );
|
||||
|
||||
emit notifySelected();
|
||||
|
||||
@@ -130,9 +129,7 @@ bool RicPointTangentManipulator::eventFilter( QObject* obj, QEvent* inputEvent )
|
||||
auto* mouseEvent = static_cast<QMouseEvent*>( inputEvent );
|
||||
|
||||
cvf::ref<cvf::RayIntersectSpec> rayIs =
|
||||
m_viewer->rayIntersectSpecFromWindowCoordinates( mouseEvent->pos().x(),
|
||||
mouseEvent->pos().y(),
|
||||
m_isDraggingInComparisonView );
|
||||
m_viewer->rayIntersectSpecFromWindowCoordinates( mouseEvent->pos().x(), mouseEvent->pos().y(), m_isDraggingInComparisonView );
|
||||
|
||||
if ( !rayIs.isNull() && rayIs->ray() )
|
||||
{
|
||||
|
||||
@@ -400,12 +400,8 @@ cvf::ref<cvf::DrawableGeo> RicPointTangentManipulatorPartMgr::createVerticalAxis
|
||||
geomBuilder->transformVertexRange( vxArraySizeFirstCylinder,
|
||||
geomBuilder->vertexCount() - 1,
|
||||
cvf::Mat4f::fromTranslation( { 0.0f, 0.0f, -1.0f } ) );
|
||||
geomBuilder->transformVertexRange( vxArraySizeFirstCylinder,
|
||||
geomBuilder->vertexCount() - 1,
|
||||
cvf::Mat4f::fromScaling( { s, s, s } ) );
|
||||
geomBuilder->transformVertexRange( vxArraySizeFirstCylinder,
|
||||
geomBuilder->vertexCount() - 1,
|
||||
cvf::Mat4f::fromTranslation( origin ) );
|
||||
geomBuilder->transformVertexRange( vxArraySizeFirstCylinder, geomBuilder->vertexCount() - 1, cvf::Mat4f::fromScaling( { s, s, s } ) );
|
||||
geomBuilder->transformVertexRange( vxArraySizeFirstCylinder, geomBuilder->vertexCount() - 1, cvf::Mat4f::fromTranslation( origin ) );
|
||||
|
||||
cvf::ref<cvf::Vec3fArray> vertexArray = geomBuilder->vertices();
|
||||
cvf::ref<cvf::UIntArray> indexArray = geomBuilder->triangles();
|
||||
@@ -484,9 +480,8 @@ void RicPointTangentManipulatorPartMgr::createAzimuthHandle()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
cvf::ref<cvf::DrawableGeo>
|
||||
RicPointTangentManipulatorPartMgr::createIndexedTriangelDrawableGeo( cvf::Vec3fArray* triangleVertexArray,
|
||||
cvf::UIntArray* triangleIndices )
|
||||
cvf::ref<cvf::DrawableGeo> RicPointTangentManipulatorPartMgr::createIndexedTriangelDrawableGeo( cvf::Vec3fArray* triangleVertexArray,
|
||||
cvf::UIntArray* triangleIndices )
|
||||
{
|
||||
using namespace cvf;
|
||||
ref<DrawableGeo> geo = new DrawableGeo;
|
||||
@@ -545,9 +540,7 @@ void RicPointTangentManipulatorPartMgr::addActiveModePart( cvf::DrawableGeo* g
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
cvf::ref<cvf::Part> RicPointTangentManipulatorPartMgr::createPart( cvf::DrawableGeo* geo,
|
||||
const cvf::Color4f& color,
|
||||
const cvf::String& partName )
|
||||
cvf::ref<cvf::Part> RicPointTangentManipulatorPartMgr::createPart( cvf::DrawableGeo* geo, const cvf::Color4f& color, const cvf::String& partName )
|
||||
{
|
||||
cvf::ref<cvf::Part> part = new cvf::Part;
|
||||
part->setName( partName );
|
||||
|
||||
@@ -91,9 +91,8 @@ private:
|
||||
void addActiveModePart( cvf::DrawableGeo* geo, const cvf::Color4f& color, HandleType handleId, const cvf::String& partName );
|
||||
|
||||
static cvf::ref<cvf::DrawableGeo> createTriangelDrawableGeo( cvf::Vec3fArray* triangleVertexArray );
|
||||
static cvf::ref<cvf::DrawableGeo> createIndexedTriangelDrawableGeo( cvf::Vec3fArray* triangleVertexArray,
|
||||
cvf::UIntArray* triangleIndices );
|
||||
static cvf::ref<cvf::Part> createPart( cvf::DrawableGeo* geo, const cvf::Color4f& color, const cvf::String& partName );
|
||||
static cvf::ref<cvf::DrawableGeo> createIndexedTriangelDrawableGeo( cvf::Vec3fArray* triangleVertexArray, cvf::UIntArray* triangleIndices );
|
||||
static cvf::ref<cvf::Part> createPart( cvf::DrawableGeo* geo, const cvf::Color4f& color, const cvf::String& partName );
|
||||
|
||||
private:
|
||||
std::map<HandleType, cvf::ref<cvf::Part>> m_handleParts; // These arrays have the same length
|
||||
|
||||
@@ -200,8 +200,8 @@ void RicWellTarget3dEditor::slotUpdated( const cvf::Vec3d& origin, const cvf::Ve
|
||||
modeledWellPath->wellPathTieIn()->updateChildWellGeometry();
|
||||
}
|
||||
|
||||
bool modifyAllTargetsOnAllWells = ( ( QApplication::keyboardModifiers() & Qt::ControlModifier ) &&
|
||||
( QApplication::keyboardModifiers() & Qt::SHIFT ) );
|
||||
bool modifyAllTargetsOnAllWells =
|
||||
( ( QApplication::keyboardModifiers() & Qt::ControlModifier ) && ( QApplication::keyboardModifiers() & Qt::SHIFT ) );
|
||||
|
||||
if ( modifyAllTargetsOnAllWells )
|
||||
{
|
||||
@@ -245,8 +245,8 @@ void RicWellTarget3dEditor::slotUpdated( const cvf::Vec3d& origin, const cvf::Ve
|
||||
{
|
||||
// Modification of top level well path
|
||||
|
||||
bool modifyReferencePoint = ( ( QApplication::keyboardModifiers() & Qt::ControlModifier ) &&
|
||||
( QApplication::keyboardModifiers() & Qt::SHIFT ) );
|
||||
bool modifyReferencePoint =
|
||||
( ( QApplication::keyboardModifiers() & Qt::ControlModifier ) && ( QApplication::keyboardModifiers() & Qt::SHIFT ) );
|
||||
if ( modifyReferencePoint )
|
||||
{
|
||||
// Find all linked wells and update reference point with delta change
|
||||
@@ -278,8 +278,8 @@ void RicWellTarget3dEditor::slotUpdated( const cvf::Vec3d& origin, const cvf::Ve
|
||||
}
|
||||
else if ( modeledWellPath && !modeledWellPath->isTopLevelWellPath() )
|
||||
{
|
||||
bool modifyAllTargetsOnAllWells = ( ( QApplication::keyboardModifiers() & Qt::ControlModifier ) &&
|
||||
( QApplication::keyboardModifiers() & Qt::SHIFT ) );
|
||||
bool modifyAllTargetsOnAllWells =
|
||||
( ( QApplication::keyboardModifiers() & Qt::ControlModifier ) && ( QApplication::keyboardModifiers() & Qt::SHIFT ) );
|
||||
if ( modifyAllTargetsOnAllWells )
|
||||
{
|
||||
// Update all well targets on all connected laterals
|
||||
|
||||
Reference in New Issue
Block a user