-// 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>
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)
}
highlight( assocEntrySubIDs, only );
}
-#include <SUIT_Session.h>
+
void OccGraphicView::highlightSubShapes(const Handle(AIS_Shape)& anObj,
const TColStd_IndexedMapOfInteger& aIndexMap, bool only)
{
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();
}