Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkAbstractOverlayLayouter.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
18 #include "mitkBaseRenderer.h"
19 
21 {
22 }
23 
25 {
26 }
27 
28 std::list<mitk::Overlay *> mitk::AbstractOverlayLayouter::GetManagedOverlays() const
29 {
30  return m_ManagedOverlays;
31 }
32 
34 {
35  m_BaseRenderer = renderer;
36 }
37 
39 {
40  return m_BaseRenderer;
41 }
42 
44 {
45  if (Overlay->m_LayoutedBy && Overlay->m_LayoutedBy != this)
46  Overlay->m_LayoutedBy->RemoveOverlay(Overlay);
47  Overlay->m_LayoutedBy = this;
48  m_ManagedOverlays.push_back(Overlay);
49  PrepareLayout();
50 }
51 
53 {
54  m_ManagedOverlays.remove(Overlay);
55 }
56 
58 {
59  return m_Identifier;
60 }
void SetBaseRenderer(BaseRenderer *renderer)
AbstractOverlayLayouter()
explicit constructor which disallows implicit conversions
Organizes the rendering process.
void RemoveOverlay(Overlay *Overlay)
Removes the passed Overlay from the m_ManagedOverlays List.
std::string GetIdentifier() const
Returns a unique identifier for one specific kind of layouter.
std::list< mitk::Overlay * > GetManagedOverlays() const
returns a list of the overlays that is managed by this Layouter.
virtual ~AbstractOverlayLayouter()
virtual destructor in order to derive from this class
void AddOverlay(Overlay *Overlay)
Adds an Overlay to the internal list of managed Overlays.
Base class for all overlays.
Definition: mitkOverlay.h:34