1 // File : VisuGUI_VectorsDlg.h
2 // Created : Wed Aug 01 10:23:06 2001
3 // Author : Laurent CORNABE & Hubert ROLLAND
6 // Copyright : PRINCIPIA
9 #ifndef VISUGUI_VECTORSDLG_H
10 #define VISUGUI_VECTORSDLG_H
13 #include <qbuttongroup.h>
14 #include <qgroupbox.h>
15 #include <qradiobutton.h>
16 #include <qcheckbox.h>
19 #include <qpushbutton.h>
20 #include "QAD_SpinBoxDbl.h"
21 #include "VISU_PrsObject_i.hh"
24 class VisuGUI_VectorsDlg : public QDialog
30 ~VisuGUI_VectorsDlg();
32 void setScaleFactor( double sf );
33 double getScaleFactor();
34 void setLineWidth( int lw );
36 void setUseMagnColor( bool on );
37 bool getUseMagnColor();
38 void setUseGlyphs( bool on );
40 void setColor( QColor color);
43 void setGlyphType(VISU::Vectors::GlyphType type );
44 VISU::Vectors::GlyphType getGlyphType();
46 void setGlyphPos(VISU::Vectors::GlyphPos pos);
47 VISU::Vectors::GlyphPos getGlyphPos();
48 void enableMagnColor( bool enable );
50 void initFromPrsObject(VISU::Vectors_i* thePrs);
51 void storeToPrsObject(VISU::Vectors_i* thePrs);
58 QPushButton* SelColor;
62 QAD_SpinBoxDbl* ScalFact;
64 QButtonGroup* TypeGlyph;
65 QRadioButton* RBCones6;
66 QRadioButton* RBCones2;
67 QRadioButton* RBArrows;
68 QButtonGroup* PosGlyph;
72 QGroupBox* GroupButtons;
73 QPushButton* buttonOk;
74 QPushButton* buttonCancel;
79 void enableGlyphType();
81 void enableSetColor();
84 #endif // VISUGUI_VECTORSDLG_H