1 // VISU VISUGUI : GUI of VISU component
3 // Copyright (C) 2003 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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : VisuGUI_VectorsDlg.h
25 // Author : Laurent CORNABE & Hubert ROLLAND
29 #ifndef VISUGUI_VECTORSDLG_H
30 #define VISUGUI_VECTORSDLG_H
32 #include "VisuGUI_ScalarBarDlg.h"
33 #include "QtxDblSpinBox.h"
36 #include <qbuttongroup.h>
37 #include <qgroupbox.h>
38 #include <qradiobutton.h>
39 #include <qcheckbox.h>
42 #include <qpushbutton.h>
44 #include "SALOMEconfig.h"
45 #include CORBA_CLIENT_HEADER(VISU_Gen)
47 class SalomeApp_Module;
53 class VisuGUI_VectorsDlg : public QDialog
58 VisuGUI_VectorsDlg (SalomeApp_Module* theModule);
59 ~VisuGUI_VectorsDlg() {};
61 void setScaleFactor( double sf );
62 double getScaleFactor();
63 void setLineWidth( int lw );
65 void setUseMagnColor( bool on );
66 bool getUseMagnColor();
67 void setUseGlyphs( bool on );
69 void setColor( QColor color);
72 void setGlyphType(VISU::Vectors::GlyphType type );
73 VISU::Vectors::GlyphType getGlyphType();
75 void setGlyphPos(VISU::Vectors::GlyphPos pos);
76 VISU::Vectors::GlyphPos getGlyphPos();
77 void enableMagnColor( bool enable );
79 void initFromPrsObject(VISU::Vectors_i* thePrs);
80 int storeToPrsObject(VISU::Vectors_i* thePrs);
91 QPushButton* SelColor;
95 QtxDblSpinBox* ScalFact;
97 QButtonGroup* TypeGlyph;
98 QRadioButton* RBCones6;
99 QRadioButton* RBCones2;
100 QRadioButton* RBArrows;
101 QButtonGroup* PosGlyph;
102 QRadioButton* RBTail;
103 QRadioButton* RBCent;
104 QRadioButton* RBHead;
105 QGroupBox* GroupButtons;
106 QPushButton* buttonOk;
107 QPushButton* buttonCancel;
108 QPushButton* buttonHelp;
111 VisuGUI_ScalarBarPane* myScalarPane;
114 void enableGlyphType();
116 void enableSetColor();
119 #endif // VISUGUI_VECTORSDLG_H