From fcf6bb94aa4bb389b1e4b2150d631048ef89e1ad Mon Sep 17 00:00:00 2001 From: isn Date: Fri, 20 Nov 2015 12:27:01 +0300 Subject: [PATCH] refs #740 (p.1 + p.2) --- src/HYDROData/HYDROData_SinusX.cxx | 2 ++ src/HYDROGUI/HYDROGUI_ImportSinusXOp.cxx | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/HYDROData/HYDROData_SinusX.cxx b/src/HYDROData/HYDROData_SinusX.cxx index 8f05a257..3927c0a3 100644 --- a/src/HYDROData/HYDROData_SinusX.cxx +++ b/src/HYDROData/HYDROData_SinusX.cxx @@ -33,6 +33,7 @@ #include #include #include +#include HYDROData_SinusX::HYDROData_SinusX( ) { @@ -147,6 +148,7 @@ void HYDROData_SinusX::SXToHydro(Handle(HYDROData_Document) theDocument, NCollec aPolyXY->SetName(GetName(myCurveBlocks[i].myName + "_polyXY")); aProfileUZ->SetName(GetName(myCurveBlocks[i].myName + "_profileUZ")); aProfile->SetName(GetName(myCurveBlocks[i].myName + "_profile")); + aPolyXY->SetWireColor(HYDROData_PolylineXY::DefaultWireColor()); theEntities.Append(aPolyXY); theEntities.Append(aProfileUZ); theEntities.Append(aProfile); diff --git a/src/HYDROGUI/HYDROGUI_ImportSinusXOp.cxx b/src/HYDROGUI/HYDROGUI_ImportSinusXOp.cxx index d5c37eb5..4f30e802 100644 --- a/src/HYDROGUI/HYDROGUI_ImportSinusXOp.cxx +++ b/src/HYDROGUI/HYDROGUI_ImportSinusXOp.cxx @@ -108,8 +108,7 @@ void HYDROGUI_ImportSinusXOp::onApply() else abort(); - module()->update( UF_Model | UF_VTKViewer | UF_VTK_Forced | UF_VTK_Init ); - + module()->update( UF_Model | UF_VTKViewer | UF_OCCViewer ); QApplication::restoreOverrideCursor(); } @@ -117,7 +116,7 @@ void HYDROGUI_ImportSinusXOp::UpdateView( NCollection_Sequence