// Created on: 1997-01-08 // Created by: Robert COUBLANC // Copyright (c) 1997-1999 Matra Datavision // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 as published // by the Free Software Foundation, with special exception defined in the file // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT // distribution for complete text of the license and disclaimer of any warranty. // // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. inline Standard_Boolean AIS_InteractiveObject::AcceptShapeDecomposition() const {return Standard_False;} inline Standard_Boolean AIS_InteractiveObject::IsInfinite() const {return myInfiniteState;} inline Standard_Boolean AIS_InteractiveObject::HasColor() const {return hasOwnColor;} inline const Handle(Standard_Transient)& AIS_InteractiveObject::GetOwner() const {return myOwner;} inline void AIS_InteractiveObject::SetOwner(const Handle(Standard_Transient)& ApplicativeEntity) {myOwner = ApplicativeEntity;} inline const TColStd_ListOfTransient& AIS_InteractiveObject::Users() const {return myUsers;} inline Standard_Boolean AIS_InteractiveObject::HasDisplayMode() const {return myDisplayMode!=-1;} inline void AIS_InteractiveObject::UnsetDisplayMode() {myDisplayMode =-1;} inline Standard_Integer AIS_InteractiveObject::DisplayMode() const {return myDisplayMode;} inline Quantity_NameOfColor AIS_InteractiveObject::Color() const { return myOwnColor.Name(); } inline void AIS_InteractiveObject::Color(Quantity_Color& aColor) const { aColor = myOwnColor; } inline Standard_Boolean AIS_InteractiveObject::HasWidth() const {return !(myOwnWidth == 0.);} inline Standard_Real AIS_InteractiveObject::Width() const {return myOwnWidth;} inline Standard_Boolean AIS_InteractiveObject::HasMaterial() const {return hasOwnMaterial;} //POP pour K4L inline Graphic3d_NameOfMaterial AIS_InteractiveObject::Material() const //inline Graphic3d_NameOfPhysicalMaterial AIS_InteractiveObject::Material() const {return myOwnMaterial;} inline Standard_Boolean AIS_InteractiveObject::HasHilightMode() const {return myHilightMode!=-1;} inline Standard_Integer AIS_InteractiveObject::HilightMode() const {return myHilightMode;} inline void AIS_InteractiveObject::SetHilightMode(const Standard_Integer aMode) {myHilightMode = aMode;} inline void AIS_InteractiveObject::UnsetHilightMode() {myHilightMode = -1;} inline Standard_Boolean AIS_InteractiveObject::IsTransparent() const {return myTransparency >0.005;} inline Standard_Boolean AIS_InteractiveObject::HasSelectionPriority() const {return mySelPriority != -1;} inline void AIS_InteractiveObject::SetSelectionPriority(const Standard_Integer P) {mySelPriority = P;} inline void AIS_InteractiveObject::UnsetSelectionPriority() {mySelPriority = -1;} inline Standard_Integer AIS_InteractiveObject::SelectionPriority() const {return mySelPriority;} inline Standard_Integer AIS_InteractiveObject::State() const {return mystate;} inline void AIS_InteractiveObject::State(const Standard_Integer TheState) {mystate = TheState;}