cursor added

This commit is contained in:
Paolo Cignoni cignoni 2007-02-26 00:47:44 +00:00
parent 088286853a
commit 43d17a9017
3 changed files with 5 additions and 3 deletions

View File

@ -119,7 +119,8 @@ void EditPaintPlugin::undo(int value) {
}
void EditPaintPlugin::StartEdit(QAction * /*mode*/, MeshModel &m, GLArea * parent) {
first=true;
parent->setCursor(QCursor(QPixmap(":/images/cursor_paint.png"),1,1));
first=true;
pressed=0;
tri::UpdateBounding<CMeshO>::Box(m.cm);
if (paintbox==0) {
@ -579,7 +580,7 @@ inline void getSurroundingFacesVF(CFaceO * fac,int vert_pos,vector<CFaceO *> *su
/** finds the faces or vertexes in the circle */
void getInternFaces(MeshModel & m,vector<CMeshO::FacePointer> *actual,vector<Vert_Data> * risult, vector<CMeshO::FacePointer> * face_risult,
GLArea * gla,Penn &pen,QPoint &cur, QPoint &prev, GLfloat * pixels,
double mvmatrix[16],double projmatrix[16],int viewport[4]) {
double mvmatrix[16],double projmatrix[16],GLint viewport[4]) {
QHash <CFaceO *,CFaceO *> selected;
QHash <CVertexO *,CVertexO *> sel_vert;

View File

@ -94,7 +94,7 @@ private:
bool first; // to check in decorate if it is the first call after a mouse down
double mvmatrix[16]; //modelview
double projmatrix[16]; //projection
int viewport[4]; //viewport
GLint viewport[4]; //viewport
GLfloat *pixels; // the z-buffer
int inverse_y; // gla->curSiz.height()-cur.y() TODO probably removable
vector<CMeshO::FacePointer> tempSel; //to use when needed

View File

@ -12,5 +12,6 @@
<file>images/undo.png</file>
<file>images/redo.png</file>
<file>images/gradient.png</file>
<file>images/cursor_paint.png</file>
</qresource>
</RCC>