1 // Created on: 1996-12-19
2 // Created by: Robert COUBLANC
3 // Copyright (c) 1996-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 inline Standard_Boolean AIS_Drawer::WasLastLocal() const
18 {return Standard_False;}
20 inline Standard_Boolean AIS_Drawer::HasLocalAttributes() const
21 {return hasLocalAttributes;}
23 inline Standard_Real AIS_Drawer::PreviousDeviationCoefficient () const
24 {return (myhasOwnDeviationCoefficient) ? myPreviousDeviationCoefficient : 0.0;}
26 inline Standard_Real AIS_Drawer::PreviousHLRDeviationCoefficient () const
27 {return (myhasOwnHLRDeviationCoefficient) ? myPreviousHLRDeviationCoefficient : 0.0;}
29 inline Standard_Real AIS_Drawer::PreviousDeviationAngle () const
30 {return (myhasOwnDeviationAngle) ? myPreviousDeviationAngle : 0.0;}
32 inline Standard_Real AIS_Drawer::PreviousHLRDeviationAngle () const
33 {return (myhasOwnHLRDeviationAngle) ? myPreviousHLRDeviationAngle : 0.0;}
35 inline void AIS_Drawer::Link ( const Handle(Prs3d_Drawer)& aDrawer)
38 inline Standard_Boolean AIS_Drawer::HasLink() const
39 { return ! myLink.IsNull();}
41 inline void AIS_Drawer::SetDeviationCoefficient ()
42 { myhasOwnDeviationCoefficient = Standard_False; }
44 inline void AIS_Drawer::SetHLRDeviationCoefficient ()
45 { myhasOwnHLRDeviationCoefficient = Standard_False; }
47 inline void AIS_Drawer::SetDeviationAngle ()
48 { myhasOwnDeviationAngle = Standard_False;}
50 inline void AIS_Drawer::SetHLRAngle ()
51 { myhasOwnHLRDeviationAngle = Standard_False;}
53 inline Standard_Boolean AIS_Drawer::IsOwnDeviationCoefficient () const
54 { return myhasOwnDeviationCoefficient;}
56 inline Standard_Boolean AIS_Drawer::IsOwnDeviationAngle () const
57 { return myhasOwnDeviationAngle;}
59 inline Standard_Boolean AIS_Drawer::IsOwnHLRDeviationCoefficient () const
60 { return myhasOwnHLRDeviationCoefficient;}
62 inline Standard_Boolean AIS_Drawer::IsOwnHLRDeviationAngle () const
63 { return myhasOwnHLRDeviationAngle;}
65 inline Standard_Boolean AIS_Drawer::HasTextAspect () const
66 { return (!myTextAspect.IsNull());}
68 inline Standard_Boolean AIS_Drawer::HasWireAspect () const
69 { return (!myWireAspect.IsNull());}
71 inline Standard_Boolean AIS_Drawer::HasLineAspect () const
72 {return !myLineAspect.IsNull(); }
74 inline Standard_Boolean AIS_Drawer::HasShadingAspect () const
75 { return !myShadingAspect.IsNull();}
77 inline Standard_Boolean AIS_Drawer::HasPointAspect () const
78 { return !myPointAspect.IsNull();}
80 inline Standard_Boolean AIS_Drawer::HasDatumAspect () const
81 { return !myDatumAspect.IsNull();}
83 inline Standard_Boolean AIS_Drawer::HasPlaneAspect () const
84 { return !myPlaneAspect.IsNull();}
86 inline Standard_Boolean AIS_Drawer::IsOwnFaceBoundaryDraw () const
87 { return myHasOwnFaceBoundaryDraw; }
89 inline Standard_Boolean AIS_Drawer::IsOwnFaceBoundaryAspect () const
90 { return !myFaceBoundaryAspect.IsNull (); }
92 inline void AIS_Drawer::SetTypeOfHLR (const Prs3d_TypeOfHLR theTypeOfHLR)
94 myTypeOfHLR = theTypeOfHLR;
97 inline Prs3d_TypeOfHLR AIS_Drawer::TypeOfHLR ( ) const
99 return (myTypeOfHLR == Prs3d_TOH_NotSet) ? myLink->TypeOfHLR() : myTypeOfHLR;
102 inline Standard_Boolean AIS_Drawer::HasDimensionAspect() const
104 return !myDimensionAspect.IsNull();