Picking elements and faces in TaskCreateNodeSet

This commit is contained in:
jriegel
2013-03-16 16:23:12 +01:00
parent 8b46da725d
commit 6e1d3cb770
6 changed files with 152 additions and 4 deletions

View File

@@ -50,7 +50,7 @@ namespace FemGui {
class ViewProviderFemMesh;
class TaskCreateNodeSet : public Gui::TaskView::TaskBox
class TaskCreateNodeSet : public Gui::TaskView::TaskBox, public Gui::SelectionObserver
{
Q_OBJECT
@@ -63,6 +63,7 @@ public:
private Q_SLOTS:
void Poly(void);
void Pick(void);
void SwitchMethod(int Value);
protected:
@@ -70,6 +71,9 @@ protected:
static void DefineNodesCallback(void * ud, SoEventCallback * n);
void DefineNodes(const Base::Polygon2D &polygon,const Gui::ViewVolumeProjection &proj,bool);
protected:
virtual void onSelectionChanged(const Gui::SelectionChanges& msg);
enum selectionModes { none, PickElement} selectionMode;
private:
QWidget* proxy;