Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef QMITK_POINTLIST_VIEW_H_INCLUDED
00019 #define QMITK_POINTLIST_VIEW_H_INCLUDED
00020
00021 #include <QListView>
00022 #include <QLabel>
00023 #include "QmitkExtExports.h"
00024
00025 #include "QmitkPointListModel.h"
00026
00027 class QmitkStdMultiWidget;
00028
00041 class QmitkExt_EXPORT QmitkPointListView : public QListView
00042 {
00043 Q_OBJECT
00044
00045 public:
00046
00047 QmitkPointListView( QWidget* parent = 0 );
00048 ~QmitkPointListView();
00049
00051 void SetPointSetNode( mitk::DataNode* pointSetNode );
00052
00054 const mitk::PointSet* GetPointSet() const;
00055
00056 void SetMultiWidget( QmitkStdMultiWidget* multiWidget );
00057
00058 QmitkStdMultiWidget* GetMultiWidget() const;
00059
00060 void SetTimesStep(int i);
00061
00062 signals:
00063
00064 void SignalPointSelectionChanged();
00065
00066
00067 protected slots:
00068
00070 void OnPointDoubleClicked(const QModelIndex & index);
00071
00073 void OnPointSetSelectionChanged();
00074
00076 void OnListViewSelectionChanged(const QItemSelection& selected, const QItemSelection& deselected);
00077
00079 void fadeTimeStepOut();
00080
00082 void ctxMenu(const QPoint &pos);
00083
00085 void SetFading(bool onOff);
00086
00088 void ClearPointList();
00089
00091 void ClearPointListTS();
00092
00093 protected:
00094
00095 void keyPressEvent( QKeyEvent * e );
00096 void wheelEvent( QWheelEvent* event);
00097 void fadeTimeStepIn();
00098
00099 protected:
00100
00101 QmitkPointListModel* m_PointListModel;
00102
00103 bool m_SelfCall;
00104
00105 bool m_showFading;
00106
00108 QmitkStdMultiWidget* m_MultiWidget;
00109
00110 QLabel* m_TimeStepFaderLabel;
00111
00112 };
00113 #endif