00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision: 13900 $ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 #ifndef QmitkStandardViews_h_included 00019 #define QmitkStandardViews_h_included 00020 00021 #include "mitkCommon.h" 00022 #include "QmitkExtExports.h" 00023 #include "mitkCameraController.h" 00024 00025 #include <QWidget> 00026 00027 class QClickableLabel; 00028 class vtkRenderWindow; 00029 00030 class QmitkExt_EXPORT QmitkStandardViews : public QWidget 00031 { 00032 00033 Q_OBJECT 00034 00035 public: 00036 00037 QmitkStandardViews( QWidget * parent = 0, Qt::WindowFlags f = 0 ); 00038 00039 virtual ~QmitkStandardViews(); 00040 00041 void SetCameraController( mitk::CameraController* controller ); 00042 void SetCameraControllerFromRenderWindow( vtkRenderWindow* window ); 00043 00044 signals: 00045 00046 void StandardViewDefined(mitk::CameraController::StandardView view); 00047 00048 protected slots: 00049 00050 void hotspotClicked(const QString& s); 00051 00052 protected: 00053 00054 QClickableLabel* m_ClickablePicture; 00055 00056 mitk::CameraController::Pointer m_CameraController; 00057 00058 }; 00059 00060 #endif