0024428: Implementation of LGPL license
[occt.git] / src / AIS / AIS_Drawer.lxx
old mode 100755 (executable)
new mode 100644 (file)
index 01e925b..2bb3b18
@@ -1,7 +1,18 @@
-// File:       AIS_Drawer.lxx
-// Created:    Thu Dec 19 15:49:32 1996
-// Author:     Robert COUBLANC
-//             <rob@robox.paris1.matra-dtv.fr>
+// Created on: 1996-12-19
+// Created by: Robert COUBLANC
+// Copyright (c) 1996-1999 Matra Datavision
+// Copyright (c) 1999-2014 OPEN CASCADE SAS
+//
+// This file is part of Open CASCADE Technology software library.
+//
+// This library is free software; you can redistribute it and / or modify it
+// under the terms of the GNU Lesser General Public version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
+//
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
 
 inline Standard_Boolean AIS_Drawer::WasLastLocal() const
 {return Standard_False;}
@@ -66,15 +77,29 @@ inline Standard_Boolean AIS_Drawer::HasShadingAspect ()  const
 inline Standard_Boolean AIS_Drawer::HasPointAspect ()  const 
 { return !myPointAspect.IsNull();}
 
-inline Standard_Boolean AIS_Drawer::HasAngleAspect ()  const 
-{ return !myAngleAspect.IsNull();}
-
 inline Standard_Boolean AIS_Drawer::HasDatumAspect ()  const 
 { return !myDatumAspect.IsNull();}
 
 inline Standard_Boolean AIS_Drawer::HasPlaneAspect ()  const 
 { return !myPlaneAspect.IsNull();}
 
-inline Standard_Boolean AIS_Drawer::HasLengthAspect ()  const 
-{ return !myLengthAspect.IsNull();}
+inline Standard_Boolean AIS_Drawer::IsOwnFaceBoundaryDraw () const
+{ return myHasOwnFaceBoundaryDraw; }
+
+inline Standard_Boolean AIS_Drawer::IsOwnFaceBoundaryAspect () const
+{ return !myFaceBoundaryAspect.IsNull (); }
+
+inline void AIS_Drawer::SetTypeOfHLR (const Prs3d_TypeOfHLR theTypeOfHLR) 
+{
+  myTypeOfHLR = theTypeOfHLR;
+}
+
+inline Prs3d_TypeOfHLR AIS_Drawer::TypeOfHLR ( ) const
+{
+  return (myTypeOfHLR == Prs3d_TOH_NotSet) ? myLink->TypeOfHLR() : myTypeOfHLR;
+}
 
+inline Standard_Boolean AIS_Drawer::HasDimensionAspect() const
+{
+  return !myDimensionAspect.IsNull();
+}