X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FViewerData%2FViewerData_AISShape.cxx;h=056c1787d257940f73d71edb6606722f0d0569ef;hb=b6e35aa42d3c67a529d7f9339718dfaed6891323;hp=38f7e68a7e94ff390dd886db71e24e880297c52f;hpb=d26f738c9c427a45409bacf3848fd8c224edf6ed;p=modules%2Fgui.git diff --git a/src/ViewerData/ViewerData_AISShape.cxx b/src/ViewerData/ViewerData_AISShape.cxx index 38f7e68a7..056c1787d 100644 --- a/src/ViewerData/ViewerData_AISShape.cxx +++ b/src/ViewerData/ViewerData_AISShape.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -22,15 +22,26 @@ #include "ViewerData_AISShape.hxx" -IMPLEMENT_STANDARD_HANDLE (ViewerData_AISShape, AIS_TexturedShape) -IMPLEMENT_STANDARD_RTTIEXT(ViewerData_AISShape, AIS_TexturedShape) +#include + +IMPLEMENT_STANDARD_RTTIEXT(ViewerData_AISShape, AIS_ColoredShape) + +/*! + Constructor. + \param shape Shape to manage. +*/ +ViewerData_AISShape::ViewerData_AISShape(const TopoDS_Shape& theShape) +: AIS_ColoredShape(theShape), + myIsClippable(true) +{ +#if OCC_VERSION_LARGE >= 0x07070000 + myDrawer->SetupOwnDefaults(); +#endif +} /*! - Constructor - \param shape - TopoDS shape + Destructor. */ -ViewerData_AISShape::ViewerData_AISShape (const TopoDS_Shape& theShape) -: AIS_TexturedShape (theShape), - myIsClippable (true) +ViewerData_AISShape::~ViewerData_AISShape() { }