void GLIBitmapNotebook::ResetAllPages()
{
  // Reset the scale
  viewScaleMultiply = 1;
  viewScaleDivide   = 1;

  // Delete all attached pages
  DeleteAllPages();

  // Clear the stored array
  bitmapViews.clear();

  // Reset the selection point
  SetSelectedPosition(wxPoint(-1, -1));

  // Update the window title for new zoom factor
  parentControl->UpdateWindowTitle();
}
void QmitkSemanticRelationsView::JumpToPosition(const mitk::DataNode* dataNode)
{
  if (nullptr == dataNode)
  {
    return;
  }

  mitk::LabelSetImage* labelSetImage = dynamic_cast<mitk::LabelSetImage*>(dataNode->GetData());
  if (nullptr == labelSetImage)
  {
    return;
  }

  unsigned int activeLayer = labelSetImage->GetActiveLayer();
  mitk::Label* activeLabel = labelSetImage->GetActiveLabel(activeLayer);
  labelSetImage->UpdateCenterOfMass(activeLabel->GetValue(), activeLayer);
  const mitk::Point3D& centerPosition = activeLabel->GetCenterOfMassCoordinates();
  if (centerPosition.GetVnlVector().max_value() > 0.0)
  {
    auto renderWindowPart = GetRenderWindowPart();
    if (nullptr == renderWindowPart)
    {
      renderWindowPart = GetRenderWindowPart(mitk::WorkbenchUtil::IRenderWindowPartStrategy::BRING_TO_FRONT | mitk::WorkbenchUtil::IRenderWindowPartStrategy::OPEN);
      if (nullptr == renderWindowPart)
      {
        // no render window available
        return;
      }
    }

    auto segmentation = dynamic_cast<mitk::LabelSetImage*>(dataNode->GetData());
    if (nullptr != segmentation)
    {
      renderWindowPart->SetSelectedPosition(centerPosition);
      mitk::RenderingManager::GetInstance()->InitializeViews(segmentation->GetTimeGeometry(), mitk::RenderingManager::REQUEST_UPDATE_ALL, true);
    }
  }
}