#include "SUIT_Study.h"
#include "SUIT_Desktop.h"
+#include "SUIT_ResourceMgr.h"
#include "CAM_Module.h"
#include "SalomeApp_VTKSelector.h"
#include "VVTK_ViewManager.h"
+#include "VVTK_ViewWindow.h"
#include "VVTK_ViewModel.h"
+#include "VisuGUI_Prs3dTools.h"
+
+#include "VISU_ScalarMap_i.hh"
+#include "VisuGUI_ScalarBarDlg.h"
+
+#include "VISU_Gen_i.hh"
+#include "VISU_Result_i.hh"
+#include "VISU_CutLines_i.hh"
+
+#include "VisuGUI_Tools.h"
+#include "VISU_Actor.h"
+
#ifdef _DEBUG_
static int MYDEBUG = 1;
#else
#endif
#define GAUSS_NEW_VIEWER 5100
+#define GAUSS_CREATE_PRS 5200
+
+void
+CreateCurves( SalomeApp_Module* theModule,
+ VISU::CutLines_i* thePrs,
+ QDialog* theDlg,
+ const bool theCreate = true );
using namespace VISU;
// Add menus
int aMenuId;
aMenuId = createMenu( tr( "MEN_GAUSS" ), -1, -1, 30 );
- createAction( GAUSS_NEW_VIEWER, tr("MEN_NEW_VIEWER"), QIconSet(),
- tr("MEN_NEW_VIEWER"), "", 0, this, false,
+ createAction( GAUSS_NEW_VIEWER, tr("MEN_GAUSS_NEW_VIEWER"), QIconSet(),
+ tr("MEN_GAUSS_NEW_VIEWER"), "", 0, this, false,
this, SLOT(onCreateViewManager()));
+ createMenu( GAUSS_NEW_VIEWER, aMenuId, 10 );
- createMenu( GAUSS_NEW_VIEWER, aMenuId, 10 ); // new viewer
+ createAction( GAUSS_CREATE_PRS, tr("MEN_GAUSS_CREATE_PRS"), QIconSet(),
+ tr("MEN_GAUSS_CREATE_PRS"), "", 0, this, false,
+ this, SLOT(OnCreateGaussPoints()));
+ createMenu( GAUSS_CREATE_PRS, aMenuId, 10 );
}
myViewerMap.erase(theViewManager);
}
+
+void
+VisuGUI_Module
+::OnCreateGaussPoints()
+{
+ CreatePrs3d<VISU::ScalarMap_i,VVTK_Viewer,VisuGUI_ScalarBarDlg,1>(this);
+}
+