Skip to content

Commit

Permalink
fourch
Browse files Browse the repository at this point in the history
  • Loading branch information
alonsoJASL committed Nov 13, 2024
1 parent b217e38 commit 37e8548
Show file tree
Hide file tree
Showing 7 changed files with 110 additions and 1 deletion.
1 change: 1 addition & 0 deletions CemrgApp/Plugins/PluginList.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ set(MITK_PLUGINS
kcl.cemrgapp.easi:ON
kcl.cemrgapp.powertrans:ON
kcl.cemrgapp.atrialfibres:ON
kcl.cemrgapp.fourchamber:ON
kcl.cemrgapp.mmcwplugin:ON
kcl.cemrgapp.mmeasurement:ON
kcl.cemrgapp.scar:ON
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <vtkWindowedSincPolyDataFilter.h>
#include <vtkImplicitPolyDataDistance.h>
#include <vtkBooleanOperationPolyDataFilter.h>
#include <vtkTimerLog.h>
#include <vtkClipPolyData.h>
#include <vtkDecimatePro.h>
#include <vtkTransform.h>
Expand Down
2 changes: 2 additions & 0 deletions CemrgApp/Plugins/kcl.cemrgapp.mainapp/files.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ set(INTERNAL_CPP_FILES
perspectives/QmitkCemrgJBPerspective.cpp
perspectives/QmitkCemrgHCPerspective.cpp
perspectives/QmitkCemrgAtrialFibresPerspective.cpp
perspectives/QmitkCemrgFourChamberPerspective.cpp
perspectives/QmitkCemrgRRPerspective.cpp
perspectives/QmitkCemrgEasiPerspective.cpp
perspectives/QmitkCemrgPowertransPerspective.cpp
Expand All @@ -29,6 +30,7 @@ set(MOC_H_FILES
src/internal/perspectives/QmitkCemrgJBPerspective.h
src/internal/perspectives/QmitkCemrgHCPerspective.h
src/internal/perspectives/QmitkCemrgAtrialFibresPerspective.h
src/internal/perspectives/QmitkCemrgFourChamberPerspective.h
src/internal/perspectives/QmitkCemrgRRPerspective.h
src/internal/perspectives/QmitkCemrgEasiPerspective.h
src/internal/perspectives/QmitkCemrgPowertransPerspective.h
Expand Down
7 changes: 7 additions & 0 deletions CemrgApp/Plugins/kcl.cemrgapp.mainapp/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@
icon="resources/icon_research.xpm" />
</extension>

<extension point="org.blueberry.ui.perspectives">
<perspective id="kcl.cemrgapp.CemrgFourChamberPerspective"
name="Cemrg Four Chamber Heart Tools"
class="QmitkCemrgFourChamberPerspective"
icon="resources/icon_research.xpm" />
</extension>

<extension point="org.blueberry.ui.perspectives">
<perspective id="kcl.cemrgapp.CemrgEasiPerspective"
name="Cemrg Electrophysiology Simulations"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ PURPOSE. See the above copyright notices for more information.
#include "perspectives/QmitkCemrgJBPerspective.h"
#include "perspectives/QmitkCemrgHCPerspective.h"
#include "perspectives/QmitkCemrgAtrialFibresPerspective.h"
#include "perspectives/QmitkCemrgFourChamberPerspective.h"
#include "perspectives/QmitkCemrgRRPerspective.h"
#include "perspectives/QmitkCemrgEasiPerspective.h"
#include "perspectives/QmitkCemrgPowertransPerspective.h"
Expand Down Expand Up @@ -67,6 +68,7 @@ namespace mitk {
BERRY_REGISTER_EXTENSION_CLASS(QmitkCemrgJBPerspective, context);
BERRY_REGISTER_EXTENSION_CLASS(QmitkCemrgHCPerspective, context);
BERRY_REGISTER_EXTENSION_CLASS(QmitkCemrgAtrialFibresPerspective, context);
BERRY_REGISTER_EXTENSION_CLASS(QmitkCemrgFourChamberPerspective, context);
BERRY_REGISTER_EXTENSION_CLASS(QmitkCemrgRRPerspective, context);
BERRY_REGISTER_EXTENSION_CLASS(QmitkCemrgEasiPerspective, context);
BERRY_REGISTER_EXTENSION_CLASS(QmitkCemrgPowertransPerspective, context);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) German Cancer Research Center, Division of Medical and
Biological Informatics. All rights reserved.
See MITKCopyright.txt or http://www.mitk.org/copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
/*=========================================================================
*
* CemrgApp Main App
*
* Cardiac Electromechanics Research Group
* http://www.cemrgapp.com
* [email protected]
*
* This software is distributed WITHOUT ANY WARRANTY or SUPPORT!
*
=========================================================================*/

#include "QmitkCemrgFourChamberPerspective.h"
#include "berryIViewLayout.h"

QmitkCemrgFourChamberPerspective::QmitkCemrgFourChamberPerspective() {
}

QmitkCemrgFourChamberPerspective::QmitkCemrgFourChamberPerspective(const QmitkCemrgFourChamberPerspective& other) : QObject() {

Q_UNUSED(other)
throw std::runtime_error("Copy constructor not implemented");
}

void QmitkCemrgFourChamberPerspective::CreateInitialLayout(berry::IPageLayout::Pointer layout) {

QString editorArea = layout->GetEditorArea();
layout->AddView("org.mitk.views.fourchamberheart", berry::IPageLayout::LEFT, 0.17f, editorArea);
berry::IFolderLayout::Pointer folder = layout->CreateFolder(
"folder", berry::IPageLayout::BOTTOM, 0.6f, "org.mitk.views.fourchamberheart");
folder->AddView("org.mitk.views.datamanager");
berry::IViewLayout::Pointer lo = layout->GetViewLayout("org.mitk.views.fourchamberheart");
lo->SetCloseable(false);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) German Cancer Research Center, Division of Medical and
Biological Informatics. All rights reserved.
See MITKCopyright.txt or http://www.mitk.org/copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
/*=========================================================================
*
* CemrgApp Main App
*
* Cardiac Electromechanics Research Group
* http://www.cemrgapp.com
* [email protected]
*
* This software is distributed WITHOUT ANY WARRANTY or SUPPORT!
*
=========================================================================*/

#ifndef QMITKCEMRGFOURCHAMBERPERSPECTIVE_H_
#define QMITKCEMRGFOURCHAMBERPERSPECTIVE_H_

#include <berryIPerspectiveFactory.h>

class QmitkCemrgFourChamberPerspective : public QObject, public berry::IPerspectiveFactory {

Q_OBJECT
Q_INTERFACES(berry::IPerspectiveFactory)

public:

QmitkCemrgFourChamberPerspective();
QmitkCemrgFourChamberPerspective(const QmitkCemrgFourChamberPerspective& other);

void CreateInitialLayout(berry::IPageLayout::Pointer layout);

};

#endif /* QMITKCEMRGFOURCHAMBERPERSPECTIVE_H_ */

0 comments on commit 37e8548

Please sign in to comment.