1 // Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // VISU VISUGUI : GUI of VISU component
21 // File : VisuGUI_GaussPointsSelectionPane.h
22 // Author : Oleg Uvarov
25 #ifndef VISUGUI_GAUSSPOINTSSELECTIONPANE_H
26 #define VISUGUI_GAUSSPOINTSSELECTIONPANE_H
28 #include <vtkObject.h>
29 #include <vtkSmartPointer.h>
33 class vtkActorCollection;
34 class vtkCallbackCommand;
44 class VISU_GaussPtsAct;
45 class VISU_PickingSettings;
47 class SalomeApp_Module;
48 class SVTK_RenderWindowInteractor;
49 class VisuGUI_ValidatedLineEdit;
53 * Uses for set up picking preferenses and apply
54 * them to all actors in the current renderer.
56 class VisuGUI_GaussPointsSelectionPane : public QWidget
61 VisuGUI_GaussPointsSelectionPane( const SalomeApp_Module* theModule, QWidget* theParent );
63 ~VisuGUI_GaussPointsSelectionPane();
65 //! update dialog contents.
68 void setIds( const int, const int );
70 void setInteractor( SVTK_RenderWindowInteractor* );
76 SVTK_RenderWindowInteractor* getInteractor();
79 void onSelectionValidate();
80 void onSelectionApply();
83 void onApplyDisplayParentMesh( bool );
86 static void ProcessEvents(vtkObject* theObject,
87 unsigned long theEvent,
92 void SelectionEvent();
93 //void keyPressEvent( QKeyEvent* e );
95 void clearIDControls();
98 const SalomeApp_Module* myModule;
100 QCheckBox* myDisplayParentMeshCheckBox;
102 VisuGUI_ValidatedLineEdit* myParentElementLineEdit;
103 VisuGUI_ValidatedLineEdit* myLocalPointLineEdit;
105 QValidator* myCellIDValidator;
106 QValidator* myLocalPointIDValidator;
109 vtkSmartPointer<vtkCallbackCommand> myEventCallbackCommand;
112 class VisuGUI_ValidatedLineEdit : public QLineEdit
116 VisuGUI_ValidatedLineEdit( QWidget* parent );
119 void MarkValidated( const QString& theText );