X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FHYDROGUI%2FHYDROGUI_RecognizeContoursOp.cxx;h=dfb279ffed474376c0fe8054dc05b783b8ed6105;hb=39b1848f103d89cfb544a1651b3fbf221fc2c401;hp=860d361ec8a84373dcf167638ebbfa4c887368d8;hpb=a6d084b170797d6b566e9e99af54a8f0d1d5785f;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_RecognizeContoursOp.cxx b/src/HYDROGUI/HYDROGUI_RecognizeContoursOp.cxx index 860d361e..dfb279ff 100644 --- a/src/HYDROGUI/HYDROGUI_RecognizeContoursOp.cxx +++ b/src/HYDROGUI/HYDROGUI_RecognizeContoursOp.cxx @@ -21,7 +21,7 @@ #include "HYDROGUI_RecognizeContoursDlg.h" #include "HYDROGUI_Module.h" #include "HYDROGUI_Shape.h" -#include "HYDROGUI_Tool.h" +#include "HYDROGUI_Tool2.h" #include "HYDROGUI_UpdateFlags.h" #include "HYDROGUI_OCCSelector.h" #include "HYDROGUI_ZLayers.h" @@ -53,6 +53,7 @@ #include #include +#include #include /** @@ -99,7 +100,7 @@ void HYDROGUI_RecognizeContoursOp::startOperation() // Create temporary graphics file QImage aQImage = myImage->Image(); - myTmpImageFile = new QTemporaryFile( anImageName ); + myTmpImageFile = new QTemporaryFile( QDir::tempPath() + QDir::separator() + anImageName ); if ( !myTmpImageFile->open() || !aQImage.save( myTmpImageFile->fileName(), "PNG", 100 ) ) { abort(); @@ -227,7 +228,7 @@ bool HYDROGUI_RecognizeContoursOp::processApply( int& theUpdateFlags, if( !aPolylineObj.IsNull() ) { aPolylineObj->SetName( aName ); - aPolylineObj->ImportShape( aShape ); + aPolylineObj->ImportShape( aShape, false, NULL ); aPolylineObj->SetWireColor( HYDROData_PolylineXY::DefaultWireColor() ); aPolylineObj->Update(); @@ -378,7 +379,7 @@ void HYDROGUI_RecognizeContoursOp::updateRecognizedPolylines() TopoDS_Shape aSubShape = aSubShapes.Value( i ); // Transform the sub-shape - aPolylineObj->ImportShape( aSubShape ); + aPolylineObj->ImportShape( aSubShape, false, NULL ); aPolylineObj->Transform( aTrsf ); /* @@ -513,4 +514,4 @@ void HYDROGUI_RecognizeContoursOp::cleanup() // update the object browser module()->getApp()->updateObjectBrowser( true ); } -} \ No newline at end of file +}