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 "QAD_SpinBoxDbl.h"
35 #include <qbuttongroup.h>
36 #include <qgroupbox.h>
37 #include <qradiobutton.h>
38 #include <qcheckbox.h>
41 #include <qpushbutton.h>
43 #include "SALOMEconfig.h"
44 #include CORBA_CLIENT_HEADER(VISU_Gen)
49 class VisuGUI_VectorsDlg : public QDialog
55 ~VisuGUI_VectorsDlg();
57 void setScaleFactor( double sf );
58 double getScaleFactor();
59 void setLineWidth( int lw );
61 void setUseMagnColor( bool on );
62 bool getUseMagnColor();
63 void setUseGlyphs( bool on );
65 void setColor( QColor color);
68 void setGlyphType(VISU::Vectors::GlyphType type );
69 VISU::Vectors::GlyphType getGlyphType();
71 void setGlyphPos(VISU::Vectors::GlyphPos pos);
72 VISU::Vectors::GlyphPos getGlyphPos();
73 void enableMagnColor( bool enable );
75 void initFromPrsObject(VISU::Vectors_i* thePrs);
76 void storeToPrsObject(VISU::Vectors_i* thePrs);
83 QPushButton* SelColor;
87 QAD_SpinBoxDbl* ScalFact;
89 QButtonGroup* TypeGlyph;
90 QRadioButton* RBCones6;
91 QRadioButton* RBCones2;
92 QRadioButton* RBArrows;
93 QButtonGroup* PosGlyph;
97 QGroupBox* GroupButtons;
98 QPushButton* buttonOk;
99 QPushButton* buttonCancel;
104 void enableGlyphType();
106 void enableSetColor();
109 #endif // VISUGUI_VECTORSDLG_H