Salome HOME
NRI : Merge from V1_2.
authornri <nri@opencascade.com>
Thu, 10 Jul 2003 08:29:22 +0000 (08:29 +0000)
committernri <nri@opencascade.com>
Thu, 10 Jul 2003 08:29:22 +0000 (08:29 +0000)
33 files changed:
salome_adm/unix/make_conclude.in
salome_adm/unix/make_omniorb.in
src/Container/Makefile.in
src/DataTypeCatalog/Makefile.in
src/HDFPersist/Makefile.in
src/LifeCycleCORBA/Makefile.in
src/Loader/SALOME_Session_Loader.cxx
src/Loader/SALOME_Session_loader.cxx [deleted file]
src/Logger/Makefile.in
src/MPIContainer/Makefile.in
src/MSG2QM/Makefile.in
src/ModuleCatalog/Makefile.in
src/ModuleGenerator/Makefile.in
src/NOTIFICATION_SWIG/Makefile.in
src/NamingService/Makefile.in
src/Notification/Makefile.in
src/OBJECT/Makefile.in
src/PatchQt/Makefile.in
src/Plot2d/Makefile.in
src/Registry/Makefile.in
src/RegistryDisplay/Makefile.in
src/RessourcesCatalog/Makefile.in
src/SALOMEDS/Makefile.in
src/Session/Makefile.in
src/Session/SALOME_Session_Server.cxx
src/Session/SALOME_Session_i.cxx
src/Session/SALOME_Session_i.hxx
src/TOOLSDS/Makefile.in
src/TestContainer/Makefile.in
src/Utils/Makefile.in
src/VTKViewer/Makefile.in
src/VTKViewer/VTKViewer_NonIsometricTransform.cxx [deleted file]
src/VTKViewer/VTKViewer_NonIsometricTransform.h [deleted file]

index 40a5b019c235c0800121396f058945221639f610..fe43d0e54706985d1855324cc2066f0be1f4c2ec 100644 (file)
@@ -59,7 +59,7 @@ $(LIB_BUILD): $(top_builddir)/lib/salome/%.la: %.la
              $(patsubst %.la, %.so, $@).0 || true
 
        if ! test -z $(LIB_SWIG) ; then \
-          ln -sf $(patsubst %.la,%.so, $(CURDIR)/.libs/$<) $(top_builddir)/lib/_$(LIB_SWIG) || true;\
+          ln -sf $(patsubst %.la,%.so, $(CURDIR)/.libs/$<) $(top_builddir)/lib/salome/_$(LIB_SWIG) || true;\
        fi;
 
 $(LIB_BUILD_A): $(top_builddir)/lib/salome/%.a: %.a
index 723b4f84b7e9934ff4d29a36e9f0b37a969a33a3..c92e682e6cca8c88302d3c986ac5acab2ff4aad0 100644 (file)
@@ -16,7 +16,7 @@
 #IDLOBJ=$(IDLSRC:%.idl=%$(IDL_CLN_OBJ))
 
 # dependancies between idl and it's generated files
-%$(OMNIORB_IDL_CLN_CXX) %$(OMNIORB_IDL_CLN_H): ${top_builddir}/share/salome/idl/%.idl
+%$(OMNIORB_IDL_CLN_CXX) %$(OMNIORB_IDL_CLN_H): ${top_builddir}/idl/%.idl
        $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
 
 # dependncies between idl files
index ee5063df1bc235d00b15dc7b76eb31e05847d912..fdf28da44267be9e9cade51d7049106010202b78 100644 (file)
@@ -27,7 +27,7 @@
 #  $Header$
 
 top_srcdir=@top_srcdir@
-top_builddir=../../..
+top_builddir=../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index 83ec2a9c0288dd307c6fb9a3f9a0987fa124c20e..1017cafe0952b510b808995817f5baa4038b8c9e 100644 (file)
@@ -27,7 +27,7 @@
 #  $Header$
 
 top_srcdir=@top_srcdir@
-top_builddir=../../..
+top_builddir=../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index b00d8b2c9e8417d79a53d5b74a5f74e6dbef9555..3baa03bd930eac215ff0ddd97cca11dd7c4c5935 100644 (file)
@@ -27,7 +27,7 @@
 #  $Header$
 
 top_srcdir=@top_srcdir@
-top_builddir=../../..
+top_builddir=../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index 788d83ef2ac6a80ead92f1bef275d9fb9b554ca0..6f4a461eaed6579e949e4e1d13a4b0aed0661e04 100644 (file)
@@ -27,7 +27,7 @@
 #  $Header$
 
 top_srcdir=@top_srcdir@
