X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FVISUGUI%2FVisuGUI_Selection.h;h=fe39ef1e41b6622ccb6465ac31056261a2ab3d97;hb=de799091f3bde871c887d0bf34f9f5f1c9146de8;hp=09e43574240b4e7ef2b17e2ecaecd3168636fb0f;hpb=c76448b4bd154155dae8cc5c7bedbf50d18fcde4;p=modules%2Fvisu.git diff --git a/src/VISUGUI/VisuGUI_Selection.h b/src/VISUGUI/VisuGUI_Selection.h index 09e43574..fe39ef1e 100644 --- a/src/VISUGUI/VisuGUI_Selection.h +++ b/src/VISUGUI/VisuGUI_Selection.h @@ -32,18 +32,67 @@ #include "SALOMEconfig.h" #include "QAD_Desktop.h" #include "VISU_Actor.h" +#include "SALOME_Selection.h" #include - -#define SelectionPoint 1 -#define SelectionEdge 2 -#define SelectionCell 3 -#define SelectionActor 4 - -namespace VisuGUI_Selection{ - void PickingCell(QAD_Study *theActiveStudy, vtkDataSet *theDataSet); - void PickingPoint(QAD_Study *theActiveStudy, vtkDataSet *theDataSet); - void Highlight(QAD_Study *theActiveStudy, const Handle(SALOME_InteractiveObject)& theIO, int theId); + +#include +#include +#include +#include +#include +#include + + +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