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
33 #include <qbuttongroup.h>
34 #include <qgroupbox.h>
35 #include <qradiobutton.h>
36 #include <qcheckbox.h>
39 #include <qpushbutton.h>
40 #include "QAD_SpinBoxDbl.h"
41 #include "VISU_PrsObject_i.hh"
44 class VisuGUI_VectorsDlg : public QDialog
50 ~VisuGUI_VectorsDlg();
52 void setScaleFactor( double sf );
53 double getScaleFactor();
54 void setLineWidth( int lw );
56 void setUseMagnColor( bool on );
57 bool getUseMagnColor();
58 void setUseGlyphs( bool on );
60 void setColor( QColor color);
63 void setGlyphType(VISU::Vectors::GlyphType type );
64 VISU::Vectors::GlyphType getGlyphType();
66 void setGlyphPos(VISU::Vectors::GlyphPos pos);
67 VISU::Vectors::GlyphPos getGlyphPos();
68 void enableMagnColor( bool enable );
70 void initFromPrsObject(VISU::Vectors_i* thePrs);
71 void storeToPrsObject(VISU::Vectors_i* thePrs);
78 QPushButton* SelColor;
82 QAD_SpinBoxDbl* ScalFact;
84 QButtonGroup* TypeGlyph;
85 QRadioButton* RBCones6;
86 QRadioButton* RBCones2;
87 QRadioButton* RBArrows;
88 QButtonGroup* PosGlyph;
92 QGroupBox* GroupButtons;
93 QPushButton* buttonOk;
94 QPushButton* buttonCancel;
99 void enableGlyphType();
101 void enableSetColor();
104 #endif // VISUGUI_VECTORSDLG_H