29 : QWidget(parent), m_currentFrame(1), m_numberFrames(0), m_robotTrajectoryAvailable(false)
49 return QSize(250, 180);
68 if(!available)
ui.followTrajectoryButton->setChecked(
false);
69 ui.followTrajectoryButton->setEnabled(available);
121 if(
ui.playScanButton->isChecked()) {
122 ui.scanProgressSlider->setEnabled(
false);
123 ui.followGroupBox->setEnabled(
false);
126 ui.scanProgressSlider->setEnabled(
true);
127 ui.followGroupBox->setEnabled(
true);
138 ui.followGroupBox->setEnabled(
true);
139 ui.scanProgressSlider->setEnabled(
true);
140 ui.playScanButton->setChecked(
false);
149 ui.scanProgressSlider->setMaximum(max);
150 ui.scanProgressSlider->setMinimum(1);
152 if(
ui.playScanButton->isChecked()) {
153 ui.firstScanButton->setEnabled(
false);
154 ui.nextScanButton->setEnabled(
false);
155 ui.previousScanButton->setEnabled(
false);
156 ui.lastScanButton->setEnabled(
false);
159 ui.nextScanButton->setEnabled(
false);
160 ui.playScanButton->setEnabled(
false);
161 ui.lastScanButton->setEnabled(
false);
163 ui.nextScanButton->setEnabled(
true);
164 ui.playScanButton->setEnabled(
true);
165 ui.lastScanButton->setEnabled(
true);
169 ui.firstScanButton->setEnabled(cur > 0);
170 ui.previousScanButton->setEnabled(
false);
172 ui.firstScanButton->setEnabled(
true);
173 ui.previousScanButton->setEnabled(
true);
177 ui.playScanButton->setEnabled(
true);
179 ui.playScanButton->setEnabled(
false);
184 ui.cameraPathAdd->setEnabled(
false);
185 ui.cameraPathRemove->setEnabled(
false);
186 ui.cameraPathSave->setEnabled(
false);
187 ui.cameraPathClear->setEnabled(
false);
189 ui.cameraPathAdd->setEnabled(
true);
195 if(max > 0 && !
ui.playScanButton->isChecked()) {
196 ui.scanProgressSlider->setEnabled(
true);
198 ui.scanProgressSlider->setEnabled(
false);
201 ui.scanProgressSlider->setValue(cur);
202 ui.scanProgressLabel->setText(QString(
"%1/%2").arg(cur).arg(max));
205 ui.scanProgressSlider->update();
210 return ui.followTrajectoryButton->isChecked();
void removeFromCameraPath()
unsigned int m_numberFrames
void on_cameraPathAdd_clicked()
void on_cameraPathSave_clicked()
void on_cameraPathRemove_clicked()
void on_lastScanButton_clicked()
unsigned int m_currentFrame
void on_nextScanButton_clicked()
void on_followCameraPathButton_clicked()
Ui::ViewerSettingsPanelCameraClass ui
~ViewerSettingsPanelCamera()
void setCurrentFrame(unsigned frame)
ViewerSettingsPanelCamera(QWidget *parent=0)
void on_scanProgressSlider_sliderMoved(int value)
void setNumberOfFrames(unsigned frames)
void on_firstScanButton_clicked()
void jumpToFrame(unsigned int frame)
void on_playScanButton_clicked()
void on_followTrajectoryButton_clicked()
void changeCamPosition(double x, double y, double z, double lookX, double lookY, double lookZ)
void on_previousScanButton_clicked()
bool m_robotTrajectoryAvailable
void on_cameraPathClear_clicked()
bool followRobotTrajectory()
void positionEditDone(double)
void setRobotTrajectoryAvailable(bool available)
void gotoFrame(unsigned int frame)