]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
rnc: fixed some compilation issues realted to the new ShapeRecognition package
authorgdd <gdd>
Tue, 8 Nov 2011 10:37:52 +0000 (10:37 +0000)
committergdd <gdd>
Tue, 8 Nov 2011 10:37:52 +0000 (10:37 +0000)
configure.ac
src/EntityGUI/EntityGUI_FeatureDetectorDlg.cxx
src/EntityGUI/EntityGUI_PictureImportDlg.cxx
src/EntityGUI/Makefile.am
src/Makefile.am

index fda5d9f0be34506d754b02e9e851fd9191262e4b..1adb80209366726f04ee49b8a1dd685a279b58cd 100644 (file)
@@ -337,6 +337,7 @@ echo testing Opencv
 echo ---------------------------------------------
 echo
 CHECK_OPENCV
+AC_DEFINE_UNQUOTED(WITH_OPENCV,${WITH_OPENCV})
 
 echo
 echo ---------------------------------------------
index a3570c28aeec6152dee219373083f054e216e7ac..8be54158795da5c4eabd8af4f6529ac1d9f000ad 100644 (file)
@@ -28,8 +28,6 @@
 
 #include <OCCViewer_ViewPort3d.h>
 #include <OCCViewer_ViewWindow.h>
-#include <OCCViewer_ViewSketcher.h>
-#include <OCCViewer_FeatureDetector.h>
 #include <OCCViewer_ViewManager.h>
 
 #include <SOCC_ViewModel.h>
@@ -39,6 +37,7 @@
 #include <EntityGUI.h>
 #include <GEOMBase.h>
 #include <GEOM_Object.hxx>
+#include <ShapeRec_FeatureDetector.hxx>
 
 #include <SUIT_Desktop.h>
 #include <SUIT_ResourceMgr.h>
@@ -504,15 +503,18 @@ bool EntityGUI_FeatureDetectorDlg::execute( ObjectList& objects )
     return res;
   
   // Build an instance of detection used to perform image processing operations
-  OCCViewer_FeatureDetector* aDetector = new OCCViewer_FeatureDetector( theImgFileName );
+  ShapeRec_FeatureDetector* aDetector = new ShapeRec_FeatureDetector( theImgFileName );
     
   int height            =  aDetector->GetImgHeight();
   int width             =  aDetector->GetImgWidth();
+  
+//   NOTE: OLD
   int winHeight         =  vp->height();
   int winWidth          =  vp->width();
   double x_offset, y_offset;
   int i;
 
+//   NOTE: OLD
   // Recompute of the values computed in OCC OpenGl_view.c 
   // while waiting for a function to retrieve parameters of the displayed backgroun image 
   double hratio = winHeight * 1.0 / height;
index a513fa1ee71dc2d6890dbef5c320d1e2c32acb5f..dbd02bd5b08b87f6bf6bc8e87525300fba92deb3 100644 (file)
@@ -40,7 +40,7 @@
 
 #include <GEOMImpl_Types.hxx>
 
-#include <OCCViewer_FeatureDetector.h>
+#include <ShapeRec_FeatureDetector.hxx>
 
 #include <QFileDialog>
 
@@ -182,7 +182,7 @@ bool EntityGUI_PictureImportDlg::execute( ObjectList& objects )
   if ( theImgFileName.isEmpty() )
     return res;
   
-  OCCViewer_FeatureDetector* aDetector = new OCCViewer_FeatureDetector( theImgFileName );
+  ShapeRec_FeatureDetector* aDetector = new ShapeRec_FeatureDetector( theImgFileName );
     
   int height            =  aDetector->GetImgHeight();
   int width             =  aDetector->GetImgWidth();
index 0023761b44763919aa7abbbb5d400b531cbef3e4..a1fbbcb93783ae7a0465533c3340ce7a7f72f1aa 100644 (file)
@@ -106,6 +106,7 @@ libEntityGUI_la_CPPFLAGS =                  \
        -I$(srcdir)/../GEOMImpl                 \
        -I$(srcdir)/../GEOMFiltersSelection     \
        -I$(srcdir)/../SKETCHER                 \
+       -I$(srcdir)/../ShapeRecognition         \
        -I$(srcdir)/../GEOM                     \
        -I$(top_builddir)/src/DlgRef            \
        -I$(top_builddir)/idl
@@ -115,6 +116,7 @@ libEntityGUI_la_LDFLAGS  =                                  \
        ../GEOMBase/libGEOMBase.la                              \
        ../SKETCHER/libGEOMSketcher.la                          \
        ../GEOMGUI/libGEOM.la                                   \
+       ../ShapeRecognition/libGEOMShapeRec.la                  \
        $(QT_MT_LIBS)                                           \
        $(CAS_TKTopAlgo) -lTKernel                              \
        $(Opencv_libs)
index f429148aab93812f90b816299b4fbb38444c19af..61851d56ea45656b640e41d601a21635f6a29640 100644 (file)
@@ -27,6 +27,10 @@ SUBDIRS = ARCHIMEDE NMTDS NMTTools GEOMAlgo SKETCHER OCC2VTK GEOM    \
           STEPImport STLExport VTKExport ShHealOper GEOMImpl GEOM_I    \
           GEOMClient GEOM_I_Superv GEOM_SWIG GEOM_PY
 
+if WITH_OPENCV
+  SUBDIRS += ShapeRecognition
+endif
+
 if GEOM_ENABLE_GUI
   SUBDIRS += OBJECT DlgRef GEOMFiltersSelection GEOMGUI GEOMBase GEOMToolsGUI  \
              DisplayGUI BasicGUI PrimitiveGUI GenerationGUI EntityGUI BuildGUI \
@@ -34,10 +38,6 @@ if GEOM_ENABLE_GUI
              GroupGUI BlocksGUI AdvancedGUI GEOM_SWIG_WITHIHM
 endif
 
-if WITH_OPENCV
-  SUBDIRS += ShapeRecognition
-endif
-
 DIST_SUBDIRS = ARCHIMEDE NMTDS NMTTools GEOMAlgo SKETCHER OCC2VTK GEOM BREPExport\
                BREPImport IGESExport IGESImport STEPExport STEPImport STLExport \
                VTKExport ShHealOper GEOMImpl GEOM_I GEOMClient GEOM_I_Superv   \