mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-15 20:53:08 +05:00
rnc: fixed some compilation issues realted to the new ShapeRecognition package
This commit is contained in:
parent
57735b96e9
commit
c4cd1a87aa
@ -337,6 +337,7 @@ echo testing Opencv
|
||||
echo ---------------------------------------------
|
||||
echo
|
||||
CHECK_OPENCV
|
||||
AC_DEFINE_UNQUOTED(WITH_OPENCV,${WITH_OPENCV})
|
||||
|
||||
echo
|
||||
echo ---------------------------------------------
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
|
@ -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)
|
||||
|
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user