Salome HOME
This commit was generated by cvs2git to track changes on a CVS vendor
[modules/visu.git] / src / VISUGUI / VisuGUI_VectorsDlg.h
1 //  File      : VisuGUI_VectorsDlg.h
2 //  Created   : Wed Aug 01 10:23:06 2001
3 //  Author    : Laurent CORNABE & Hubert ROLLAND 
4 //  Project   : SALOME
5 //  Module    : VISUGUI
6 //  Copyright : PRINCIPIA
7 //  $Header$
8
9 #ifndef VISUGUI_VECTORSDLG_H
10 #define VISUGUI_VECTORSDLG_H
11
12 #include <qdialog.h>
13 #include <qbuttongroup.h>
14 #include <qgroupbox.h>
15 #include <qradiobutton.h>
16 #include <qcheckbox.h>
17 #include <qlabel.h>
18 #include <qspinbox.h>
19 #include <qpushbutton.h>
20 #include "QAD_SpinBoxDbl.h"
21 #include "VISU_PrsObject_i.hh"
22
23
24 class VisuGUI_VectorsDlg : public QDialog
25
26     Q_OBJECT
27
28 public:
29     VisuGUI_VectorsDlg();
30     ~VisuGUI_VectorsDlg();
31
32     void   setScaleFactor( double sf );
33     double getScaleFactor();
34     void   setLineWidth( int lw );
35     int    getLineWidth();
36     void   setUseMagnColor( bool on );
37     bool   getUseMagnColor();
38     void   setUseGlyphs( bool on );
39     bool   getUseGlyphs();
40     void   setColor( QColor color);
41     QColor getColor();
42
43     void   setGlyphType(VISU::Vectors::GlyphType type );
44     VISU::Vectors::GlyphType  getGlyphType();
45
46     void   setGlyphPos(VISU::Vectors::GlyphPos pos);
47     VISU::Vectors::GlyphPos getGlyphPos();
48     void   enableMagnColor( bool enable );
49
50     void initFromPrsObject(VISU::Vectors_i* thePrs);
51     void storeToPrsObject(VISU::Vectors_i* thePrs);
52
53
54 private:
55     QGroupBox*      TopGroup;
56     QCheckBox*      UseMagn;
57     //QLabel*         ColorLab;
58     QPushButton*    SelColor;
59     QLabel*         LineWidLabel;
60     QSpinBox*       LinWid;
61     QLabel*         ScaleLabel;
62     QAD_SpinBoxDbl* ScalFact;
63     QCheckBox*      UseGlyph;
64     QButtonGroup*   TypeGlyph;
65     QRadioButton*   RBCones6;
66     QRadioButton*   RBCones2;
67     QRadioButton*   RBArrows;
68     QButtonGroup*   PosGlyph;
69     QRadioButton*   RBTail;
70     QRadioButton*   RBCent;
71     QRadioButton*   RBHead;
72     QGroupBox*      GroupButtons;
73     QPushButton*    buttonOk;
74     QPushButton*    buttonCancel;
75
76     QColor          myColor;
77
78 private slots:
79     void enableGlyphType();
80  void setVColor();
81  void enableSetColor();
82 };
83
84 #endif // VISUGUI_VECTORSDLG_H