Integration of OCCT 6.5.0 from SVN
[occt.git] / src / AIS / AIS_InteractiveObject.lxx
CommitLineData
7fd59977 1// File: AIS_InteractiveObject.lxx
2// Created: Wed Jan 8 10:28:40 1997
3// Author: Robert COUBLANC
4// <rob@robox.paris1.matra-dtv.fr>
5
6#define GER61351 //GG_171199 Enable to set an object RGB color
7// instead a restricted object NameOfColor.
8
9
10inline Standard_Boolean AIS_InteractiveObject::AcceptShapeDecomposition() const
11{return Standard_False;}
12
13
14inline Standard_Boolean AIS_InteractiveObject::IsInfinite() const
15{return myInfiniteState;}
16
17inline Standard_Boolean AIS_InteractiveObject::HasColor() const
18{return hasOwnColor;}
19
20inline const Handle(Standard_Transient)&
21AIS_InteractiveObject::GetOwner() const
22{return myOwner;}
23
24inline void AIS_InteractiveObject::SetOwner(const Handle(Standard_Transient)& ApplicativeEntity)
25{myOwner = ApplicativeEntity;}
26
27inline const TColStd_ListOfTransient&
28AIS_InteractiveObject::Users() const
29{return myUsers;}
30
31inline Standard_Boolean AIS_InteractiveObject::HasDisplayMode() const
32{return myDisplayMode!=-1;}
33
34inline void AIS_InteractiveObject::UnsetDisplayMode()
35{myDisplayMode =-1;}
36
37inline Standard_Integer AIS_InteractiveObject::DisplayMode() const
38{return myDisplayMode;}
39
40inline Standard_Boolean AIS_InteractiveObject::HasSelectionMode() const
41{return mySelectionMode!=-1;}
42
43inline void AIS_InteractiveObject::UnsetSelectionMode()
44{mySelectionMode =-1;}
45
46inline Standard_Integer AIS_InteractiveObject::SelectionMode() const
47{return mySelectionMode;}
48
49
50
51inline Quantity_NameOfColor AIS_InteractiveObject::Color() const
52{
53#ifdef GER61351
54 return myOwnColor.Name();
55#else
56 return myOwnColor;
57#endif
58}
59
60#ifdef GER61351
61inline void AIS_InteractiveObject::Color(Quantity_Color& aColor) const
62{
63 aColor = myOwnColor;
64}
65#endif
66
67inline Standard_Boolean AIS_InteractiveObject::HasWidth() const
68{return (!myOwnWidth == 0.);}
69
70inline Standard_Real AIS_InteractiveObject::Width() const
71{return myOwnWidth;}
72inline Standard_Boolean AIS_InteractiveObject::HasMaterial() const
73{return hasOwnMaterial;}
74
75//POP pour K4L
76inline Graphic3d_NameOfMaterial AIS_InteractiveObject::Material() const
77//inline Graphic3d_NameOfPhysicalMaterial AIS_InteractiveObject::Material() const
78{return myOwnMaterial;}
79
80inline const Handle(AIS_Drawer)&
81AIS_InteractiveObject::Attributes() const
82{return myDrawer;}
83
84inline Standard_Boolean AIS_InteractiveObject::HasHilightMode() const
85{return myHilightMode!=-1;}
86
87inline Standard_Integer AIS_InteractiveObject::HilightMode() const
88{return myHilightMode;}
89
90inline void AIS_InteractiveObject::SetHilightMode(const Standard_Integer aMode)
91{myHilightMode = aMode;}
92
93inline void AIS_InteractiveObject::UnsetHilightMode()
94{myHilightMode = -1;}
95
96
97inline Standard_Boolean AIS_InteractiveObject::IsTransparent() const
98{return myTransparency >0.005;}
99
100inline Standard_Boolean AIS_InteractiveObject::HasSelectionPriority() const
101{return mySelPriority != -1;}
102inline void AIS_InteractiveObject::SetSelectionPriority(const Standard_Integer P)
103{mySelPriority = P;}
104inline void AIS_InteractiveObject::UnsetSelectionPriority()
105{mySelPriority = -1;}
106inline Standard_Integer AIS_InteractiveObject::SelectionPriority() const
107{return mySelPriority;}
108
109inline Standard_Integer AIS_InteractiveObject::State() const
110{return mystate;}
111
112inline void AIS_InteractiveObject::State(const Standard_Integer TheState)
113{mystate = TheState;}
114