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 "QAD_SpinBoxDbl.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)
50 class VisuGUI_VectorsDlg : public QDialog
56 ~VisuGUI_VectorsDlg() {};
58 void setScaleFactor( double sf );
59 double getScaleFactor();
60 void setLineWidth( int lw );
62 void setUseMagnColor( bool on );
63 bool getUseMagnColor();
64 void setUseGlyphs( bool on );
66 void setColor( QColor color);
69 void setGlyphType(VISU::Vectors::GlyphType type );
70 VISU::Vectors::GlyphType getGlyphType();
72 void setGlyphPos(VISU::Vectors::GlyphPos pos);
73 VISU::Vectors::GlyphPos getGlyphPos();
74 void enableMagnColor( bool enable );
76 void initFromPrsObject(VISU::Vectors_i* thePrs);
77 int storeToPrsObject(VISU::Vectors_i* thePrs);
86 QPushButton* SelColor;
90 QAD_SpinBoxDbl* ScalFact;
92 QButtonGroup* TypeGlyph;
93 QRadioButton* RBCones6;
94 QRadioButton* RBCones2;
95 QRadioButton* RBArrows;
96 QButtonGroup* PosGlyph;
100 QGroupBox* GroupButtons;
101 QPushButton* buttonOk;
102 QPushButton* buttonCancel;
105 VisuGUI_ScalarBarPane* myScalarPane;
108 void enableGlyphType();
110 void enableSetColor();
113 #endif // VISUGUI_VECTORSDLG_H