From: apo Date: Wed, 17 Aug 2005 04:53:55 +0000 (+0000) Subject: To introduce new type of presentation (Gauss Points) X-Git-Tag: BR-D5-38-2003_D2005-12-09~113 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=613c56ff86196aea4de84d02e7b91950d4c5b521;p=modules%2Fvisu.git To introduce new type of presentation (Gauss Points) - first step --- diff --git a/src/VISUGUI/VISUM_msg_en.po b/src/VISUGUI/VISUM_msg_en.po index 68302532..e7171a98 100644 --- a/src/VISUGUI/VISUM_msg_en.po +++ b/src/VISUGUI/VISUM_msg_en.po @@ -9,8 +9,11 @@ msgstr "" msgid "VisuGUI_Module::MEN_GAUSS" msgstr "Gauss" -msgid "VisuGUI_Module::MEN_NEW_VIEWER" +msgid "VisuGUI_Module::MEN_GAUSS_NEW_VIEWER" msgstr "New Viewer" +msgid "VisuGUI_Module::MEN_GAUSS_CREATE_PRS" +msgstr "Create Gauss Points" + msgid "VVTK_ViewManager::VTK_VIEW_TITLE" msgstr "VISU scene:%1 - viewer:%2" \ No newline at end of file diff --git a/src/VISUGUI/VisuGUI_Module.cxx b/src/VISUGUI/VisuGUI_Module.cxx index 97372f56..95abf331 100644 --- a/src/VISUGUI/VisuGUI_Module.cxx +++ b/src/VISUGUI/VisuGUI_Module.cxx @@ -30,6 +30,7 @@ #include "SUIT_Study.h" #include "SUIT_Desktop.h" +#include "SUIT_ResourceMgr.h" #include "CAM_Module.h" @@ -38,8 +39,21 @@ #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 @@ -47,6 +61,13 @@ static int MYDEBUG = 0; #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; @@ -129,11 +150,15 @@ VisuGUI_Module // 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 ); } @@ -180,3 +205,11 @@ VisuGUI_Module myViewerMap.erase(theViewManager); } + +void +VisuGUI_Module +::OnCreateGaussPoints() +{ + CreatePrs3d(this); +} + diff --git a/src/VISUGUI/VisuGUI_Module.h b/src/VISUGUI/VisuGUI_Module.h index ab76990b..e766cce2 100644 --- a/src/VISUGUI/VisuGUI_Module.h +++ b/src/VISUGUI/VisuGUI_Module.h @@ -78,6 +78,9 @@ protected slots: void onLastViewClosed(SUIT_ViewManager*); + void + OnCreateGaussPoints(); + protected: VISU::TViewerMap myViewerMap; };