90 QBrush brush(Qt::gray);
94 if (m_gridCheckBox->isChecked()) {
97 painter->setFont(font);
100 for (
int i = mvp->cubeSamples(); i > 0; i -= mvp->cubeSamples() / 12) {
101 if (mvp->camera() != NULL) {
102 mvp->camera()->SetImage(i, 0);
103 lon = mvp->camera()->UniversalLongitude();
105 lon = ceil(lon * 100.0) / 100.0;
107 mvp->cubeToViewport(i, 0, x1, y1);
108 mvp->cubeToViewport(0, mvp->cubeLines(), x2, y2);
109 painter->drawLine(x1, y1, x1, y2);
111 painter->drawText(x1, y2 + 10,
toString(lon));
116 for (
int i = mvp->cubeLines(); i > 0; i -= mvp->cubeLines() / 12) {
117 if (mvp->camera() != NULL) {
118 mvp->camera()->SetImage(0, i);
119 lat = mvp->camera()->UniversalLatitude();
121 lat = ceil(lat * 100.0) / 100.0;
123 mvp->cubeToViewport(0, i, x1, y1);
124 mvp->cubeToViewport(mvp->cubeSamples(), 0, x2, y2);
125 painter->drawLine(x1, y1, x2, y1);
127 painter->drawText(x2 + 5, y1,
toString(lat));