Subversion Repositories seema-scanner

Rev

Rev 27 | Rev 36 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27 Rev 30
Line 117... Line 117...
117
void SMCaptureWorker::rotateTo(float angle){
117
void SMCaptureWorker::rotateTo(float angle){
118
 
118
 
119
    std::cout << "Moving to: " << angle << std::endl;
119
    std::cout << "Moving to: " << angle << std::endl;
120
    rotationStage->moveAbsolute(angle);
120
    rotationStage->moveAbsolute(angle);
121
    rotationStage->wait();
121
    rotationStage->wait();
-
 
122
 
-
 
123
    emit rotatedTo(angle);
122
}
124
}
123
 
125
 
124
void SMCaptureWorker::acquireCalibrationSet(float angle){
126
void SMCaptureWorker::acquireCalibrationSet(float angle){
125
 
127
 
126
    if(angle != -1.0)
128
    if(angle != -1.0)
Line 152... Line 154...
152
    calibrationSet.rotationAngle = rotationStage->getAngle();
154
    calibrationSet.rotationAngle = rotationStage->getAngle();
153
 
155
 
154
    emit newCalibrationSet(calibrationSet);
156
    emit newCalibrationSet(calibrationSet);
155
}
157
}
156
 
158
 
157
void SMCaptureWorker::acquireCalibrationSets(std::vector<float> angles){}
159
void SMCaptureWorker::acquireCalibrationSets(std::vector<float> angles){
-
 
160
 
-
 
161
    for(int i=0; i<angles.size(); i++)
-
 
162
        acquireCalibrationSet(angles[i]);
-
 
163
}
158
 
164
 
159
void SMCaptureWorker::acquireFrameSequence(float angle){
165
void SMCaptureWorker::acquireFrameSequence(float angle){
160
 
166
 
161
    if(angle != -1.0)
167
    if(angle != -1.0)
162
        rotateTo(angle);
168
        rotateTo(angle);
Line 200... Line 206...
200
    emit newFrameSequence(frameSequence);
206
    emit newFrameSequence(frameSequence);
201
 
207
 
202
}
208
}
203
 
209
 
204
 
210
 
205
void SMCaptureWorker::acquireFrameSequences(std::vector<float> angles){}
211
void SMCaptureWorker::acquireFrameSequences(std::vector<float> angles){
-
 
212
 
-
 
213
    for(int i=0; i<angles.size(); i++)
-
 
214
        acquireFrameSequence(angles[i]);
-
 
215
}
206
 
216
 
207
void SMCaptureWorker::abort(){}
217
void SMCaptureWorker::abort(){}
208
 
218
 
209
void SMCaptureWorker::stopWork(){
219
void SMCaptureWorker::stopWork(){
210
    working = false;
220
    working = false;