0024624: Lost word in license statement in source files
[occt.git] / src / AIS / AIS_InteractiveObject.lxx
CommitLineData
b311480e 1// Created on: 1997-01-08
2// Created by: Robert COUBLANC
3// Copyright (c) 1997-1999 Matra Datavision
973c2be1 4// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5//
973c2be1 6// This file is part of Open CASCADE Technology software library.
b311480e 7//
d5f74e42 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
973c2be1 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.
b311480e 13//
973c2be1 14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
7fd59977 16
b8ddfc2f 17//GER61351 //GG_171199 Enable to set an object RGB color instead a restricted object NameOfColor.
7fd59977 18
19
20inline Standard_Boolean AIS_InteractiveObject::AcceptShapeDecomposition() const
21{return Standard_False;}
22
23
24inline Standard_Boolean AIS_InteractiveObject::IsInfinite() const
25{return myInfiniteState;}
26
27inline Standard_Boolean AIS_InteractiveObject::HasColor() const
28{return hasOwnColor;}
29
30inline const Handle(Standard_Transient)&
31AIS_InteractiveObject::GetOwner() const
32{return myOwner;}
33
34inline void AIS_InteractiveObject::SetOwner(const Handle(Standard_Transient)& ApplicativeEntity)
35{myOwner = ApplicativeEntity;}
36
37inline const TColStd_ListOfTransient&
38AIS_InteractiveObject::Users() const
39{return myUsers;}
40
41inline Standard_Boolean AIS_InteractiveObject::HasDisplayMode() const
42{return myDisplayMode!=-1;}
43
44inline void AIS_InteractiveObject::UnsetDisplayMode()
45{myDisplayMode =-1;}
46
47inline Standard_Integer AIS_InteractiveObject::DisplayMode() const
48{return myDisplayMode;}
49
50inline Standard_Boolean AIS_InteractiveObject::HasSelectionMode() const
51{return mySelectionMode!=-1;}
52
53inline void AIS_InteractiveObject::UnsetSelectionMode()
54{mySelectionMode =-1;}
55
56inline Standard_Integer AIS_InteractiveObject::SelectionMode() const
57{return mySelectionMode;}
58
59
60
61inline Quantity_NameOfColor AIS_InteractiveObject::Color() const
62{
b8ddfc2f 63 return myOwnColor.Name();
7fd59977 64}
65
7fd59977 66inline void AIS_InteractiveObject::Color(Quantity_Color& aColor) const
67{
b8ddfc2f 68 aColor = myOwnColor;
7fd59977 69}
7fd59977 70
71inline Standard_Boolean AIS_InteractiveObject::HasWidth() const
123e4db0 72{return !(myOwnWidth == 0.);}
7fd59977 73
74inline Standard_Real AIS_InteractiveObject::Width() const
75{return myOwnWidth;}
76inline Standard_Boolean AIS_InteractiveObject::HasMaterial() const
77{return hasOwnMaterial;}
78
79//POP pour K4L
80inline Graphic3d_NameOfMaterial AIS_InteractiveObject::Material() const
81//inline Graphic3d_NameOfPhysicalMaterial AIS_InteractiveObject::Material() const
82{return myOwnMaterial;}
83
84inline const Handle(AIS_Drawer)&
85AIS_InteractiveObject::Attributes() const
86{return myDrawer;}
87
88inline Standard_Boolean AIS_InteractiveObject::HasHilightMode() const
89{return myHilightMode!=-1;}
90
91inline Standard_Integer AIS_InteractiveObject::HilightMode() const
92{return myHilightMode;}
93
94inline void AIS_InteractiveObject::SetHilightMode(const Standard_Integer aMode)
95{myHilightMode = aMode;}
96
97inline void AIS_InteractiveObject::UnsetHilightMode()
98{myHilightMode = -1;}
99
100
101inline Standard_Boolean AIS_InteractiveObject::IsTransparent() const
102{return myTransparency >0.005;}
103
104inline Standard_Boolean AIS_InteractiveObject::HasSelectionPriority() const
105{return mySelPriority != -1;}
106inline void AIS_InteractiveObject::SetSelectionPriority(const Standard_Integer P)
107{mySelPriority = P;}
108inline void AIS_InteractiveObject::UnsetSelectionPriority()
109{mySelPriority = -1;}
110inline Standard_Integer AIS_InteractiveObject::SelectionPriority() const
111{return mySelPriority;}
112
113inline Standard_Integer AIS_InteractiveObject::State() const
114{return mystate;}
115
116inline void AIS_InteractiveObject::State(const Standard_Integer TheState)
117{mystate = TheState;}
118