118 if(cvp == NULL)
return;
120 if(p.x() >= 0 && p.x() < cvp->width() &&
121 p.y() >= 0 && p.y() < cvp->height()) {
153 if((sample < 0.5) || (line < 0.5) ||
159 int isamp = (int)(sample + 0.5);
165 int iline = (int)(line + 0.5);
183 p_latLabel->setText(QString(
"Lat %1").arg(lat));
184 p_lonLabel->setText(QString(
"Lon %1").arg(lon));
191 p_latLabel->setText(QString(
"Rad %1").arg(rad));
192 p_lonLabel->setText(QString(
"Lon %1").arg(lon));
201 else if(cvp->
camera() != NULL) {
209 p_latLabel->setText(QString(
"Lat %1").arg(lat));
210 p_lonLabel->setText(QString(
"Lon %1").arg(lon));
216 p_latLabel->setText(QString(
"Rad %1").arg(rad));
217 p_lonLabel->setText(QString(
"Lon %1").arg(lon));
245 if(p.x() >= rect.left() && p.x() <= rect.right() &&
246 p.y() >= rect.top() && p.y() <= rect.bottom()) {
247 const int bufX = p.x() - rect.left();
248 const int bufY = p.y() - rect.top();
269 if(p.x() >= rRect.left() && p.x() < rRect.right() &&
270 p.y() >= rRect.top() && p.y() < rRect.bottom()) {
271 const int rBufX = p.x() - rRect.left();
272 const int rBufY = p.y() - rRect.top();
288 if(p.x() >= gRect.left() && p.x() < gRect.right() &&
289 p.y() >= gRect.top() && p.y() < gRect.bottom()) {
290 const int gBufX = p.x() - gRect.left();
291 const int gBufY = p.y() - gRect.top();
307 if(p.x() >= bRect.left() && p.x() < bRect.right() &&
308 p.y() >= bRect.top() && p.y() < bRect.bottom()) {
309 const int bBufX = p.x() - bRect.left();
310 const int bBufY = p.y() - bRect.top();
343 QPoint p =
cubeViewport()->viewport()->mapFromGlobal(QCursor::pos());
344 if(p.x() < 0)
return;
345 if(p.y() < 0)
return;
346 if(p.x() >=
cubeViewport()->viewport()->width())
return;
347 if(p.y() >=
cubeViewport()->viewport()->height())
return;
376 QStatusBar *TrackTool::getStatusBar(
void) {