mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3777 Annotations. Use Bounding box to decide whether to draw an object or not
This commit is contained in:
@@ -52,21 +52,22 @@ RivAnnotationsPartMgr::~RivAnnotationsPartMgr()
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RivAnnotationsPartMgr::appendGeometryPartsToModel(cvf::ModelBasicList* model,
|
||||
const caf::DisplayCoordTransform* displayCoordTransform)
|
||||
const caf::DisplayCoordTransform* displayCoordTransform,
|
||||
const cvf::BoundingBox& boundingBox)
|
||||
{
|
||||
createAnnotationPartManagers();
|
||||
|
||||
for (auto& partMgr : m_textAnnotationPartMgrs)
|
||||
{
|
||||
partMgr->appendDynamicGeometryPartsToModel(model, displayCoordTransform);
|
||||
partMgr->appendDynamicGeometryPartsToModel(model, displayCoordTransform, boundingBox);
|
||||
}
|
||||
for (auto& partMgr : m_reachCircleAnnotationPartMgrs)
|
||||
{
|
||||
partMgr->appendDynamicGeometryPartsToModel(model, displayCoordTransform);
|
||||
partMgr->appendDynamicGeometryPartsToModel(model, displayCoordTransform, boundingBox);
|
||||
}
|
||||
for (auto& partMgr : m_polylineAnnotationPartMgrs)
|
||||
{
|
||||
partMgr->appendDynamicGeometryPartsToModel(model, displayCoordTransform);
|
||||
partMgr->appendDynamicGeometryPartsToModel(model, displayCoordTransform, boundingBox);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user