mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-20 03:16:10 +00:00
Updated the code to enable the selection decorator to the new signal slot mechanism
This commit is contained in:
parent
d6dd893af4
commit
c08cef4edf
@ -243,10 +243,10 @@ bool EditSelectPlugin::StartEdit(MeshModel &m, GLArea *gla )
|
||||
{
|
||||
gla->setCursor(QCursor(QPixmap(":/images/sel_rect.png"),1,1));
|
||||
|
||||
connect(this, SIGNAL(setSelectionRendering(bool)),gla,SLOT(setSelectFaceRendering(bool)) );
|
||||
connect(this, SIGNAL(setSelectionRendering(bool)),gla,SLOT(setSelectVertRendering(bool)) );
|
||||
connect(this, SIGNAL(setDecorator(QString,bool)),gla,SLOT(setDecorator(QString,bool)) );
|
||||
|
||||
setSelectionRendering(true);
|
||||
setDecorator("Show Selected Faces",true);
|
||||
setDecorator("Show Selected Vertices",true);
|
||||
|
||||
if(selectionMode)
|
||||
m.updateDataMask(MeshModel::MM_FACEFACETOPO);
|
||||
|
||||
@ -57,7 +57,7 @@ public:
|
||||
std::vector<CMeshO::VertexPointer> LastSelVert;
|
||||
|
||||
signals:
|
||||
void setSelectionRendering(bool);
|
||||
void setDecorator(QString,bool);
|
||||
|
||||
private:
|
||||
typedef enum {SMAdd, SMClear,SMSub} ComposingSelMode; // How the selection are composed
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user