-top_builddir=../../..
+top_builddir=../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index e5a6c219d5c23f86293dddb2c99267699afe82ef..825fd045736fdf909596fa038582c4b03037a3c7 100644 (file)
@@ -1,13 +1,13 @@
-using namespace std;
-//=============================================================================
-// File      : SALOME_Session_Loader.cxx
-// Created   : jeu jun 21 07:37:59 CEST 2001
-// Author    : Paul RASCLE, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : SALOME_Session_loader.cxx
+//  Author : Paul RASCLE, EDF
+//  Module : SALOME
+//  $Header$
 
+using namespace std;
 /*! \file SALOME_Session_loader.cxx
  */
 
@@ -39,52 +39,50 @@ int main(int argc, char **argv)
 
   if (myIS.getExitStatus())
     exit(1);
-//VRVcd: T2.4 - Trace management improvement
-  if (myIS.withGUI()) {
-    try
-      {
-       CORBA::ORB_ptr orb = CORBA::ORB_init(argc,argv) ;
-       
-       SALOME_NamingService &NS = *SINGLETON_<SALOME_NamingService>::Instance() ;
-       ASSERT(SINGLETON_<SALOME_NamingService>::IsAlreadyExisting()) ;
-       NS.init_orb( orb ) ;
-       
-       CORBA::Object_var obj = NS.Resolve("/Kernel/Session");
-       
-       SALOME::Session_var session = SALOME::Session::_narrow(obj) ;
-       ASSERT(! CORBA::is_nil(session));
-       MESSAGE("SALOME::Session::_narrow(obj)");
-       INFOS("Corba initialisation, Distant server");
-       
-       // -------------------------------------------------------------
-       
-       session->GetInterface() ;
-       
-       // -------------------------------------------------------------
-       
-       orb->destroy() ;
-      }
-    catch (ServiceUnreachable&)
-      {
-       INFOS("Caught exception: Naming Service Unreachable");
-      }
-    catch (CORBA::COMM_FAILURE&)
-      {
-       INFOS("Caught CORBA::SystemException CommFailure.");
-      }
-    catch (CORBA::SystemException&)
-      {
-       INFOS("Caught CORBA::SystemException.");
-      }
-    catch (CORBA::Exception&)
-      {
-       INFOS("Caught CORBA::Exception.");
-      }
-    catch (...)
-      {
-       INFOS("Caught unknown exception.");
-      }
-  }
+//VRV: T2.4 - Trace management improvement
+  try
+    {
+      CORBA::ORB_ptr orb = CORBA::ORB_init(argc,argv) ;
+
+      SALOME_NamingService &NS = *SINGLETON_<SALOME_NamingService>::Instance() ;
+      ASSERT(SINGLETON_<SALOME_NamingService>::IsAlreadyExisting()) ;
+      NS.init_orb( orb ) ;
+
+      CORBA::Object_var obj = NS.Resolve("/Kernel/Session");
+
+      SALOME::Session_var session = SALOME::Session::_narrow(obj) ;
+      ASSERT(! CORBA::is_nil(session));
+      MESSAGE("SALOME::Session::_narrow(obj)");
+      INFOS("Corba initialisation, Distant server");
+
+      // -------------------------------------------------------------
+
+      session->GetInterface() ;
+
+      // -------------------------------------------------------------
+
+      orb->destroy() ;
+    }
+   catch (ServiceUnreachable&)
+     {
+       INFOS("Caught exception: Naming Service Unreachable");
+     }
+  catch (CORBA::COMM_FAILURE&)
+    {
+      INFOS("Caught CORBA::SystemException CommFailure.");
+    }
+  catch (CORBA::SystemException&)
+    {
+      INFOS("Caught CORBA::SystemException.");
+    }
+  catch (CORBA::Exception&)
+    {
+      INFOS("Caught CORBA::Exception.");
+    }
+  catch (...)
+    {
+      INFOS("Caught unknown exception.");
+    }
   return 0 ;
 }
 
