0025773: Visualization - remove AIS_Drawer class and transfer its Link() logic to...
[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
7fd59977 17inline Standard_Boolean AIS_InteractiveObject::AcceptShapeDecomposition() const
18{return Standard_False;}
19
20
21inline Standard_Boolean AIS_InteractiveObject::IsInfinite() const
22{return myInfiniteState;}
23
24inline Standard_Boolean AIS_InteractiveObject::HasColor() const
25{return hasOwnColor;}
26
27inline const Handle(Standard_Transient)&
28AIS_InteractiveObject::GetOwner() const
29{return myOwner;}
30
31inline void AIS_InteractiveObject::SetOwner(const Handle(Standard_Transient)& ApplicativeEntity)
32{myOwner = ApplicativeEntity;}
33
34inline const TColStd_ListOfTransient&
35AIS_InteractiveObject::Users() const
36{return myUsers;}
37
38inline Standard_Boolean AIS_InteractiveObject::HasDisplayMode() const
39{return myDisplayMode!=-1;}
40
41inline void AIS_InteractiveObject::UnsetDisplayMode()
42{myDisplayMode =-1;}
43
44inline Standard_Integer AIS_InteractiveObject::DisplayMode() const
45{return myDisplayMode;}
46
47inline Standard_Boolean AIS_InteractiveObject::HasSelectionMode() const
48{return mySelectionMode!=-1;}
49
50inline void AIS_InteractiveObject::UnsetSelectionMode()
51{mySelectionMode =-1;}
52
53inline Standard_Integer AIS_InteractiveObject::SelectionMode() const
54{return mySelectionMode;}
55
56
57
58inline Quantity_NameOfColor AIS_InteractiveObject::Color() const
59{
b8ddfc2f 60 return myOwnColor.Name();
7fd59977 61}
62
7fd59977 63inline void AIS_InteractiveObject::Color(Quantity_Color& aColor) const
64{
b8ddfc2f 65 aColor = myOwnColor;
7fd59977 66}
7fd59977 67
68inline Standard_Boolean AIS_InteractiveObject::HasWidth() const
123e4db0 69{return !(myOwnWidth == 0.);}
7fd59977 70
71inline Standard_Real AIS_InteractiveObject::Width() const
72{return myOwnWidth;}
73inline Standard_Boolean AIS_InteractiveObject::HasMaterial() const
74{return hasOwnMaterial;}
75
76//POP pour K4L
77inline Graphic3d_NameOfMaterial AIS_InteractiveObject::Material() const
78//inline Graphic3d_NameOfPhysicalMaterial AIS_InteractiveObject::Material() const
79{return myOwnMaterial;}
80
7fd59977 81inline Standard_Boolean AIS_InteractiveObject::HasHilightMode() const
82{return myHilightMode!=-1;}
83
84inline Standard_Integer AIS_InteractiveObject::HilightMode() const
85{return myHilightMode;}
86
87inline void AIS_InteractiveObject::SetHilightMode(const Standard_Integer aMode)
88{myHilightMode = aMode;}
89
90inline void AIS_InteractiveObject::UnsetHilightMode()
91{myHilightMode = -1;}
92
93
94inline Standard_Boolean AIS_InteractiveObject::IsTransparent() const
95{return myTransparency >0.005;}
96
97inline Standard_Boolean AIS_InteractiveObject::HasSelectionPriority() const
98{return mySelPriority != -1;}
99inline void AIS_InteractiveObject::SetSelectionPriority(const Standard_Integer P)
100{mySelPriority = P;}
101inline void AIS_InteractiveObject::UnsetSelectionPriority()
102{mySelPriority = -1;}
103inline Standard_Integer AIS_InteractiveObject::SelectionPriority() const
104{return mySelPriority;}
105
106inline Standard_Integer AIS_InteractiveObject::State() const
107{return mystate;}
108
109inline void AIS_InteractiveObject::State(const Standard_Integer TheState)
110{mystate = TheState;}
111