#include "SALOMEconfig.h"
#include "QAD_Desktop.h"
#include "VISU_Actor.h"
+#include "SALOME_Selection.h"
#include <vtkDataSet.h>
-
-#define SelectionPoint 1
-#define SelectionEdge 2
-#define SelectionCell 3
-#define SelectionActor 4
-
-namespace VisuGUI_Selection{
- void PickingCell(QAD_Study *theActiveStudy, vtkDataSet *theDataSet, int theId);
- void PickingPoint(QAD_Study *theActiveStudy, vtkDataSet *theDataSet, int theId);
- void Highlight(QAD_Study *theActiveStudy, const Handle(SALOME_InteractiveObject)& theIO, int theId);
+
+#include <qdialog.h>
+#include <qwidgetstack.h>
+#include <qhbox.h>
+#include <qvbox.h>
+#include <qtable.h>
+#include <qlineedit.h>
+
+
+class VisuGUI_SelectionDlg: public QDialog {
+ Q_OBJECT
+
+public:
+ VisuGUI_SelectionDlg();
+ ~VisuGUI_SelectionDlg(){};
+
+protected:
+ void closeEvent(QCloseEvent* theEvent);
+
+private slots:
+ void onSelectionChange(int theId);
+ void onSelectionEvent();
+ void onPointIdEdit(const QString& theText);
+ void onCellIdEdit(const QString& theText);
+
+ private:
+ void clearFields();
+
+ QLabel* myMeshName;
+ QLabel* myFieldName;
+
+ QWidgetStack* myWidgetStack;
+ QVBox* myPointsPane;
+ QWidget* myCellsPane;
+ QLabel* myXValLbl;
+ QLabel* myYValLbl;
+ QLabel* myZValLbl;
+
+ QLineEdit* myIDValLbl;
+ QLabel* myScalarValLbl;
+ QLabel* myVectorValLbl;
+
+ QTable* myListPoints;
+ QLineEdit* myCellIDValLbl;
+ QLabel* myCellScalarValLbl;
+ QLabel* myCellVectorValLbl;
+
+ QVBox* myActorsPane;
+ QLabel* myXPosLbl;
+ QLabel* myYPosLbl;
+ QLabel* myZPosLbl;
+ QLabel* myDXLbl;
+ QLabel* myDYLbl;
+ QLabel* myDZLbl;
+
+ SALOME_Selection* mySelection;
+ bool myFl;
};
+
#endif