diff --git a/src/Loader/SALOME_Session_loader.cxx b/src/Loader/SALOME_Session_loader.cxx
deleted file mode 100644 (file)
index 825fd04..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-//  Copyright (C) 2003  CEA/DEN, EDF R&D
-//
-//
-//
-//  File   : SALOME_Session_loader.cxx
-//  Author : Paul RASCLE, EDF
-//  Module : SALOME
-//  $Header$
-
-using namespace std;
-/*! \file SALOME_Session_loader.cxx
- */
-
-#include <SALOMEconfig.h>
-#include CORBA_CLIENT_HEADER(SALOME_Session)
-
-#include "Utils_ORB_INIT.hxx"
-#include "Utils_SINGLETON.hxx"
-#include "SALOME_NamingService.hxx"
-#include "utilities.h"
-
-//! CORBA client for SALOME Session server : launch GUI
-/*!
- *  SALOME_Session Loader launches a SALOME GUI on the SALOME session servant process
- */
-
-#include <qapplication.h>
-#include "InquireServersQThread.h"
-
-int main(int argc, char **argv)
-{
-//VRV: T2.4 - Trace management improvement
-  QApplication myQApp(argc, argv) ;
-  InquireServersGUI myIS;
-  myQApp.setMainWidget(&myIS);
-  ASSERT(QObject::connect(&myQApp, SIGNAL(lastWindowClosed()), &myQApp, SLOT(quit()) ) );
-  myIS.show();
-  myQApp.exec();
-
-  if (myIS.getExitStatus())
-    exit(1);
-//VRV: T2.4 - Trace management improvement
-  try
-    {
-      CORBA::ORB_ptr orb = CORBA::ORB_init(argc,argv) ;
-
-      SALOME_NamingService &NS = *SINGLETON_<SALOME_NamingService>::Instance() ;
-      ASSERT(SINGLETON_<SALOME_NamingService>::IsAlreadyExisting()) ;
-      NS.init_orb( orb ) ;
-
-      CORBA::Object_var obj = NS.Resolve("/Kernel/Session");
-
-      SALOME::Session_var session = SALOME::Session::_narrow(obj) ;
-      ASSERT(! CORBA::is_nil(session));
-      MESSAGE("SALOME::Session::_narrow(obj)");
-      INFOS("Corba initialisation, Distant server");
-
-      // -------------------------------------------------------------
-
-      session->GetInterface() ;
-
-      // -------------------------------------------------------------
-
-      orb->destroy() ;
-    }
-   catch (ServiceUnreachable&)
-     {
-       INFOS("Caught exception: Naming Service Unreachable");
-     }
-  catch (CORBA::COMM_FAILURE&)
-    {
-      INFOS("Caught CORBA::SystemException CommFailure.");
-    }
-  catch (CORBA::SystemException&)
-    {
-      INFOS("Caught CORBA::SystemException.");
-    }
-  catch (CORBA::Exception&)
-    {
-      INFOS("Caught CORBA::Exception.");
-    }
-  catch (...)
-    {
-      INFOS("Caught unknown exception.");
-    }
-  return 0 ;
-}
-
-
index 1d51437b87377b853f3a352d47cc05a1d289acab..f03c9adde4ff71bfcd757524798f08a98added61 100644 (file)
@@ -10,7 +10,7 @@
 #  $Header$
 
 top_srcdir=@top_srcdir@
-top_builddir=../../..
+top_builddir=../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index 229107d91f0097a9ae312426df2c754936fd9edb..da4e295d95186e4f043a718bddbfcd47a69d1bb4 100644 (file)
@@ -27,7 +27,7 @@
 #  $Header$
 
 top_srcdir=@top_srcdir@
-top_builddir=../../..
+top_builddir=../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index 544bfb6b0322fe5fd67c056cef07faf254e927a0..0cf36702e8734758f69a81d3703f054b18b00e66 100644 (file)
@@ -25,7 +25,7 @@
 #  Module : SALOME
 
 top_srcdir=@top_srcdir@
-top_builddir=../../..
+top_builddir=../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index 18b89b3fcb9b12eaddd559fb0087556462a7c404..c61ad84874463d3418c276153d9d539c7d312c60 100644 (file)
@@ -27,7 +27,7 @@
 #  $Header$
 
 top_srcdir=@top_srcdir@
-top_builddir=../../..
+top_builddir=../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index 9944da580a94afc1035da686c44dd3ccf7cba8fd..5abeb527008b88fa3091936a7e35b892d7a7a3ff 100644 (file)
@@ -25,7 +25,7 @@
 #  $Header$
 
 top_srcdir=@top_srcdir@
-top_builddir=../../..
+top_builddir=../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index 4be86c5cceb9c2dec59c628e49280de6d7781ba7..c6d7071161b4fc1bb4a485e052245f4dd76fd7e4 100644 (file)
@@ -27,7 +27,7 @@
 #  $Header$
 
 top_srcdir=@top_srcdir@
