1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // VISU VISUGUI : GUI of VISU component
23 // File : VisuGUI_GaussPointsSelectionPane.h
24 // Author : Oleg Uvarov
27 #ifndef VISUGUI_GAUSSPOINTSSELECTIONPANE_H
28 #define VISUGUI_GAUSSPOINTSSELECTIONPANE_H
30 #include <vtkObject.h>
31 #include <vtkSmartPointer.h>
35 class vtkActorCollection;
36 class vtkCallbackCommand;
46 class VISU_GaussPtsAct;
47 class VISU_PickingSettings;
49 class SalomeApp_Module;
50 class SVTK_RenderWindowInteractor;
51 class VisuGUI_ValidatedLineEdit;
55 * Uses for set up picking preferenses and apply
56 * them to all actors in the current renderer.
58 class VisuGUI_GaussPointsSelectionPane : public QWidget
63 VisuGUI_GaussPointsSelectionPane( const SalomeApp_Module* theModule, QWidget* theParent );
65 ~VisuGUI_GaussPointsSelectionPane();
67 //! update dialog contents.
70 void setIds( const int, const int );
72 void setInteractor( SVTK_RenderWindowInteractor* );
78 SVTK_RenderWindowInteractor* getInteractor();
81 void onSelectionValidate();
82 void onSelectionApply();
85 void onApplyDisplayParentMesh( bool );
88 static void ProcessEvents(vtkObject* theObject,
89 unsigned long theEvent,
94 void SelectionEvent();
95 //void keyPressEvent( QKeyEvent* e );
97 void clearIDControls();
100 const SalomeApp_Module* myModule;
102 QCheckBox* myDisplayParentMeshCheckBox;
104 VisuGUI_ValidatedLineEdit* myParentElementLineEdit;
105 VisuGUI_ValidatedLineEdit* myLocalPointLineEdit;
107 QValidator* myCellIDValidator;
108 QValidator* myLocalPointIDValidator;
111 vtkSmartPointer<vtkCallbackCommand> myEventCallbackCommand;
114 class VisuGUI_ValidatedLineEdit : public QLineEdit
118 VisuGUI_ValidatedLineEdit( QWidget* parent );
121 void MarkValidated( const QString& theText );