Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
berryIPerspectiveRegistry.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef BERRYIPERSPECTIVEREGISTRY_H_
14 #define BERRYIPERSPECTIVEREGISTRY_H_
15 
17 
18 #include <vector>
19 
20 namespace berry {
21 
37 
39 
48  virtual IPerspectiveDescriptor::Pointer CreatePerspective(const QString& label,
49  IPerspectiveDescriptor::Pointer originalDescriptor) = 0;
50 
61  virtual IPerspectiveDescriptor::Pointer ClonePerspective(const QString& id, const QString& label,
63 
71 
79  virtual IPerspectiveDescriptor::Pointer FindPerspectiveWithId(const QString& perspectiveId) = 0;
80 
88  virtual IPerspectiveDescriptor::Pointer FindPerspectiveWithLabel(const QString& label) = 0;
89 
99  virtual QString GetDefaultPerspective() = 0;
100 
106  virtual QList<IPerspectiveDescriptor::Pointer> GetPerspectives() = 0;
107 
118  virtual void SetDefaultPerspective(const QString& id) = 0;
119 
126  virtual void RevertPerspective(IPerspectiveDescriptor::Pointer perspToRevert) = 0;
127 };
128 
129 }
130 
131 #endif /*BERRYIPERSPECTIVEREGISTRY_H_*/
Implements transparent reference counting.
#define BERRY_UI_QT
virtual IPerspectiveDescriptor::Pointer FindPerspectiveWithId(const QString &perspectiveId)=0
virtual QString GetDefaultPerspective()=0
virtual void SetDefaultPerspective(const QString &id)=0
virtual void DeletePerspective(IPerspectiveDescriptor::Pointer persp)=0
virtual IPerspectiveDescriptor::Pointer CreatePerspective(const QString &label, IPerspectiveDescriptor::Pointer originalDescriptor)=0
virtual IPerspectiveDescriptor::Pointer ClonePerspective(const QString &id, const QString &label, IPerspectiveDescriptor::Pointer desc)=0
virtual void RevertPerspective(IPerspectiveDescriptor::Pointer perspToRevert)=0
virtual IPerspectiveDescriptor::Pointer FindPerspectiveWithLabel(const QString &label)=0
virtual QList< IPerspectiveDescriptor::Pointer > GetPerspectives()=0