1 // Created on: 1996-12-19
2 // Created by: Robert COUBLANC
3 // Copyright (c) 1996-1999 Matra Datavision
4 // Copyright (c) 1999-2012 OPEN CASCADE SAS
6 // The content of this file is subject to the Open CASCADE Technology Public
7 // License Version 6.5 (the "License"). You may not use the content of this file
8 // except in compliance with the License. Please obtain a copy of the License
9 // at http://www.opencascade.org and read it completely before using this file.
11 // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
14 // The Original Code and all software distributed under the License is
15 // distributed on an "AS IS" basis, without warranty of any kind, and the
16 // Initial Developer hereby disclaims all such warranties, including without
17 // limitation, any warranties of merchantability, fitness for a particular
18 // purpose or non-infringement. Please see the License for the specific terms
19 // and conditions governing the rights and limitations under the License.
22 inline Standard_Boolean AIS_Drawer::WasLastLocal() const
23 {return Standard_False;}
25 inline Standard_Boolean AIS_Drawer::HasLocalAttributes() const
26 {return hasLocalAttributes;}
28 inline Standard_Real AIS_Drawer::PreviousDeviationCoefficient () const
29 {return (myhasOwnDeviationCoefficient) ? myPreviousDeviationCoefficient : 0.0;}
31 inline Standard_Real AIS_Drawer::PreviousHLRDeviationCoefficient () const
32 {return (myhasOwnHLRDeviationCoefficient) ? myPreviousHLRDeviationCoefficient : 0.0;}
34 inline Standard_Real AIS_Drawer::PreviousDeviationAngle () const
35 {return (myhasOwnDeviationAngle) ? myPreviousDeviationAngle : 0.0;}
37 inline Standard_Real AIS_Drawer::PreviousHLRDeviationAngle () const
38 {return (myhasOwnHLRDeviationAngle) ? myPreviousHLRDeviationAngle : 0.0;}
40 inline void AIS_Drawer::Link ( const Handle(Prs3d_Drawer)& aDrawer)
43 inline Standard_Boolean AIS_Drawer::HasLink() const
44 { return ! myLink.IsNull();}
46 inline void AIS_Drawer::SetDeviationCoefficient ()
47 { myhasOwnDeviationCoefficient = Standard_False; }
49 inline void AIS_Drawer::SetHLRDeviationCoefficient ()
50 { myhasOwnHLRDeviationCoefficient = Standard_False; }
52 inline void AIS_Drawer::SetDeviationAngle ()
53 { myhasOwnDeviationAngle = Standard_False;}
55 inline void AIS_Drawer::SetHLRAngle ()
56 { myhasOwnHLRDeviationAngle = Standard_False;}
58 inline Standard_Boolean AIS_Drawer::IsOwnDeviationCoefficient () const
59 { return myhasOwnDeviationCoefficient;}
61 inline Standard_Boolean AIS_Drawer::IsOwnDeviationAngle () const
62 { return myhasOwnDeviationAngle;}
64 inline Standard_Boolean AIS_Drawer::IsOwnHLRDeviationCoefficient () const
65 { return myhasOwnHLRDeviationCoefficient;}
67 inline Standard_Boolean AIS_Drawer::IsOwnHLRDeviationAngle () const
68 { return myhasOwnHLRDeviationAngle;}
70 inline Standard_Boolean AIS_Drawer::HasTextAspect () const
71 { return (!myTextAspect.IsNull());}
73 inline Standard_Boolean AIS_Drawer::HasWireAspect () const
74 { return (!myWireAspect.IsNull());}
76 inline Standard_Boolean AIS_Drawer::HasLineAspect () const
77 {return !myLineAspect.IsNull(); }
79 inline Standard_Boolean AIS_Drawer::HasShadingAspect () const
80 { return !myShadingAspect.IsNull();}
82 inline Standard_Boolean AIS_Drawer::HasPointAspect () const
83 { return !myPointAspect.IsNull();}
85 inline Standard_Boolean AIS_Drawer::HasDatumAspect () const
86 { return !myDatumAspect.IsNull();}
88 inline Standard_Boolean AIS_Drawer::HasPlaneAspect () const
89 { return !myPlaneAspect.IsNull();}
91 inline Standard_Boolean AIS_Drawer::IsOwnFaceBoundaryDraw () const
92 { return myHasOwnFaceBoundaryDraw; }
94 inline Standard_Boolean AIS_Drawer::IsOwnFaceBoundaryAspect () const
95 { return !myFaceBoundaryAspect.IsNull (); }
97 inline void AIS_Drawer::SetTypeOfHLR (const Prs3d_TypeOfHLR theTypeOfHLR)
99 myTypeOfHLR = theTypeOfHLR;
102 inline Prs3d_TypeOfHLR AIS_Drawer::TypeOfHLR ( ) const
104 return (myTypeOfHLR == Prs3d_TOH_NotSet) ? myLink->TypeOfHLR() : myTypeOfHLR;
107 inline Standard_Boolean AIS_Drawer::HasDimensionAspect () const
108 { return !myDimensionAspect.IsNull();}