-top_builddir=../../..
+top_builddir=../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index 5aae16804baf8696d0901a53ad7a0ce248c95398..395e929221a1a0f75730df5feb7b6f2c4657dd44 100644 (file)
@@ -27,7 +27,7 @@
 #  $Header$
 
 top_srcdir=@top_srcdir@
-top_builddir=../../..
+top_builddir=../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index 42c5ac12e0934d9133995114dfa798b35922f716..0da007a70e101832f8bf2e87322970ee51ca3ede 100644 (file)
@@ -27,7 +27,7 @@
 #  $Header$
 
 top_srcdir=@top_srcdir@
-top_builddir=../../..
+top_builddir=../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index b0327f0226395dd9858df6684827abad64a74733..301ade4e1a807a7878119e0d79444fd19dd3bc6f 100644 (file)
@@ -10,16 +10,20 @@ VPATH=.:@srcdir@:@top_srcdir@/idl
 EXPORT_HEADERS = SALOME_InteractiveObject.hxx \
                 Handle_SALOME_InteractiveObject.hxx \
                 SALOME_Actor.h \
+                SALOME_Transform.h \
                 SALOME_AISShape.hxx \
                 Handle_SALOME_AISShape.hxx \
                 SALOME_AISObject.hxx \
-                Handle_SALOME_AISObject.hxx
+                Handle_SALOME_AISObject.hxx \
+                VTKViewer_Common.h
+
 
 # Libraries targets
 
 LIB = libSalomeObject.la
 LIB_SRC =       SALOME_InteractiveObject.cxx \
                 SALOME_Actor.cxx \
+                SALOME_Transform.cxx \
                 SALOME_AISShape.cxx\
                 SALOME_AISObject.cxx
 
index 6fa7f5dd4b7d343f9bf7064d97109036691f75b8..81078aa9fdc09be431d5033965952a2cb6a7539d 100644 (file)
@@ -25,7 +25,7 @@
 #  Module : SALOME
 
 top_srcdir=@top_srcdir@
-top_builddir=../../..
+top_builddir=../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index 40e4480530dbdee86d04afc0b1938ea3e30ae9a4..23079dfd44817caea73b200c6491c8d63aa5de1f 100644 (file)
@@ -13,8 +13,9 @@ EXPORT_HEADERS = \
            Plot2d_CurveContainer.h \
            Plot2d_ViewFrame.h \
            Plot2d_SetupViewDlg.h \
-           Plot2d_SetupPlot2dDlg.h
-          
+           Plot2d_SetupPlot2dDlg.h \
+           Plot2d_FitDataDlg.h
+
 # .po files to transform in .qm
 #PO_FILES = \
 
@@ -27,13 +28,15 @@ LIB_SRC =     \
            Plot2d_CurveContainer.cxx \
            Plot2d_ViewFrame.cxx \
            Plot2d_SetupViewDlg.cxx \
-           Plot2d_SetupPlot2dDlg.cxx
+           Plot2d_SetupPlot2dDlg.cxx \
+           Plot2d_FitDataDlg.cxx
 
 LIB_MOC = \
            Plot2d.h \
            Plot2d_ViewFrame.h \
            Plot2d_SetupViewDlg.h \
-           Plot2d_SetupPlot2dDlg.h
+           Plot2d_SetupPlot2dDlg.h \
+           Plot2d_FitDataDlg.h
 
 LIB_CLIENT_IDL = SALOMEDS.idl \
                 SALOME_ModuleCatalog.idl \
index 84293466eb077e1acc9394cc41e3aa8550c7e69a..823ac6241e219eacb313fd7f320e434fa1246864 100644 (file)
@@ -27,7 +27,7 @@
 #  $Header$
 
 top_srcdir=@top_srcdir@
-top_builddir=../../..
+top_builddir=../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index bc6e2ee584e157a792769260799760bea8235a9f..1c6fd6a1a834a87720a56064e54c42069bba52e4 100644 (file)
@@ -27,7 +27,7 @@
 #  $Header$
 
 top_srcdir=@top_srcdir@
-top_builddir=../../..
+top_builddir=../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index 78694d0d0dd3778f088b46e7e4fceeb2f45188e6..a98eab8bfade710dba804fa16784d7ed5a229db6 100644 (file)
@@ -27,7 +27,7 @@
 #  $Header$
 
 top_srcdir=@top_srcdir@
-top_builddir=../../..
+top_builddir=../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index 429bf63e551fc1de8945ae861b8be63fe7b7ba29..dcb0778c00ba6ed8226638f7f6446fce0a061699 100644 (file)
@@ -107,9 +107,7 @@ BIN_CLIENT_IDL =
 
 CPPFLAGS+=$(OCC_INCLUDES) $(HDF5_INCLUDES)
 CXXFLAGS+=$(OCC_CXXFLAGS)
