#include "VISU_CutLines_i.hh"
#include "VISU_Vectors_i.hh"
#include "VISU_StreamLines_i.hh"
+#include "VISU_Plot3D_i.hh"
#include "VISU_Table_i.hh"
#include "VISU_Actor.h"
#include "VisuGUI_EditContainerDlg.h"
#include "VisuGUI_TimeAnimation.h"
#include "VisuGUI_ClippingDlg.h"
+#include "VisuGUI_Plot3DDlg.h"
#include "VisuGUI_Selection.h"
#include "VisuGUI_NonIsometricDlg.h"
CREATEPRESENTATION(VisuGUI::CreateCutPlanes);
CREATEPRESENTATION(VisuGUI::CreateCutLines);
CREATEPRESENTATION(VisuGUI::CreateStreamLines);
+CREATEPRESENTATION(VisuGUI::CreatePlot3D);
CREATEPRS(VISU::CutPlanes_i, VisuGUI::CreateCutPlanesPrs, CutPlanesOnField);
CREATEPRS(VISU::CutLines_i, VisuGUI::CreateCutLinesPrs, CutLinesOnField);
CREATEPRS(VISU::StreamLines_i, VisuGUI::CreateStreamLinesPrs, StreamLinesOnField);
+CREATEPRS(VISU::Plot3D_i, VisuGUI::CreatePlot3DPrs, Plot3DOnField);
#define BUILDPRS(TYPE, FCREATE, FNAME, DLGNAME) \
//BUILDPRS(VISU::CutPlanes_i, CreateCutPlanesPrs, VisuGUI::CreateCutPlanes, VisuGUI_CutPlanesDlg);
//BUILDPRS(VISU::CutLines_i, CreateCutLinesPrs, VisuGUI::CreateCutLines, VisuGUI_CutLinesDlg);
BUILDPRS(VISU::StreamLines_i, CreateStreamLinesPrs, VisuGUI::CreateStreamLines, VisuGUI_StreamLinesDlg);
+BUILDPRS(VISU::Plot3D_i, CreatePlot3DPrs, VisuGUI::CreatePlot3D, VisuGUI_Plot3DDlg);
bool VisuGUI::CreateCutPlanes(SALOMEDS::SObject_var theField) {
class CutLines_i;
class Vectors_i;
class StreamLines_i;
+ class Plot3D_i;
class Table_i;
class Curve_i;
static VISU::StreamLines_i* CreateStreamLinesPrs(SALOMEDS::SObject_var theField,
const char* theMeshName, VISU::Entity theEntity,
const char* theFieldName, int theTimeId);
+ bool CreatePlot3D(SALOMEDS::SObject_var theField);
+ static VISU::Plot3D_i* CreatePlot3DPrs(SALOMEDS::SObject_var theField,
+ const char* theMeshName, VISU::Entity theEntity,
+ const char* theFieldName, int theTimeId);
bool TestObjectBrowser(SALOMEDS::SObject_var& objVisu);
static void ShowTrihedron(bool Show);
virtual bool OnGUIEvent(int theCommandID, QAD_Desktop* parent);
virtual bool SetSettings(QAD_Desktop* parent);
virtual void DefinePopup(QString & theContext,
- QString & theParent,
- QString & theObject ) ;
+ QString & theParent,
+ QString & theObject ) ;
virtual bool CustomPopup(QAD_Desktop* parent,
- QPopupMenu* popup,
- const QString & theContext,
- const QString & theParent,
- const QString & theObject);
+ QPopupMenu* popup,
+ const QString & theContext,
+ const QString & theParent,
+ const QString & theObject);
virtual void BuildPresentation( const Handle(SALOME_InteractiveObject)&,
QAD_ViewFrame* = 0 );
virtual bool OnMousePress(QMouseEvent* pe ,
- QAD_Desktop* parent,
- QAD_StudyFrame* studyFrame);
+ QAD_Desktop* parent,
+ QAD_StudyFrame* studyFrame);
virtual bool OnMouseMove(QMouseEvent* pe ,
- QAD_Desktop* parent,
- QAD_StudyFrame* studyFrame);
+ QAD_Desktop* parent,
+ QAD_StudyFrame* studyFrame);
virtual bool OnKeyPress(QKeyEvent* pe,
- QAD_Desktop* parent,
- QAD_StudyFrame* studyFrame);
+ QAD_Desktop* parent,
+ QAD_StudyFrame* studyFrame);
virtual void SupportedViewType (int* buffer, int bufferSize);
public slots:
void CreateCutPlanes();
void CreateCutLines();
void CreateStreamLines();
+ void CreatePlot3D();
+
void CreateManyMesh();
void CreatePlot2dView();
// $Header$
#include "VisuGUI_Plot3DDlg.h"
-#include "VISU_IsoSurfaces_i.hh"
#include "QAD_Application.h"
#include "QAD_Desktop.h"
-void VisuGUI_Plot3DPane::initFromPrsObject(VISU::IsoSurfaces_i* thePrs) {
- NbrIso->setValue(thePrs->GetNbSurfaces());
- MinIso->setText(QString::number(thePrs->GetSubMin()));
- MaxIso->setText(QString::number(thePrs->GetSubMax()));
-// switch(thePrs->GetScaling()){
-// case VISU::LOGARITHMIC :
-// CBLog->setChecked(true);
-// break;
-// default:
-// CBLog->setChecked(false);
-// }
+void VisuGUI_Plot3DPane::initFromPrsObject(VISU::Plot3D_i* thePrs) {
}
-int VisuGUI_Plot3DPane::storeToPrsObject(VISU::IsoSurfaces_i* thePrs) {
- thePrs->SetNbSurfaces(NbrIso->value());
- thePrs->SetSubRange(MinIso->text().toDouble(), MaxIso->text().toDouble());
+int VisuGUI_Plot3DPane::storeToPrsObject(VISU::Plot3D_i* thePrs) {
return 1;
-// if (CBUpdate->isChecked())
-// {
-// thePrs->SetRange(MinIso->text().toDouble(), MaxIso->text().toDouble());
-// if (CBLog->isChecked())
-// thePrs->SetScaling(VISU::LOGARITHMIC);
-// else
-// thePrs->SetScaling(VISU::LINEAR);
-// }
}
void VisuGUI_Plot3DPane::onCBUpdate()
// Module : VISU
// $Header$
-#ifndef VISUGUI_ISOSURFACESDLG_H
-#define VISUGUI_ISOSURFACESDLG_H
+#ifndef VISUGUI_PLOT3D_H
+#define VISUGUI_PLOT3D_H
#include "VisuGUI_ScalarBarDlg.h"
-#include "VISU_IsoSurfaces_i.hh"
+#include "VISU_Plot3D_i.hh"
#include <qdialog.h>
#include <qlabel.h>
VisuGUI_Plot3DPane(QWidget* parent);
~VisuGUI_Plot3DPane() {};
- void initFromPrsObject(VISU::IsoSurfaces_i* thePrs);
- int storeToPrsObject(VISU::IsoSurfaces_i* thePrs);
+ void initFromPrsObject(VISU::Plot3D_i* thePrs);
+ int storeToPrsObject(VISU::Plot3D_i* thePrs);
void setScalarBarPane(VisuGUI_ScalarBarPane* theScalarPane) {myScalarPane = theScalarPane;}
VisuGUI_ScalarBarPane* getScalarBarPane() {return myScalarPane;}
QLineEdit* MinIso;
QLineEdit* MaxIso;
QSpinBox* NbrIso;
- //QCheckBox* CBUpdate;
VisuGUI_ScalarBarPane* myScalarPane;
- // QCheckBox* CBLog;
};
VisuGUI_Plot3DDlg();
~VisuGUI_Plot3DDlg() {};
- void initFromPrsObject(VISU::IsoSurfaces_i* thePrs)
+ void initFromPrsObject(VISU::Plot3D_i* thePrs)
{myScalarPane->initFromPrsObject(thePrs); myIsoPane->initFromPrsObject(thePrs);}
- int storeToPrsObject(VISU::IsoSurfaces_i* thePrs)
+ int storeToPrsObject(VISU::Plot3D_i* thePrs)
{return myScalarPane->storeToPrsObject(thePrs) && myIsoPane->storeToPrsObject(thePrs);}
protected slots:
VisuGUI_ScalarBarPane* myScalarPane;
};
-#endif // VISUGUI_ISOSURFACESDLG_H
+#endif // VISUGUI_PLOT3D_H
#include "VISU_CutLines_i.hh"
#include "VISU_Vectors_i.hh"
#include "VISU_StreamLines_i.hh"
+#include "VISU_Plot3D_i.hh"
#include "VISU_Table_i.hh"
#include "VISU_TimeAnimation.h"
Storable::Registry(CutLines_i::myComment.c_str(),&(Restore<CutLines_i>));
Storable::Registry(IsoSurfaces_i::myComment.c_str(),&(Restore<IsoSurfaces_i>));
Storable::Registry(StreamLines_i::myComment.c_str(),&(Restore<StreamLines_i>));
+ Storable::Registry(Plot3D_i::myComment.c_str(),&(Restore<Plot3D_i>));
Storable::Registry(Vectors_i::myComment.c_str(),&(Restore<Vectors_i>));
Storable::Registry(Table_i::myComment.c_str(),&(Table_i::Restore));
Storable::Registry(Curve_i::myComment.c_str(),&(Curve_i::Restore));
return Prs3dOnField<VISU::StreamLines_i>(theResult,theMeshName,theEntity,theFieldName,theIteration)._retn();
}
+ Plot3D_ptr VISU_Gen_i::Plot3DOnField(Result_ptr theResult,
+ const char* theMeshName,
+ VISU::Entity theEntity,
+ const char* theFieldName,
+ CORBA::Double theIteration)
+ {
+ return Prs3dOnField<VISU::Plot3D_i>(theResult,theMeshName,theEntity,theFieldName,theIteration)._retn();
+ }
+
CutPlanes_ptr VISU_Gen_i::CutPlanesOnField(Result_ptr theResult,
const char* theMeshName,
VISU::Entity theEntity,
const char* theFieldName, CORBA::Double theIteration);
virtual StreamLines_ptr StreamLinesOnField(Result_ptr theResult, const char* theMeshName, VISU::Entity theEntity,
const char* theFieldName, CORBA::Double theIteration);
+ virtual Plot3D_ptr Plot3DOnField(Result_ptr theResult, const char* theMeshName, VISU::Entity theEntity,
+ const char* theFieldName, CORBA::Double theIteration);
//Create Digital Presentation
virtual Table_ptr CreateTable(const char* theTableEntry);
virtual Curve_ptr CreateCurve(Table_ptr theTable, CORBA::Long theHRow, CORBA::Long theVRow);
virtual void SetNbOfContours (CORBA::Long theNb);
virtual CORBA::Long GetNbOfContours();
- //typedef VISU::Plot3D TInterface;
+ typedef VISU::Plot3D TInterface;
VISU_Plot3DPL* GetPlot3DPL() { return myPlot3DPL; }
protected: