Salome HOME
Porting to DEV version of OpenCASCADE.
[modules/hexablock.git] / src / HEXABLOCKGUI / HEXABLOCKGUI_OccGraphicView.cxx
index d807d0c4104f9fe3207fc59e105447272feafa68..89e89bbaf2b06f53891944dc297dba1945179f41 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2009-2013  CEA/DEN, EDF R&D
+// Copyright (C) 2009-2016  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 //
 
 
-
 #include "HEXABLOCKGUI_OccGraphicView.hxx"
-#include "utilities.h"
 #include "HEXABLOCKGUI.hxx"
-#include "HEXABLOCKGUI_DocumentModel.hxx"
 #include "HEXABLOCKGUI_VtkDocumentGraphicView.hxx"
-#include "HexNewShape.hxx"
-#include "HexVertexShape.hxx"
-#include "HexEdgeShape.hxx"
-#include "HexFaceShape.hxx"
-
-#include <SelectMgr_Selection.hxx>
-#include <TColStd_ListIteratorOfListOfInteger.hxx>
-#include <SelectBasics_SensitiveEntity.hxx>
-#include <StdSelect_BRepOwner.hxx>
-#include <TopExp.hxx>
 
 #include <SOCC_ViewModel.h>
 #include <SUIT_ViewManager.h>
@@ -54,7 +41,7 @@ OccGraphicView::OccGraphicView( OCCViewer_ViewWindow* view, QWidget* parent ):
     TopoDS_Shape shapeToPreview;
     previewShape = new AIS_Shape(shapeToPreview);
 //    previewShape->SetColor(Quantity_NOC_RED);
-    getContext()->SetColor( previewShape, Quantity_NOC_RED );
+    getContext()->SetColor( previewShape, Quantity_NOC_RED, Standard_True );
 }
 
 void OccGraphicView::setSelectionMode(TopAbs_ShapeEnum mode)
@@ -206,7 +193,7 @@ void OccGraphicView::highlight( const QModelIndexList & indexList, bool only )
     }
     highlight( assocEntrySubIDs, only );
 }
-#include <SUIT_Session.h>
+
 void OccGraphicView::highlightSubShapes(const Handle(AIS_Shape)& anObj,
                                 const TColStd_IndexedMapOfInteger& aIndexMap, bool only)
 {
@@ -330,7 +317,7 @@ void OccGraphicView::displayPreview(TopoDS_Shape& shape)
 
     previewShape->Set(shape);
 //    previewShape->SetColor(Quantity_NOC_RED);
-    getContext()->SetColor( previewShape, Quantity_NOC_RED );
+    getContext()->SetColor( previewShape, Quantity_NOC_RED, Standard_True );
     previewShape->Redisplay();
     vf->Repaint();
 }