mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-14 08:34:37 +00:00
cursor added
This commit is contained in:
parent
088286853a
commit
43d17a9017
@ -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;
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user