1 // Created on: 1997-01-08
2 // Created by: Robert COUBLANC
3 // Copyright (c) 1997-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_InteractiveObject::AcceptShapeDecomposition() const
18 {return Standard_False;}
21 inline Standard_Boolean AIS_InteractiveObject::IsInfinite() const
22 {return myInfiniteState;}
24 inline Standard_Boolean AIS_InteractiveObject::HasColor() const
27 inline const Handle(Standard_Transient)&
28 AIS_InteractiveObject::GetOwner() const
31 inline void AIS_InteractiveObject::SetOwner(const Handle(Standard_Transient)& ApplicativeEntity)
32 {myOwner = ApplicativeEntity;}
34 inline const TColStd_ListOfTransient&
35 AIS_InteractiveObject::Users() const
38 inline Standard_Boolean AIS_InteractiveObject::HasDisplayMode() const
39 {return myDisplayMode!=-1;}
41 inline void AIS_InteractiveObject::UnsetDisplayMode()
44 inline Standard_Integer AIS_InteractiveObject::DisplayMode() const
45 {return myDisplayMode;}
47 inline Quantity_NameOfColor AIS_InteractiveObject::Color() const
49 return myOwnColor.Name();
52 inline void AIS_InteractiveObject::Color(Quantity_Color& aColor) const
57 inline Standard_Boolean AIS_InteractiveObject::HasWidth() const
58 {return !(myOwnWidth == 0.);}
60 inline Standard_Real AIS_InteractiveObject::Width() const
62 inline Standard_Boolean AIS_InteractiveObject::HasMaterial() const
63 {return hasOwnMaterial;}
66 inline Graphic3d_NameOfMaterial AIS_InteractiveObject::Material() const
67 //inline Graphic3d_NameOfPhysicalMaterial AIS_InteractiveObject::Material() const
68 {return myOwnMaterial;}
70 inline Standard_Boolean AIS_InteractiveObject::HasHilightMode() const
71 {return myHilightMode!=-1;}
73 inline Standard_Integer AIS_InteractiveObject::HilightMode() const
74 {return myHilightMode;}
76 inline void AIS_InteractiveObject::SetHilightMode(const Standard_Integer aMode)
77 {myHilightMode = aMode;}
79 inline void AIS_InteractiveObject::UnsetHilightMode()
83 inline Standard_Boolean AIS_InteractiveObject::IsTransparent() const
84 {return myTransparency >0.005;}
86 inline Standard_Boolean AIS_InteractiveObject::HasSelectionPriority() const
87 {return mySelPriority != -1;}
88 inline void AIS_InteractiveObject::SetSelectionPriority(const Standard_Integer P)
90 inline void AIS_InteractiveObject::UnsetSelectionPriority()
92 inline Standard_Integer AIS_InteractiveObject::SelectionPriority() const
93 {return mySelPriority;}
95 inline Standard_Integer AIS_InteractiveObject::State() const
98 inline void AIS_InteractiveObject::State(const Standard_Integer TheState)