mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-28 08:10:33 +05:00
rnc: made OpenCV an optional prerequisite
This commit is contained in:
parent
9746242e57
commit
63e2f3bf87
@ -96,12 +96,14 @@ bool EntityGUI::OnGUIEvent( int theCommandID, SUIT_Desktop* parent )
|
|||||||
case GEOMOp::OpExplode: // EXPLODE
|
case GEOMOp::OpExplode: // EXPLODE
|
||||||
aDlg = new EntityGUI_SubShapeDlg( getGeometryGUI(), parent );
|
aDlg = new EntityGUI_SubShapeDlg( getGeometryGUI(), parent );
|
||||||
break;
|
break;
|
||||||
|
#ifdef WITH_OPENCV
|
||||||
case GEOMOp::OpFeatureDetect: // FEATURE DETECTION
|
case GEOMOp::OpFeatureDetect: // FEATURE DETECTION
|
||||||
aDlg = new EntityGUI_FeatureDetectorDlg( getGeometryGUI(), parent );
|
aDlg = new EntityGUI_FeatureDetectorDlg( getGeometryGUI(), parent );
|
||||||
break;
|
break;
|
||||||
case GEOMOp::OpPictureImport: // IMPORT PICTURE IN VIEWER
|
case GEOMOp::OpPictureImport: // IMPORT PICTURE IN VIEWER
|
||||||
aDlg = new EntityGUI_PictureImportDlg( getGeometryGUI(), parent );
|
aDlg = new EntityGUI_PictureImportDlg( getGeometryGUI(), parent );
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
app->putInfo( tr( "GEOM_PRP_COMMAND" ).arg( theCommandID ) );
|
app->putInfo( tr( "GEOM_PRP_COMMAND" ).arg( theCommandID ) );
|
||||||
break;
|
break;
|
||||||
|
@ -24,6 +24,17 @@
|
|||||||
#
|
#
|
||||||
include $(top_srcdir)/adm_local/unix/make_common_starter.am
|
include $(top_srcdir)/adm_local/unix/make_common_starter.am
|
||||||
|
|
||||||
|
if WITH_OPENCV
|
||||||
|
FeatureDetectorDlg_Header = EntityGUI_FeatureDetectorDlg.h
|
||||||
|
FeatureDetectorDlg_Sources = EntityGUI_FeatureDetectorDlg.cxx
|
||||||
|
FeatureDetectorDlg_moc = EntityGUI_FeatureDetectorDlg_moc.cxx
|
||||||
|
PictureImportDlg_Header = EntityGUI_PictureImportDlg.h
|
||||||
|
PictureImportDlg_Sources = EntityGUI_PictureImportDlg.cxx
|
||||||
|
PictureImportDlg_moc = EntityGUI_PictureImportDlg_moc.cxx
|
||||||
|
Opencv_libs = $(OPENCV_LIBS)
|
||||||
|
Opencv_Includes = $(OPENCV_INCLUDES)
|
||||||
|
endif
|
||||||
|
|
||||||
# Libraries targets
|
# Libraries targets
|
||||||
lib_LTLIBRARIES = libEntityGUI.la
|
lib_LTLIBRARIES = libEntityGUI.la
|
||||||
|
|
||||||
@ -34,8 +45,8 @@ salomeinclude_HEADERS = \
|
|||||||
EntityGUI_SketcherDlg.h \
|
EntityGUI_SketcherDlg.h \
|
||||||
EntityGUI_3DSketcherDlg.h \
|
EntityGUI_3DSketcherDlg.h \
|
||||||
EntityGUI_SubShapeDlg.h \
|
EntityGUI_SubShapeDlg.h \
|
||||||
EntityGUI_FeatureDetectorDlg.h \
|
$(FeatureDetectorDlg_Header) \
|
||||||
EntityGUI_PictureImportDlg.h
|
$(PictureImportDlg_Header)
|
||||||
|
|
||||||
dist_libEntityGUI_la_SOURCES = \
|
dist_libEntityGUI_la_SOURCES = \
|
||||||
EntityGUI.cxx \
|
EntityGUI.cxx \
|
||||||
@ -43,16 +54,16 @@ dist_libEntityGUI_la_SOURCES = \
|
|||||||
EntityGUI_SketcherDlg.cxx \
|
EntityGUI_SketcherDlg.cxx \
|
||||||
EntityGUI_3DSketcherDlg.cxx \
|
EntityGUI_3DSketcherDlg.cxx \
|
||||||
EntityGUI_SubShapeDlg.cxx \
|
EntityGUI_SubShapeDlg.cxx \
|
||||||
EntityGUI_FeatureDetectorDlg.cxx\
|
$(FeatureDetectorDlg_Sources) \
|
||||||
EntityGUI_PictureImportDlg.cxx
|
$(PictureImportDlg_Sources)
|
||||||
|
|
||||||
MOC_FILES = \
|
MOC_FILES = \
|
||||||
EntityGUI_Widgets_moc.cxx \
|
EntityGUI_Widgets_moc.cxx \
|
||||||
EntityGUI_SketcherDlg_moc.cxx \
|
EntityGUI_SketcherDlg_moc.cxx \
|
||||||
EntityGUI_3DSketcherDlg_moc.cxx \
|
EntityGUI_3DSketcherDlg_moc.cxx \
|
||||||
EntityGUI_SubShapeDlg_moc.cxx \
|
EntityGUI_SubShapeDlg_moc.cxx \
|
||||||
EntityGUI_FeatureDetectorDlg_moc.cxx \
|
$(FeatureDetectorDlg_moc) \
|
||||||
EntityGUI_PictureImportDlg_moc.cxx
|
$(PictureImportDlg_moc)
|
||||||
|
|
||||||
nodist_libEntityGUI_la_SOURCES = \
|
nodist_libEntityGUI_la_SOURCES = \
|
||||||
$(MOC_FILES)
|
$(MOC_FILES)
|
||||||
@ -86,7 +97,7 @@ libEntityGUI_la_CPPFLAGS = \
|
|||||||
$(GUI_CXXFLAGS) \
|
$(GUI_CXXFLAGS) \
|
||||||
$(CORBA_CXXFLAGS) \
|
$(CORBA_CXXFLAGS) \
|
||||||
$(CORBA_INCLUDES) \
|
$(CORBA_INCLUDES) \
|
||||||
$(OPENCV_INCLUDES) \
|
$(Opencv_includes) \
|
||||||
-I$(srcdir)/../GEOMGUI \
|
-I$(srcdir)/../GEOMGUI \
|
||||||
-I$(srcdir)/../DlgRef \
|
-I$(srcdir)/../DlgRef \
|
||||||
-I$(srcdir)/../GEOMBase \
|
-I$(srcdir)/../GEOMBase \
|
||||||
@ -106,4 +117,4 @@ libEntityGUI_la_LDFLAGS = \
|
|||||||
../GEOMGUI/libGEOM.la \
|
../GEOMGUI/libGEOM.la \
|
||||||
$(QT_MT_LIBS) \
|
$(QT_MT_LIBS) \
|
||||||
$(CAS_TKTopAlgo) -lTKernel \
|
$(CAS_TKTopAlgo) -lTKernel \
|
||||||
$(OPENCV_LIBS)
|
$(Opencv_libs)
|
||||||
|
@ -461,8 +461,10 @@ void GeometryGUI::OnGUIEvent( int id )
|
|||||||
case GEOMOp::Op2dSketcher: // MENU ENTITY - SKETCHER
|
case GEOMOp::Op2dSketcher: // MENU ENTITY - SKETCHER
|
||||||
case GEOMOp::Op3dSketcher: // MENU ENTITY - 3D SKETCHER
|
case GEOMOp::Op3dSketcher: // MENU ENTITY - 3D SKETCHER
|
||||||
case GEOMOp::OpExplode: // MENU ENTITY - EXPLODE
|
case GEOMOp::OpExplode: // MENU ENTITY - EXPLODE
|
||||||
|
#ifdef WITH_OPENCV
|
||||||
case GEOMOp::OpFeatureDetect: // MENU ENTITY - FEATURE DETECTION
|
case GEOMOp::OpFeatureDetect: // MENU ENTITY - FEATURE DETECTION
|
||||||
case GEOMOp::OpPictureImport: // MENU ENTITY - IMPORT PICTURE IN VIEWER
|
case GEOMOp::OpPictureImport: // MENU ENTITY - IMPORT PICTURE IN VIEWER
|
||||||
|
#endif
|
||||||
libName = "EntityGUI";
|
libName = "EntityGUI";
|
||||||
break;
|
break;
|
||||||
case GEOMOp::OpEdge: // MENU BUILD - EDGE
|
case GEOMOp::OpEdge: // MENU BUILD - EDGE
|
||||||
@ -710,8 +712,10 @@ void GeometryGUI::initialize( CAM_Application* app )
|
|||||||
createGeomAction( GEOMOp::Op2dSketcher, "SKETCH" );
|
createGeomAction( GEOMOp::Op2dSketcher, "SKETCH" );
|
||||||
createGeomAction( GEOMOp::Op3dSketcher, "3DSKETCH" );
|
createGeomAction( GEOMOp::Op3dSketcher, "3DSKETCH" );
|
||||||
createGeomAction( GEOMOp::OpExplode, "EXPLODE" );
|
createGeomAction( GEOMOp::OpExplode, "EXPLODE" );
|
||||||
|
#ifdef WITH_OPENCV
|
||||||
createGeomAction( GEOMOp::OpFeatureDetect,"FEATURE_DETECTION" );
|
createGeomAction( GEOMOp::OpFeatureDetect,"FEATURE_DETECTION" );
|
||||||
createGeomAction( GEOMOp::OpPictureImport,"PICTURE_IMPORT" );
|
createGeomAction( GEOMOp::OpPictureImport,"PICTURE_IMPORT" );
|
||||||
|
#endif
|
||||||
|
|
||||||
createGeomAction( GEOMOp::OpEdge, "EDGE" );
|
createGeomAction( GEOMOp::OpEdge, "EDGE" );
|
||||||
createGeomAction( GEOMOp::OpWire, "WIRE" );
|
createGeomAction( GEOMOp::OpWire, "WIRE" );
|
||||||
@ -910,8 +914,10 @@ void GeometryGUI::initialize( CAM_Application* app )
|
|||||||
|
|
||||||
createMenu( separator(), newEntId, -1 );
|
createMenu( separator(), newEntId, -1 );
|
||||||
|
|
||||||
|
#ifdef WITH_OPENCV
|
||||||
createMenu( GEOMOp::OpFeatureDetect, newEntId, -1 );
|
createMenu( GEOMOp::OpFeatureDetect, newEntId, -1 );
|
||||||
createMenu( GEOMOp::OpPictureImport, newEntId, -1 );
|
createMenu( GEOMOp::OpPictureImport, newEntId, -1 );
|
||||||
|
#endif
|
||||||
|
|
||||||
int operId = createMenu( tr( "MEN_OPERATIONS" ), -1, -1, 10 );
|
int operId = createMenu( tr( "MEN_OPERATIONS" ), -1, -1, 10 );
|
||||||
|
|
||||||
@ -1077,9 +1083,11 @@ void GeometryGUI::initialize( CAM_Application* app )
|
|||||||
createTool( separator(), operTbId );
|
createTool( separator(), operTbId );
|
||||||
createTool( GEOMOp::OpExplode, operTbId );
|
createTool( GEOMOp::OpExplode, operTbId );
|
||||||
createTool( separator(), operTbId );
|
createTool( separator(), operTbId );
|
||||||
|
#ifdef WITH_OPENCV
|
||||||
createTool( GEOMOp::OpFeatureDetect, operTbId );
|
createTool( GEOMOp::OpFeatureDetect, operTbId );
|
||||||
createTool( GEOMOp::OpPictureImport, operTbId );
|
createTool( GEOMOp::OpPictureImport, operTbId );
|
||||||
createTool( separator(), operTbId );
|
createTool( separator(), operTbId );
|
||||||
|
#endif
|
||||||
createTool( GEOMOp::OpPartition, operTbId );
|
createTool( GEOMOp::OpPartition, operTbId );
|
||||||
createTool( GEOMOp::OpArchimede, operTbId );
|
createTool( GEOMOp::OpArchimede, operTbId );
|
||||||
createTool( GEOMOp::OpShapesOnShape, operTbId );
|
createTool( GEOMOp::OpShapesOnShape, operTbId );
|
||||||
|
@ -94,8 +94,10 @@ namespace GEOMOp {
|
|||||||
Op2dSketcher = 3300, // MENU NEW ENTITY - SKETCHER
|
Op2dSketcher = 3300, // MENU NEW ENTITY - SKETCHER
|
||||||
Op3dSketcher = 3301, // MENU NEW ENTITY - 3D SKETCHER
|
Op3dSketcher = 3301, // MENU NEW ENTITY - 3D SKETCHER
|
||||||
OpExplode = 3302, // MENU NEW ENTITY - EXPLODE
|
OpExplode = 3302, // MENU NEW ENTITY - EXPLODE
|
||||||
|
#ifdef WITH_OPENCV
|
||||||
OpFeatureDetect = 3303, // MENU NEW ENTITY - FEATURE DETECTION
|
OpFeatureDetect = 3303, // MENU NEW ENTITY - FEATURE DETECTION
|
||||||
OpPictureImport = 3304, // MENU NEW ENTITY - IMPORT PICTURE IN VIEWER
|
OpPictureImport = 3304, // MENU NEW ENTITY - IMPORT PICTURE IN VIEWER
|
||||||
|
#endif
|
||||||
// BuildGUI ------------------//--------------------------------
|
// BuildGUI ------------------//--------------------------------
|
||||||
OpEdge = 3400, // MENU NEW ENTITY - BUILD - EDGE
|
OpEdge = 3400, // MENU NEW ENTITY - BUILD - EDGE
|
||||||
OpWire = 3401, // MENU NEW ENTITY - BUILD - WIRE
|
OpWire = 3401, // MENU NEW ENTITY - BUILD - WIRE
|
||||||
|
Loading…
Reference in New Issue
Block a user