diff --git a/ApplicationLibCode/ModelVisualization/Riv3dWellLogPlanePartMgr.cpp b/ApplicationLibCode/ModelVisualization/Riv3dWellLogPlanePartMgr.cpp index 605321c144..a6f8712f08 100644 --- a/ApplicationLibCode/ModelVisualization/Riv3dWellLogPlanePartMgr.cpp +++ b/ApplicationLibCode/ModelVisualization/Riv3dWellLogPlanePartMgr.cpp @@ -141,6 +141,7 @@ void Riv3dWellLogPlanePartMgr::append3dWellLogCurveToModel( cvf::ModelBasicList* cvf::ref effect = meshEffectGen.generateCachedEffect(); cvf::ref part = new cvf::Part; + part->setName( "append3dWellLogCurveToModel" ); part->setDrawable( curveDrawable.p() ); part->setEffect( effect.p() ); @@ -244,6 +245,7 @@ void Riv3dWellLogPlanePartMgr::appendDrawSurfaceToModel( cvf::ModelBasicList* cvf::ref part = createPart( background.p(), backgroundEffect.p() ); if ( part.notNull() ) { + part->setName( "Riv3dWellLogPlanePartMgr::background" ); model->addPart( part.p() ); part->setSourceInfo( sourceInfo.p() ); } @@ -257,6 +259,7 @@ void Riv3dWellLogPlanePartMgr::appendDrawSurfaceToModel( cvf::ModelBasicList* cvf::ref part = createPart( border.p(), borderEffect.p() ); if ( part.notNull() ) { + part->setName( "Riv3dWellLogPlanePartMgr::border" ); model->addPart( part.p() ); } } @@ -273,6 +276,7 @@ void Riv3dWellLogPlanePartMgr::appendDrawSurfaceToModel( cvf::ModelBasicList* cvf::ref part = createPart( normals.p(), curveNormalsEffect.p() ); if ( part.notNull() ) { + part->setName( "Riv3dWellLogPlanePartMgr::normals" ); model->addPart( part.p() ); part->setSourceInfo( sourceInfo.p() ); } diff --git a/ApplicationLibCode/ModelVisualization/RivContourMapProjectionPartMgr.cpp b/ApplicationLibCode/ModelVisualization/RivContourMapProjectionPartMgr.cpp index 034c4f4f1e..7077117ce4 100644 --- a/ApplicationLibCode/ModelVisualization/RivContourMapProjectionPartMgr.cpp +++ b/ApplicationLibCode/ModelVisualization/RivContourMapProjectionPartMgr.cpp @@ -82,6 +82,7 @@ void RivContourMapProjectionPartMgr::appendPickPointVisToModel( cvf::ModelBasicL cvf::ref effect = meshEffectGen.generateCachedEffect(); cvf::ref part = new cvf::Part; + part->setName( "RivContourMapProjectionPartMgr::appendPickPointVisToModel" ); part->setDrawable( drawable.p() ); part->setEffect( effect.p() ); part->setSourceInfo( new RivMeshLinesSourceInfo( m_contourMapProjection.p() ) ); @@ -158,6 +159,7 @@ void RivContourMapProjectionPartMgr::appendContourLinesToModel( const cvf::Camer cvf::ref effect = meshEffectGen.generateCachedEffect(); cvf::ref part = new cvf::Part; + part->setName( "RivContourMapProjectionPartMgr::contourDrawable_mesh" ); part->setDrawable( contourDrawable.p() ); part->setEffect( effect.p() ); part->setPriority( RivPartPriority::MeshLines ); @@ -173,6 +175,7 @@ void RivContourMapProjectionPartMgr::appendContourLinesToModel( const cvf::Camer for ( auto labelDrawableRef : labelDrawables ) { cvf::ref part = new cvf::Part; + part->setName( "RivContourMapProjectionPartMgr::labelDrawableRef" ); part->setDrawable( labelDrawableRef.p() ); part->setEffect( m_labelEffect.p() ); part->setPriority( RivPartPriority::Text ); @@ -237,6 +240,7 @@ cvf::ref geo->setVertexArray( vertexArray.p() ); cvf::ref part = new cvf::Part; + part->setName( "RivContourMapProjectionPartMgr::createProjectionMapPart" ); part->setDrawable( geo.p() ); cvf::ScalarMapper* mapper = m_contourMapProjection->legendConfig()->scalarMapper(); diff --git a/ApplicationLibCode/ModelVisualization/RivElementVectorResultPartMgr.cpp b/ApplicationLibCode/ModelVisualization/RivElementVectorResultPartMgr.cpp index a689b5bb1b..a8ea28a5f6 100644 --- a/ApplicationLibCode/ModelVisualization/RivElementVectorResultPartMgr.cpp +++ b/ApplicationLibCode/ModelVisualization/RivElementVectorResultPartMgr.cpp @@ -372,6 +372,8 @@ cvf::ref drawable->setTextureCoordArray( lineTexCoords.p() ); cvf::ref part = new cvf::Part; + part->setName( "RivElementVectorResultPartMgr::createPart" ); + part->setDrawable( drawable.p() ); part->setEffect( effect.p() ); diff --git a/ApplicationLibCode/ModelVisualization/RivPipeGeometryGenerator.cpp b/ApplicationLibCode/ModelVisualization/RivPipeGeometryGenerator.cpp index 2bbe45fd78..a01bc55737 100644 --- a/ApplicationLibCode/ModelVisualization/RivPipeGeometryGenerator.cpp +++ b/ApplicationLibCode/ModelVisualization/RivPipeGeometryGenerator.cpp @@ -801,6 +801,7 @@ void RivPipeGeometryGenerator::cylinderWithCenterLineParts( cvf::CollectionsetName( "RivPipeGeometryGenerator::surface" ); part->setDrawable( surfaceGeo.p() ); caf::SurfaceEffectGenerator surfaceGen( cvf::Color4f( color ), caf::PO_1 ); @@ -815,6 +816,7 @@ void RivPipeGeometryGenerator::cylinderWithCenterLineParts( cvf::CollectionsetName( "RivPipeGeometryGenerator::centerLineGeo" ); part->setDrawable( centerLineGeo.p() ); caf::SurfaceEffectGenerator surfaceGen( cvf::Color4f( color ), caf::PO_1 ); @@ -844,6 +846,7 @@ void RivPipeGeometryGenerator::tubeWithCenterLinePartsAndVariableWidth( cvf::Col if ( surfaceGeo.notNull() ) { cvf::Part* part = new cvf::Part; + part->setName( "tubeWithCenterLinePartsAndVariableWidth::surface" ); part->setDrawable( surfaceGeo.p() ); caf::SurfaceEffectGenerator surfaceGen( cvf::Color4f( color ), caf::PO_1 ); @@ -858,6 +861,7 @@ void RivPipeGeometryGenerator::tubeWithCenterLinePartsAndVariableWidth( cvf::Col if ( centerLineGeo.notNull() ) { cvf::Part* part = new cvf::Part; + part->setName( "tubeWithCenterLinePartsAndVariableWidth::centerLineGeo" ); part->setDrawable( centerLineGeo.p() ); caf::SurfaceEffectGenerator surfaceGen( cvf::Color4f( color ), caf::PO_1 ); diff --git a/ApplicationLibCode/ModelVisualization/RivReachCircleAnnotationPartMgr.cpp b/ApplicationLibCode/ModelVisualization/RivReachCircleAnnotationPartMgr.cpp index 51be932be9..de0e2ebe15 100644 --- a/ApplicationLibCode/ModelVisualization/RivReachCircleAnnotationPartMgr.cpp +++ b/ApplicationLibCode/ModelVisualization/RivReachCircleAnnotationPartMgr.cpp @@ -82,6 +82,7 @@ void RivReachCircleAnnotationPartMgr::buildParts( const caf::DisplayCoordTransfo cvf::ref drawableGeo = RivPolylineGenerator::createLineAlongPolylineDrawable( points ); cvf::ref part = new cvf::Part; + part->setName( "RivReachCircleAnnotationPartMgr" ); part->setDrawable( drawableGeo.p() ); caf::MeshEffectGenerator effgen( lineColor ); @@ -111,6 +112,7 @@ void RivReachCircleAnnotationPartMgr::buildParts( const caf::DisplayCoordTransfo cvf::ref drawableGeo = RivPolylineGenerator::createLineAlongPolylineDrawable( symbol ); cvf::ref part = new cvf::Part; + part->setName( "RivReachCircleAnnotationPartMgr" ); part->setDrawable( drawableGeo.p() ); caf::MeshEffectGenerator effgen( lineColor ); diff --git a/ApplicationLibCode/ModelVisualization/RivTensorResultPartMgr.cpp b/ApplicationLibCode/ModelVisualization/RivTensorResultPartMgr.cpp index 81c1312c2f..730370f30a 100644 --- a/ApplicationLibCode/ModelVisualization/RivTensorResultPartMgr.cpp +++ b/ApplicationLibCode/ModelVisualization/RivTensorResultPartMgr.cpp @@ -373,6 +373,7 @@ cvf::ref RivTensorResultPartMgr::createPart( const std::vectorsetTextureCoordArray( lineTexCoords.p() ); cvf::ref part = new cvf::Part; + part->setName( "RivTensorResultPartMgr" ); part->setDrawable( drawable.p() ); part->setEffect( scalarMapperMeshEffect.p() ); diff --git a/ApplicationLibCode/ModelVisualization/RivTextAnnotationPartMgr.cpp b/ApplicationLibCode/ModelVisualization/RivTextAnnotationPartMgr.cpp index b2dd173829..11d318f891 100644 --- a/ApplicationLibCode/ModelVisualization/RivTextAnnotationPartMgr.cpp +++ b/ApplicationLibCode/ModelVisualization/RivTextAnnotationPartMgr.cpp @@ -103,6 +103,7 @@ void RivTextAnnotationPartMgr::buildParts( const caf::DisplayCoordTransform* dis cvf::ref drawableGeo = RivPolylineGenerator::createLineAlongPolylineDrawable( points ); cvf::ref part = new cvf::Part; + part->setName( "RivTextAnnotationPartMgr" ); part->setDrawable( drawableGeo.p() ); caf::MeshEffectGenerator colorEffgen( anchorLineColor ); diff --git a/ApplicationLibCode/ModelVisualization/RivWellConnectionFactorGeometryGenerator.cpp b/ApplicationLibCode/ModelVisualization/RivWellConnectionFactorGeometryGenerator.cpp index 43a032f25a..f9836b8796 100644 --- a/ApplicationLibCode/ModelVisualization/RivWellConnectionFactorGeometryGenerator.cpp +++ b/ApplicationLibCode/ModelVisualization/RivWellConnectionFactorGeometryGenerator.cpp @@ -57,6 +57,7 @@ cvf::ref RivWellConnectionFactorGeometryGenerator::createSurfacePart( if ( drawable.notNull() ) { cvf::ref part = new cvf::Part; + part->setName( "RivWellConnectionFactorGeometryGenerator" ); part->setDrawable( drawable.p() ); // Compute texture coords diff --git a/ApplicationLibCode/ModelVisualization/RivWellConnectionsPartMgr.cpp b/ApplicationLibCode/ModelVisualization/RivWellConnectionsPartMgr.cpp index 381ae6ec8c..e0255cb3cf 100644 --- a/ApplicationLibCode/ModelVisualization/RivWellConnectionsPartMgr.cpp +++ b/ApplicationLibCode/ModelVisualization/RivWellConnectionsPartMgr.cpp @@ -238,8 +238,10 @@ cvf::ref RivWellConnectionsPartMgr::createArrowPart( const cvf::Vec3f const cvf::Color4f& arrowColor, bool enableLighting ) { - cvf::ref part = new cvf::Part; - cvf::ref geo = createArrowGeometry( startPoint, endPoint, width, isProducer ); + cvf::ref part = new cvf::Part; + part->setName( "RivWellConnectionsPartMgr::createArrowPart" ); + + cvf::ref geo = createArrowGeometry( startPoint, endPoint, width, isProducer ); part->setDrawable( geo.p() ); caf::SurfaceEffectGenerator surfaceGen( arrowColor, caf::PO_1 ); diff --git a/ApplicationLibCode/ModelVisualization/RivWellPathPartMgr.cpp b/ApplicationLibCode/ModelVisualization/RivWellPathPartMgr.cpp index a055f67ec4..b7fac7e4c7 100644 --- a/ApplicationLibCode/ModelVisualization/RivWellPathPartMgr.cpp +++ b/ApplicationLibCode/ModelVisualization/RivWellPathPartMgr.cpp @@ -697,6 +697,7 @@ void RivWellPathPartMgr::buildWellPathParts( const caf::DisplayCoordTransform* d if ( m_surfaceDrawable.notNull() ) { m_surfacePart = new cvf::Part; + m_surfacePart->setName( "RivWellPathPartMgr::surface" ); m_surfacePart->setDrawable( m_surfaceDrawable.p() ); RivWellPathSourceInfo* sourceInfo = new RivWellPathSourceInfo( m_rimWellPath, m_pipeGeomGenerator.p() ); @@ -711,6 +712,7 @@ void RivWellPathPartMgr::buildWellPathParts( const caf::DisplayCoordTransform* d if ( m_centerLineDrawable.notNull() ) { m_centerLinePart = new cvf::Part; + m_centerLinePart->setName( "RivWellPathPartMgr::centerLinePart" ); m_centerLinePart->setDrawable( m_centerLineDrawable.p() ); caf::MeshEffectGenerator gen( m_rimWellPath->wellPathColor() ); diff --git a/ApplicationLibCode/ModelVisualization/RivWellSpheresPartMgr.cpp b/ApplicationLibCode/ModelVisualization/RivWellSpheresPartMgr.cpp index d5c92ecee3..d32765d161 100644 --- a/ApplicationLibCode/ModelVisualization/RivWellSpheresPartMgr.cpp +++ b/ApplicationLibCode/ModelVisualization/RivWellSpheresPartMgr.cpp @@ -167,6 +167,8 @@ cvf::ref RivWellSpheresPartMgr::createPart( std::vectorsetGlyph( builder.trianglesUShort().p(), builder.vertices().p() ); cvf::ref part = new cvf::Part; + part->setName( "RivWellSpheresPartMgr" ); + part->setDrawable( vectorDrawable.p() ); cvf::ref eff = new cvf::Effect; diff --git a/ApplicationLibCode/ModelVisualization/Streamlines/RivStreamlinesPartMgr.cpp b/ApplicationLibCode/ModelVisualization/Streamlines/RivStreamlinesPartMgr.cpp index b5c44a5ba2..9dbc65b9ab 100644 --- a/ApplicationLibCode/ModelVisualization/Streamlines/RivStreamlinesPartMgr.cpp +++ b/ApplicationLibCode/ModelVisualization/Streamlines/RivStreamlinesPartMgr.cpp @@ -218,6 +218,8 @@ cvf::ref RivStreamlinesPartMgr::createPart( const RimStreamlineInView drawable->setTextureCoordArray( lineTexCoords.p() ); cvf::ref part = new cvf::Part; + part->setName( "RivStreamlinesPartMgr" ); + part->setDrawable( drawable.p() ); part->setEffect( effect.p() ); part->updateBoundingBox();