-// 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.salome-platform.org/ or email : webmaster.salome@opencascade.com
-//
-//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+
+// VISU VISUGUI : GUI of VISU component
// File : VisuGUI_CutPlanesDlg.h
// Author : Laurent CORNABE & Hubert ROLLAND
// Module : VISU
// $Header$
-
+//
#ifndef VISUGUI_CUTPLANESDLG_H
#define VISUGUI_CUTPLANESDLG_H
#include "VisuGUI_Prs3dDlg.h"
#include <SALOME_Actor.h>
+#include <SalomeApp_IntSpinBox.h>
+#include <SalomeApp_DoubleSpinBox.h>
-#include <qspinbox.h>
-#include <qradiobutton.h>
-#include <qtable.h>
-#include <qtabwidget.h>
+#include <QFrame>
-#include <QtxDblSpinBox.h>
+class QRadioButton;
+class QTabWidget;
+class QTableWidget;
+class QCheckBox;
+class QComboBox;
#include "SALOMEconfig.h"
#include CORBA_CLIENT_HEADER(VISU_Gen)
+#include <map>
+#include <vector>
+
namespace VISU
{
class CutPlanes_i;
+ class Result_i;
};
class SUIT_ViewWindow;
double getRotation1() {return Rot1->value();}
double getRotation2() {return Rot2->value();}
- void initFromPrsObject(VISU::CutPlanes_i* thePrs);
- int storeToPrsObject(VISU::CutPlanes_i* thePrs);
+ double getScaleFactor();
+ void setScaleFactor(double factor);
+
+ void initFromPrsObject(VISU::CutPlanes_i* thePrs);
+ int storeToPrsObject(VISU::CutPlanes_i* thePrs);
private:
+ typedef std::vector<QString> TVectorialFieldsList;
+ typedef std::map<VISU::Entity, TVectorialFieldsList> TEntity2VectorialFields;
+ typedef std::pair<VISU::Entity,TVectorialFieldsList> TEntVectPair;
+ TEntity2VectorialFields myEntity2VectorialFields;
+
void createPlanes();
void deletePlanes();
+ void InitEntity2VectorialFieldsMap(VISU::ColoredPrs3d_i* thePrs);
+ void InsertAllVectorialFields();
+ void InitVectorialField();
+
QLabel* LabelRot1;
QLabel* LabelRot2;
- QSpinBox* nbPlan;
- QtxDblSpinBox* Rot1;
- QtxDblSpinBox* Rot2;
+ QGroupBox* GDeformation;
+ SalomeApp_IntSpinBox* nbPlan;
+ SalomeApp_DoubleSpinBox* Rot1;
+ SalomeApp_DoubleSpinBox* Rot2;
QRadioButton* RBzx;
QRadioButton* RByz;
QRadioButton* RBxy;
- QtxDblSpinBox* myPosSpn;
- QTable* myPosTable;
+ SalomeApp_DoubleSpinBox* myPosSpn;
+ QTableWidget* myPosTable;
SALOME::GenericObjPtr<VISU::CutPlanes_i> myCutPlanes;
QCheckBox* myPreviewCheck;
+ QComboBox* myVectorialFieldCombo;
+ SalomeApp_DoubleSpinBox* myScaleSpn;
double X1, X2;
double Y1, Y2;
double Z1, Z2;
void onValueChanged(int theRow, int theCol);
void onRotation(double theValue);
void onPreviewCheck(bool thePreview);
+ void onScaleFactorChanged(double);
+ void onDeformationCheck(bool);
+ void onVectorialFieldChanged(int);
};
~VisuGUI_CutPlanesDlg();
virtual void initFromPrsObject( VISU::ColoredPrs3d_i* thePrs,
- bool theInit );
+ bool theInit );
virtual int storeToPrsObject(VISU::ColoredPrs3d_i* thePrs);
};
-class VisuGUI_NumEditItem: public QTableItem
+/*class VisuGUI_NumEditItem: public QTableItem
{
public:
- VisuGUI_NumEditItem(QTable* table, EditType et, const QString& text ):
+ VisuGUI_NumEditItem(QTableWidget* table, const QString& text ):
QTableItem(table, et, text) {};
~VisuGUI_NumEditItem() {};
QWidget* createEditor() const;
-};
+};*/
#endif // VISUGUI_CUTPLANESDLG_H