-LDFLAGS+=$(CAS_KERNEL) $(CAS_OCAF) $(CAS_VIEWER) $(CAS_MODELER) $(HDF5_LIBS) -lTOOLSDS -lSalomeNS -lSalomeHDFPersist -lOpUtil -lSalomeLoggerServer
-# -L/opt/ccmalloc/lib -lccmalloc -ldl
-# -L/opt/efence/lib -lefence
+LDFLAGS+=$(OCC_KERNEL_LIBS) $(OCC_OCAF_LIBS) $(OCC_VIEWER_LIBS) $(OCC_MODELER_LIBS) $(HDF5_LIBS) -lTOOLSDS -lSalomeNS -lSalomeHDFPersist -lOpUtil -lSalomeLoggerServer
 
 @CONCLUDE@
 
index c6a7ffbe0928cbc04977cf46e0a06aad5dcfbb28..cfeaf594583ea06da9d33dc00adff7f31d4078c1 100644 (file)
@@ -51,7 +51,7 @@ BIN_CLIENT_IDL = SALOMEDS.idl SALOMEDS_Attributes.idl SALOME_Component.idl SALOM
 
 CPPFLAGS+=$(QT_MT_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES)
 CXXFLAGS+=$(OCC_CXXFLAGS)
-LDFLAGS+=$(QT_MT_LIBS) $(CAS_KERNEL) $(CAS_OCAF) $(CAS_VIEWER) $(CAS_MODELER) -lSalomeNS -lSalomeGUI -lSalomeObject -lSalomeLifeCycleCORBA -lqsplitterP -lOpUtil -lSalomeLoggerServer -lPlot2d
+LDFLAGS+=$(QT_MT_LIBS) $(OCC_KERNEL_LIBS) $(OCC_OCAF_LIBS) $(OCC_VIEWER_LIBS) $(OCC_MODELER_LIBS) -lSalomeNS -lSalomeGUI -lSalomeObject -lSalomeLifeCycleCORBA -lqsplitterP -lOpUtil -lSalomeLoggerServer -lPlot2d
 
 
 @CONCLUDE@
index 5701871995cdd764c84a903f13ec2f3e4532901f..a53193848d0b6819bb914a69d7a34ffc3debb0ca 100644 (file)
@@ -33,9 +33,6 @@
 #include <unistd.h>
 using namespace std;
 
-// #include <qapplication.h>
-// #include "Qtappl_example.hxx"
-
 #include <SALOMEconfig.h>
 #include CORBA_SERVER_HEADER(SALOME_Session)
 
@@ -65,25 +62,19 @@ int main(int argc, char **argv)
     CORBA::ORB_var &orb = init( argc , argv ) ;
 
     CORBA::Object_var obj =orb->resolve_initial_references("RootPOA") ;
-    //MESSAGE("orb->resolve_initial_references('Root_POA')")
     PortableServer::POA_var poa = PortableServer::POA::_narrow(obj) ;
-    //MESSAGE("POA::_narrow(obj)")
 
     // servant
-
     SALOME_Session_i * mySALOME_Session = new SALOME_Session_i(argc, argv, orb, poa) ;
     PortableServer::ObjectId_var mySALOME_Sessionid = poa->activate_object(mySALOME_Session) ;
     MESSAGE("poa->activate_object(mySALOME_Session)")
 
     obj = mySALOME_Session->_this() ;
     CORBA::String_var sior(orb->object_to_string(obj)) ;
-    // MESSAGE("sior(orb->object-to-string(obj))")
-    // cerr << "'" << (char*) sior << "'" << endl ;
 
     mySALOME_Session->NSregister();
 
     mySALOME_Session->_remove_ref() ;
-    //MESSAGE("mySALOME_Session->_remove_ref()")
 
     PortableServer::POAManager_var pman = poa->the_POAManager() ;
     pman->activate() ;
index 41b68e8185396e90cec34721cdcfeb05b4cba801..4e2e5b5ef52e5cf80d50ad5d17e4a1597d92d790 100644 (file)
@@ -59,17 +59,12 @@ SALOME_Session_i::SALOME_Session_i(int argc, char ** argv, CORBA::ORB_ptr orb, P
   _poa = PortableServer::POA::_duplicate(poa) ;
   MESSAGE("constructor end");
 }
