NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
PointSetConverterView.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 
16 #ifndef PointSetConverterView_h
17 #define PointSetConverterView_h
18 
19 #include <berryISelectionListener.h>
20 
21 #include <QmitkAbstractView.h>
22 
23 #include <mitkPlanarCircle.h>
24 
25 #include "ui_PointSetConverterViewControls.h"
26 
27 
36 class PointSetConverterView : public QmitkAbstractView
37 {
38  // this is needed for all Qt objects that should have a Qt meta-object
39  // (everything that derives from QObject and wants to have signal/slots)
40  Q_OBJECT
41 
42  public:
43 
45 
46  virtual ~PointSetConverterView();
47 
48  static const std::string VIEW_ID;
49 
50  protected slots:
51 
54 
57 
58  protected:
59 
60  virtual void CreateQtPartControl(QWidget *parent);
61 
62  virtual void SetFocus();
63 
66  virtual void OnSelectionChanged( berry::IWorkbenchPart::Pointer source,
67  const QList<mitk::DataNode::Pointer>& nodes );
68 
69  Ui::PointSetConverterViewControls* m_Controls;
70 
71  private:
72 
74  mitk::Point3D PlanarCircleToPoint( const mitk::PlanarCircle* circle);
75 
77  mitk::PointSet::Pointer FindPointSetNode( const std::string& name );
78 
79  mitk::DataNode::Pointer m_ReferenceImage;
80  QWidget* m_Parent;
81 
82 };
83 
84 #endif // PointSetConverterView_h
Ui::PointSetConverterViewControls * m_Controls
Definition: PointSetConverterView.h:69
void OnConvertPolygonsToPointSetButtonClicked()
Convert polygons in the datamanager to point sets with similar names.
virtual void CreateQtPartControl(QWidget *parent)
virtual void OnSelectionChanged(berry::IWorkbenchPart::Pointer source, const QList< mitk::DataNode::Pointer > &nodes)
called by QmitkFunctionality when DataManager's selection has changed If the selected node is a point...
void OnCreateNewPointSetButtonClicked()
Create a new empty point set in the data manager.
virtual void SetFocus()
virtual ~PointSetConverterView()
GLuint const GLchar * name
Definition: glew.h:1798
static const std::string VIEW_ID
Definition: PointSetConverterView.h:48
PointSetConverterView.
Definition: PointSetConverterView.h:36
GLsizei const GLcharARB ** string
Definition: glew.h:5194
GLsizei GLsizei GLchar * source
Definition: glew.h:1816