-// VISU VISUGUI : GUI of VISU component
+// Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
//
-// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// This library is free software; you can redistribute it and/or
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
-//
-//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+
+// VISU VISUGUI : GUI of VISU component
// File : VisuGUI_IsoSurfacesDlg.h
// Author : Laurent CORNABE & Hubert ROLLAND
// Module : VISU
// $Header$
-
+//
#ifndef VISUGUI_ISOSURFACESDLG_H
#define VISUGUI_ISOSURFACESDLG_H
-#include "VisuGUI_ScalarBarDlg.h"
-#include "VISU_IsoSurfaces_i.hh"
+#include "VisuGUI_Prs3dDlg.h"
+
+class QTabWidget;
+class QLineEdit;
+class SalomeApp_IntSpinBox;
+class QButtonGroup;
+class QtxColorButton;
-#include <qdialog.h>
-#include <qlabel.h>
-#include <qgroupbox.h>
-#include <qspinbox.h>
-#include <qpushbutton.h>
-#include <qcheckbox.h>
-#include <qlineedit.h>
+namespace VISU
+{
+ class IsoSurfaces_i;
+};
-class VisuGUI_IsoSurfPane : public QVBox
+class SalomeApp_Module;
+class VisuGUI_InputPane;
+
+class VisuGUI_IsoSurfPane : public QWidget
{
- Q_OBJECT
+ Q_OBJECT;
+
+public:
+ enum { ScalarBarRange = 0, CustomRange };
public:
- VisuGUI_IsoSurfPane(QWidget* parent);
- ~VisuGUI_IsoSurfPane() {};
+ VisuGUI_IsoSurfPane (QWidget* parent,
+ VisuGUI_ScalarBarPane* theScalarPane);
+ ~VisuGUI_IsoSurfPane() {};
- void initFromPrsObject(VISU::IsoSurfaces_i* thePrs);
- int storeToPrsObject(VISU::IsoSurfaces_i* thePrs);
+ void initFromPrsObject(VISU::IsoSurfaces_i* thePrs);
+ int storeToPrsObject(VISU::IsoSurfaces_i* thePrs);
- void setScalarBarPane(VisuGUI_ScalarBarPane* theScalarPane) {myScalarPane = theScalarPane;}
- VisuGUI_ScalarBarPane* getScalarBarPane() {return myScalarPane;}
+ bool check();
- bool check();
+ void setColor(const QColor& theColor);
+ QColor color() const;
protected slots:
+ void onRangeButtonClicked( int );
void onCBUpdate();
+ void setColor();
private:
- QLineEdit* MinIso;
- QLineEdit* MaxIso;
- QSpinBox* NbrIso;
- //QCheckBox* CBUpdate;
+ QButtonGroup* myRangeGrp;
+ QLineEdit* MinIso;
+ QLineEdit* MaxIso;
+ SalomeApp_IntSpinBox* NbrIso;
+ QCheckBox* myUseMagnitude;
+ QtxColorButton* mySelColor;
+ QCheckBox* myUseLabels;
+ SalomeApp_IntSpinBox* myNbLabels;
VisuGUI_ScalarBarPane* myScalarPane;
- // QCheckBox* CBLog;
};
-class VisuGUI_IsoSurfacesDlg : public QDialog
+class VisuGUI_IsoSurfacesDlg : public VisuGUI_ScalarBarBaseDlg
{
- Q_OBJECT
+ Q_OBJECT;
public:
- VisuGUI_IsoSurfacesDlg(QWidget* parent);
- ~VisuGUI_IsoSurfacesDlg() {};
+ VisuGUI_IsoSurfacesDlg (SalomeApp_Module* theModule);
+ ~VisuGUI_IsoSurfacesDlg();
- void initFromPrsObject(VISU::IsoSurfaces_i* thePrs)
- {myScalarPane->initFromPrsObject(thePrs); myIsoPane->initFromPrsObject(thePrs);}
+ virtual void initFromPrsObject( VISU::ColoredPrs3d_i* thePrs,
+ bool theInit );
- int storeToPrsObject(VISU::IsoSurfaces_i* thePrs)
- {return myScalarPane->storeToPrsObject(thePrs) && myIsoPane->storeToPrsObject(thePrs);}
+ virtual int storeToPrsObject(VISU::ColoredPrs3d_i* thePrs);
-protected slots:
+protected:
+ virtual QString GetContextHelpFilePath();
+
+ protected slots:
void accept();
private:
- VisuGUI_IsoSurfPane* myIsoPane;
- VisuGUI_ScalarBarPane* myScalarPane;
+ QTabWidget* myTabBox;
+ VisuGUI_IsoSurfPane* myIsoPane;
+ VisuGUI_InputPane* myInputPane;
+
+ SALOME::GenericObjPtr<VISU::IsoSurfaces_i> myPrsCopy;
};
#endif // VISUGUI_ISOSURFACESDLG_H