Beispiel #1
0
void mitk::OverlayManager::AddOverlay(const Overlay::Pointer& overlay, BaseRenderer* renderer)
{
    std::pair<OverlaySet::iterator,bool> inSet;
    inSet = m_OverlaySet.insert(overlay);
    if(inSet.second)
    {
        overlay->AddToBaseRenderer(renderer);
    }
}
Beispiel #2
0
void mitk::OverlayManager::AddOverlay(const Overlay::Pointer& overlay)
{
    std::pair<OverlaySet::iterator,bool> inSet;
    inSet = m_OverlaySet.insert(overlay);
    if(inSet.second)
    {
        BaseRendererSet::iterator it;
        for ( it=m_BaseRendererSet.begin() ; it != m_BaseRendererSet.end(); it++ )
        {
            overlay->AddToBaseRenderer(*it);
        }
    }
}
void mitk::OverlayManager::AddOverlay(const Overlay::Pointer& overlay, BaseRenderer* renderer, bool ForceInForeground)
{
  std::pair<OverlaySet::iterator,bool> inSet;
  inSet = m_OverlaySet.insert(overlay);
  if(inSet.second)
  {
    if(ForceInForeground)
    {
      vtkRenderer* forgroundRenderer = m_ForegroundRenderer[renderer];
      overlay->AddToRenderer(renderer,forgroundRenderer);
    }
    else
      overlay->AddToBaseRenderer(renderer);
  }
}
void mitk::OverlayManager::AddOverlay(const Overlay::Pointer& overlay, bool ForceInForeground)
{
  std::pair<OverlaySet::iterator,bool> inSet;
  inSet = m_OverlaySet.insert(overlay);
  if(inSet.second)
  {
    BaseRendererSet::iterator it;
    for ( it=m_BaseRendererSet.begin() ; it != m_BaseRendererSet.end(); it++ )
    {
      if(ForceInForeground)
      {
        vtkRenderer* forgroundRenderer = m_ForegroundRenderer[*it];
        overlay->AddToRenderer(*it,forgroundRenderer);
      }
      else
        overlay->AddToBaseRenderer(*it);
    }
  }
}