-  
-Engines::Component_ptr SALOME_Session_i::GetVisuGen(){
-  typedef Engines::Component_ptr VisuGen(CORBA::ORB_ptr, PortableServer::POA_ptr,
-                                        SALOME_NamingService*, QMutex*);
-  MESSAGE("SALOME_Session_i::GetVisuGen");
-  OSD_SharedLibrary  visuSharedLibrary("libVisuEngine.so");
-  if(visuSharedLibrary.DlOpen(OSD_RTLD_LAZY))
-    if(OSD_Function osdFun = visuSharedLibrary.DlSymb("GetVisuGen"))
-      return ((VisuGen (*)) osdFun)(_orb,_poa,_NS,&_GUIMutex);
-  return Engines::Component::_nil();
-}
+
+//=============================================================================
+/*! GetVisuComponent
+ *  returns Visu component
+ */ 
+//=============================================================================
 
 Engines::Component_ptr SALOME_Session_i::GetVisuComponent() {
   MESSAGE("SALOME_Session_i::GetVisuGen");
index 93d1f77cf019423cfed83d1117fe1dbba9e0b9b1..0d52f118eb04ff5a452fed0ce0943b08e6a6465b 100644 (file)
@@ -33,7 +33,6 @@
 
 #include <SALOMEconfig.h>
 #include CORBA_SERVER_HEADER(SALOME_Component)
-//***//#include CORBA_SERVER_HEADER(VISU_Gen)
 #include CORBA_SERVER_HEADER(SALOME_Session)
 class SALOME_NamingService;
 class SALOME_Session_QThread;
@@ -47,7 +46,8 @@ public:
 
   //! Launch Graphical User Interface
   void GetInterface();
-  //***//VISU::VISU_Gen_ptr GetVisuGen();
+
+  //! Return VISU component
   Engines::Component_ptr GetVisuComponent();
 
   //! Stop the Session (must be idle): kill servant & server
index fe5211407f07ad5e60117de0ae9e33581226b795..666688ba9ca72c5d0126239ae5f6d754b974725f 100644 (file)
@@ -29,9 +29,7 @@ BIN_CLIENT_IDL =
 
 CPPFLAGS+=$(OCC_INCLUDES) $(HDF5_INCLUDES)
 CXXFLAGS+=$(OCC_CXXFLAGS)
-LDFLAGS+=$(CAS_KERNEL) -lOpUtil -lSalomeLoggerServer
-# -L/opt/ccmalloc/lib -lccmalloc -ldl
-# -L/opt/efence/lib -lefence
+LDFLAGS+=$(OCC_KERNEL_LIBS) -lOpUtil -lSalomeLoggerServer
 
 @CONCLUDE@
 
index c6ec6b8c0a878f73f0913e2fa08aab945f38192c..8d2709d607846ec5f410b272192ae8067e0816a1 100644 (file)
@@ -27,7 +27,7 @@
 #  $Header$
 
 top_srcdir=@top_srcdir@
-top_builddir=../../..
+top_builddir=../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index 0ccfe041ffd03286f3d94677478b5caf083ca68c..aec4b20abd0b186ac102d46dad141c2ab83049ea 100644 (file)
@@ -27,7 +27,7 @@
 #  $Header$
 
 top_srcdir=@top_srcdir@
-top_builddir=../../..
+top_builddir=../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:@top_srcdir@/idl
 
index eef9d3fd77de962e4486871692eef7740cc28265..15e6208967fd2aa786b6187acfd16b8cace48013 100644 (file)
@@ -27,7 +27,7 @@
 #  $Header$
 
 top_srcdir=@top_srcdir@
-top_builddir=../../..
+top_builddir=../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@:$(top_builddir)/inc:$(top_builddir)/idl
 
diff --git a/src/VTKViewer/VTKViewer_NonIsometricTransform.cxx b/src/VTKViewer/VTKViewer_NonIsometricTransform.cxx
deleted file mode 100644 (file)
index a77a033..0000000
+++ /dev/null
@@ -1,149 +0,0 @@
-using namespace std;
-// File      : VTKViewer_NonIsometricTransform.cxx
-// Created   : Thu Jan 30 15:21:07 2003
-// Project   : SALOME PRO
-// Author    : Vasily RUSYAEV (vrv)
-// Copyright : Open CASCADE 2003
-//  $Header:
-
-#include "VTKViewer_NonIsometricTransform.h"
-
-double ident(double in, double coeff) { return in; }
-double dident(double in, double coeff) { return 1.0; }
-
-double Exponent(double in, double coeff){ return exp(in)-coeff;}
-double dExponent(double in, double coeff){ return exp(in);}
-double Log(double in, double coeff){ return log(in+coeff);}
-double dLog(double in, double coeff){ return 1.0/(in+coeff);}
-
-double Scl(double in, double coeff){ return coeff*in;}
-double dScl(double in, double coeff){ return coeff;}
-double IScl(double in, double coeff){ return in/coeff;}
-double dIScl(double in, double coeff){ return 1.0/coeff;}
-
-
-AxisFunction::AxisFunction(Axis A)
-     : m_axis(A), fFun(&ident), dfFun(&dident), iFun(&ident), diFun(&dident)
-{
-}
-AxisFunction::AxisFunction()
-     : m_axis(XAxis), fFun(&ident), dfFun(&dident), iFun(&ident), diFun(&dident)
-{
-}
-     
-inline void AxisFunction::forward(const double in, const double coeff, double& out, double der[3]) const
-{
-  init_der(der);
-  der[m_axis] = (*dfFun)( in, coeff);
-  forward(in, coeff, out);
-}
-  
-inline void AxisFunction::inverse(const double in, const double coeff, double& out, double der[3]) const
-{
-  init_der(der);
-  der[m_axis] = (*diFun)( in, coeff );
-  inverse(in, coeff , out);
-}
-
-inline MFun AxisFunction::getfFun()
-{
-  return fFun;
-}  
-
-VTKViewer_NonIsometricTransform::VTKViewer_NonIsometricTransform ()
-{
-  m_coeff[0] = m_coeff[1] = m_coeff[2] = 1.0;
-  m_axisFunctions[0] = AxisFunction ( AxisFunction::XAxis );
-  m_axisFunctions[1] = AxisFunction ( AxisFunction::YAxis );
-  m_axisFunctions[2] = AxisFunction ( AxisFunction::ZAxis );
-}
-
-void VTKViewer_NonIsometricTransform::ForwardTransformPoint(const float in[3], float out[3])
-{
-  //TODO
-  //ForwardTransformPoint( in, out );
-}
-inline void VTKViewer_NonIsometricTransform::ForwardTransformPoint(const double in[3], double out[3])
-{
-  for(int i = 0; i < 3; i++) 
-    m_axisFunctions[i].forward(in[i], m_coeff[i], out[i]);
-}
-inline void VTKViewer_NonIsometricTransform::ForwardTransformDerivative(const double in[3],
-                                                                       double out[3], double der[3][3])
-{
-  for(int i = 0; i < 3; i++)
-    m_axisFunctions[i].forward(in[i], m_coeff[i], out[i], der[i]);
-}
-void VTKViewer_NonIsometricTransform::ForwardTransformDerivative(const float in[3], float out[3], float der[3][3])
-{
-  //TODO
-  //ForwardTransformDerivative(in,out,der);
-}
-inline void VTKViewer_NonIsometricTransform::InverseTransformDerivative(const double in[3],
-                                                                       double out[3], double der[3][3])
-{
-  for(int i = 0; i < 3; i++)
-    m_axisFunctions[i].inverse(in[i], m_coeff[i], out[i], der[i]);
-}
-inline void VTKViewer_NonIsometricTransform::InverseTransformPoint(const double in[3], double out[3])
-{
-  for(int i = 0; i < 3; i++)
-    m_axisFunctions[i].inverse(in[i], m_coeff[i], out[i]);
-}
-void VTKViewer_NonIsometricTransform::InverseTransformPoint(const float in[3], float out[3])
-{
-  //TODO
-  //InverseTransformPoint(in,out);
-}
-
-
-void VTKViewer_NonIsometricTransform::SetFunction(const AxisFunction::Axis axis,
-                                                 const Function aFunction, const double coeff)
-{
-  m_coeff[axis] = coeff;
-  switch (aFunction)
-    {
-    case Identical:
-      m_axisFunctions[axis] = AxisFunction( axis );
-      break;
-    case Linear:
-      m_axisFunctions[axis] = AxisFunction( axis, &Scl,&dScl,&IScl,&dIScl);
-      break;
-    case Logarithmic:
-      m_axisFunctions[axis] = AxisFunction( axis, &Log, &dLog, &Exponent, &dExponent );
-      break;
-    }    
-}
-
-inline void VTKViewer_NonIsometricTransform::SetFunction(const AxisFunction AF)
-{
-  m_axisFunctions[AF.getAxis()] = AF;
-}
-
-VTKViewer_NonIsometricTransform* VTKViewer_NonIsometricTransform::New()
-{
-  // First try to create the object from the vtkObjectFactory
-  vtkObject* ret = vtkObjectFactory::CreateInstance("VTKViewer_NonIsometricTransform");
-  if(ret)
-    return (VTKViewer_NonIsometricTransform*)ret;
-  // If the factory was unable to create the object, then create it here.
-  return new VTKViewer_NonIsometricTransform;
-}
-
-VTKViewer_NonIsometricTransform::Function VTKViewer_NonIsometricTransform::GetFunctionType(const AxisFunction::Axis axis)
-{
-  if ( m_axisFunctions[axis].getfFun() == &ident) {
-    return Identical;
-  }
-  if ( m_axisFunctions[axis].getfFun() == &Scl ) {
-    return Linear;
-  }
-  if ( m_axisFunctions[axis].getfFun() == &Log ) {
-    return Logarithmic;
-  }
-}
-
-double VTKViewer_NonIsometricTransform::GetCoeff  (const AxisFunction::Axis axis) 
-{
-  return m_coeff[axis];
-}
diff --git a/src/VTKViewer/VTKViewer_NonIsometricTransform.h b/src/VTKViewer/VTKViewer_NonIsometricTransform.h
deleted file mode 100644 (file)
index f215741..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-#ifndef __VTKViewer_NonIsometricTransform_h
-#define __VTKViewer_NonIsometricTransform_h
-
-
-#include <vtkWarpTransform.h>
-//#include <vtkImageData.h>
-//#include <vtkTransformPolyDataFilter.h>
-
-#include <vtkObjectFactory.h>
-#include <math.h>
-
-//second parameter is coefficient ( e.g y = ky, second parameter is k )
-typedef double (*MFun)(double,double);
-
-class AxisFunction
-{
- public:
-  enum Axis {XAxis=0, YAxis, ZAxis};
- private:
-  
-  void init_der(double der[3]) const
-    {
-      der[XAxis] = der[YAxis] = der[ZAxis] = 0.0;
-    }
-
- public:
-  AxisFunction(Axis A, MFun fF, MFun dfF, MFun iF, MFun diF)
-    : m_axis(A), fFun(fF), dfFun(dfF), iFun(iF), diFun(diF) {};
-  AxisFunction(Axis A);
-  AxisFunction();
-
-  const Axis getAxis() const{ return m_axis; }
-  void setAxis(const Axis axis) { m_axis = axis; }
-
-  void forward(const double in, const double coeff, double& out) const
-    {
-      out = (*fFun)( in, coeff );
-    }
-  
-  void forward(const double in, const double coeff, double& out, double der[3]) const;
-  
-  void inverse(const double in, const double coeff, double& out) const
-    {
-      out = (*iFun)( in, coeff );
-    }
-  void inverse(const double in, const double coeff, double& out, double der[3]) const;
-  
-  MFun getfFun() ;
-
- private:
-  Axis m_axis;
-  MFun fFun, dfFun, iFun, diFun;
-};
-
-
-class VTK_EXPORT VTKViewer_NonIsometricTransform : public vtkWarpTransform
-{
- public:  
-  enum Function { Identical = 0, Linear, Logarithmic };
- protected:
-  
-  void ForwardTransformPoint(const float in[3], float out[3]);
-  void ForwardTransformPoint(const double in[3], double out[3]);
-  void ForwardTransformDerivative(const double in[3], double out[3], double der[3][3]);
-  void ForwardTransformDerivative(const float in[3], float out[3], float der[3][3]);
-  void InverseTransformDerivative(const double in[3], double out[3], double der[3][3]);
-  void InverseTransformPoint(const double in[3], double out[3]);
-  void InverseTransformPoint(const float in[3], float out[3]);
-
-  VTKViewer_NonIsometricTransform();
-
-  void SetFunction(const AxisFunction AF);
-
- public:
-  
-  vtkTypeMacro(VTKViewer_NonIsometricTransform,vtkWarpTransform);
-  static VTKViewer_NonIsometricTransform *New();
-
-  vtkAbstractTransform* MakeTransform()
-    {
-      return VTKViewer_NonIsometricTransform::New();
-    }
-  virtual void PrintSelf(ostream& os, vtkIndent indent)
-    {
-      vtkWarpTransform::PrintSelf(os,indent);
-    }
-  void SetFunction(const AxisFunction::Axis axis, const Function aFunction, const double coeff);
-
-  Function GetFunctionType(const AxisFunction::Axis axis);
-  double GetCoeff (const AxisFunction::Axis axis);
-
- private:
-  AxisFunction m_axisFunctions[3];
-  double m_coeff[3];
-};
-
-#endif