]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To introduce new type of presentation (Gauss Points)
authorapo <apo@opencascade.com>
Wed, 17 Aug 2005 04:53:55 +0000 (04:53 +0000)
committerapo <apo@opencascade.com>
Wed, 17 Aug 2005 04:53:55 +0000 (04:53 +0000)
- first step

src/VISUGUI/VISUM_msg_en.po
src/VISUGUI/VisuGUI_Module.cxx
src/VISUGUI/VisuGUI_Module.h

index 683025322d0bb9a7399b425ad9f3e756ba73321a..e7171a98d9f4c0a11c6a8a23ef4020ab5e9b9e28 100644 (file)
@@ -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
index 97372f56bea68b6992b99da50ba7a2d09c40c220..95abf33166ae93b9b61ca878d7652ead9248676d 100644 (file)
@@ -30,6 +30,7 @@
 
 #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
@@ -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<VISU::ScalarMap_i,VVTK_Viewer,VisuGUI_ScalarBarDlg,1>(this);
+}
+
index ab76990b2e4b5f027d7c79adbaa9b8f99461e052..e766cce212124424da7593e7ac76fde7931e795b 100644 (file)
@@ -78,6 +78,9 @@ protected slots:
   void
   onLastViewClosed(SUIT_ViewManager*);
 
+  void
+  OnCreateGaussPoints();
+
 protected:
   VISU::TViewerMap myViewerMap;
 };