Added cursor shape when picking point on surface from a Point3f Parameter in a filter dialog

This commit is contained in:
Paolo Cignoni cignoni 2011-03-14 09:37:18 +00:00
parent fe9b5ec7e4
commit 4bd61024bc
3 changed files with 6 additions and 1 deletions

View File

@ -859,9 +859,12 @@ void GLArea::setCursorTrack(vcg::TrackMode *tm)
curMap["SphereMode"]=QCursor(QPixmap(":/images/cursors/plain_trackball.png"),1,1);
curMap["PanMode"]=QCursor(QPixmap(":/images/cursors/plain_pan.png"),1,1);
curMap["ScaleMode"]=QCursor(QPixmap(":/images/cursors/plain_zoom.png"),1,1);
curMap["PickMode"]=QCursor(QPixmap(":/images/cursors/plain_pick.png"),1,1);
}
if(tm) setCursor(curMap[tm->Name()]);
else setCursor(curMap[""]);
else
if(hasToGetPickPos) setCursor(curMap["PickMode"]);
else setCursor(curMap[""]);
}
@ -1122,6 +1125,7 @@ void GLArea::sendViewPos(QString name)
void GLArea::sendSurfacePos(QString name)
{
qDebug("sendSurfacePos %s",qPrintable(name));
nameToGetPickPos = name;
hasToGetPickPos=true;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@ -41,5 +41,6 @@
<file>images/open_project.png</file>
<file>images/import_mesh.png</file>
<file>images/new_project.png</file>
<file>images/cursors/plain_pick.png</file>
</qresource>
</RCC>