15 #ifndef niftkCameraCalView_h
16 #define niftkCameraCalView_h
19 #include <service/event/ctkEvent.h>
20 #include "ui_niftkCameraCalView.h"
23 #include <QFutureWatcher>
24 #include <ctkDictionary.h>
89 void OnGrabButtonPressed();
90 void OnUnGrabButtonPressed();
91 void OnClearButtonPressed();
92 void OnSaveButtonPressed();
93 void OnBackgroundGrabProcessFinished();
94 void OnBackgroundCalibrateProcessFinished();
103 void OnComboBoxChanged();
109 double RunCalibration();
111 void SetButtonsEnabled(
bool isEnabled);
116 void RetrievePreferenceValues();
121 virtual void OnPreferencesChanged(
const berry::IBerryPreferences*)
override;
123 Ui::CameraCalView *m_Controls;
124 niftk::NiftyCalVideoCalibrationManager::Pointer m_Manager;
125 QFuture<bool> m_BackgroundGrabProcess;
126 QFutureWatcher<bool> m_BackgroundGrabProcessWatcher;
127 QFuture<double> m_BackgroundCalibrateProcess;
128 QFutureWatcher<double> m_BackgroundCalibrateProcessWatcher;
129 QString m_DefaultSaveDirectory;
virtual std::string GetViewID() const
Returns the view ID.
Definition: niftkCameraCalView.cxx:78
virtual ~CameraCalView()
Definition: niftkCameraCalView.cxx:51
void RestartIGIUpdate(const ctkDictionary &)
void OnClear(const ctkEvent &event)
Definition: niftkCameraCalView.cxx:379
void OnUnGrab(const ctkEvent &event)
Definition: niftkCameraCalView.cxx:369
CameraCalView()
Definition: niftkCameraCalView.cxx:38
static const std::string VIEW_ID
Static view ID = uk.ac.ucl.cmic.igicameracal.
Definition: niftkCameraCalView.h:50
virtual void CreateQtPartControl(QWidget *parent) override
Called by framework, this method creates all the controls for this view.
Definition: niftkCameraCalView.cxx:85
User interface to provide controls to do mono/stereo, video camera calibration.
Definition: niftkCameraCalView.h:34
Base view component for plugins listening to visibility change events, focus changed events and so on...
Definition: niftkBaseView.h:47
void OnGrab(const ctkEvent &event)
Definition: niftkCameraCalView.cxx:359
cl_event event
Definition: glew.h:3231
void OnUpdate(const ctkEvent &event)
Definition: niftkCameraCalView.cxx:389
void PauseIGIUpdate(const ctkDictionary &)
Definition: niftkExceptionObject.h:21
GLsizei const GLcharARB ** string
Definition: glew.h:5194
virtual void SetFocus() override
Called by framework, sets the focus on a specific widget.
Definition: niftkCameraCalView.cxx:274