Version: 6.3.1

src/VISUGUI/VisuGUI_VectorsDlg.h

Go to the documentation of this file.
00001 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 //  VISU VISUGUI : GUI of VISU component
00024 //  File   : VisuGUI_VectorsDlg.h
00025 //  Author : Laurent CORNABE & Hubert ROLLAND
00026 //  Module : VISU
00027 //  $Header: /home/server/cvs/VISU/VISU_SRC/src/VISUGUI/VisuGUI_VectorsDlg.h,v 1.12.2.1.6.1.8.1 2011-06-02 06:00:23 vsr Exp $
00028 //
00029 #ifndef VISUGUI_VECTORSDLG_H
00030 #define VISUGUI_VECTORSDLG_H
00031 
00032 #include "VisuGUI_Prs3dDlg.h"
00033 
00034 class QGroupBox;
00035 class QTabWidget;
00036 class QRadioButton;
00037 class QButtonGroup;
00038 class QCheckBox;
00039 class QPushButton;
00040 class QtxColorButton;
00041 
00042 #include "SALOMEconfig.h"
00043 #include CORBA_CLIENT_HEADER(VISU_Gen)
00044 
00045 class SalomeApp_Module;
00046 class SalomeApp_IntSpinBox;
00047 class VisuGUI_InputPane;
00048 class SalomeApp_DoubleSpinBox;
00049 
00050 namespace VISU
00051 {
00052   class Vectors_i;
00053 }
00054 
00055 class VisuGUI_VectorsDlg : public VisuGUI_ScalarBarBaseDlg
00056 {
00057     Q_OBJECT
00058 
00059 public:
00060     VisuGUI_VectorsDlg (SalomeApp_Module* theModule);
00061     ~VisuGUI_VectorsDlg();
00062 
00063     void   setScaleFactor( double sf );
00064     double getScaleFactor();
00065     void   setLineWidth( int lw );
00066     int    getLineWidth();
00067     void   setUseMagnColor( bool on );
00068     bool   getUseMagnColor();
00069     void   setUseGlyphs( bool on );
00070     bool   getUseGlyphs();
00071     void   setColor( QColor color);
00072     QColor getColor();
00073 
00074     void   setGlyphType(VISU::Vectors::GlyphType type );
00075     VISU::Vectors::GlyphType  getGlyphType();
00076 
00077     void   setGlyphPos(VISU::Vectors::GlyphPos pos);
00078     VISU::Vectors::GlyphPos getGlyphPos();
00079     void   enableMagnColor( bool enable );
00080 
00081     virtual void initFromPrsObject( VISU::ColoredPrs3d_i* thePrs,
00082                                     bool theInit );
00083 
00084     virtual int  storeToPrsObject(VISU::ColoredPrs3d_i* thePrs);
00085 
00086 protected slots:
00087   virtual QString GetContextHelpFilePath();
00088 
00089 private:
00090     QGroupBox*      TopGroup;
00091     QCheckBox*      UseMagn;
00092     QtxColorButton* SelColor;
00093     QLabel*         LineWidLabel;
00094     SalomeApp_IntSpinBox* LinWid;
00095     QLabel*         ScaleLabel;
00096     SalomeApp_DoubleSpinBox* ScalFact;
00097     QCheckBox*      UseGlyph;
00098     QButtonGroup*   TypeGlyph;
00099     QGroupBox*      TypeGB;
00100     QRadioButton*   RBCones6;
00101     QRadioButton*   RBCones2;
00102     QRadioButton*   RBArrows;
00103     QButtonGroup*   PosGlyph;
00104     QGroupBox*      PosGB;
00105     QRadioButton*   RBTail;
00106     QRadioButton*   RBCent;
00107     QRadioButton*   RBHead;
00108     QGroupBox*      GroupButtons;
00109     QPushButton*    buttonOk;
00110     QPushButton*    buttonCancel;
00111     QPushButton*    buttonHelp;
00112 
00113     QColor          myColor;
00114     QTabWidget*            myTabBox;
00115 
00116     VisuGUI_ScalarBarPane* myScalarPane;
00117     VisuGUI_InputPane*     myInputPane;
00118 
00119     SALOME::GenericObjPtr<VISU::Vectors_i> myPrsCopy;
00120 
00121 private slots:
00122     void enableGlyphType();
00123 //void setVColor();
00124     void enableSetColor();
00125 };
00126 
00127 #endif // VISUGUI_VECTORSDLG_H
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS