1 // Created on: 2015-12-23
2 // Created by: Anastasia BORISOVA
3 // Copyright (c) 2015 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #ifndef _AIS_ManipulatorOwner_HeaderFile
17 #define _AIS_ManipulatorOwner_HeaderFile
19 #include <AIS_Manipulator.hxx>
21 #include <SelectMgr_EntityOwner.hxx>
22 #include <SelectMgr_SelectableObject.hxx>
24 DEFINE_STANDARD_HANDLE(AIS_ManipulatorOwner, SelectMgr_EntityOwner)
26 //! Entity owner for selection management of AIS_Manipulator object.
27 class AIS_ManipulatorOwner : public SelectMgr_EntityOwner
31 DEFINE_STANDARD_RTTIEXT(AIS_ManipulatorOwner, SelectMgr_EntityOwner)
33 Standard_EXPORT AIS_ManipulatorOwner (const Handle(SelectMgr_SelectableObject)& theSelObject,
34 const Standard_Integer theIndex,
35 const AIS_ManipulatorMode theMode,
36 const Standard_Integer thePriority = 0);
38 Standard_EXPORT virtual ~AIS_ManipulatorOwner() {}
40 Standard_EXPORT virtual void HilightWithColor (const Handle(PrsMgr_PresentationManager3d)& thePM, const Quantity_NameOfColor theColor, const Standard_Integer theMode) Standard_OVERRIDE;
42 Standard_EXPORT Standard_Boolean IsHilighted (const Handle(PrsMgr_PresentationManager)& thePM,
43 const Standard_Integer theMode) const Standard_OVERRIDE;
45 Standard_EXPORT virtual void Hilight (const Handle(PrsMgr_PresentationManager)& thePM, const Standard_Integer theMode) Standard_OVERRIDE;
47 Standard_EXPORT virtual void Unhilight (const Handle(PrsMgr_PresentationManager)& thePM, const Standard_Integer theMode) Standard_OVERRIDE;
49 Standard_EXPORT AIS_ManipulatorMode Mode() const { return myMode; }
51 //! @return index of manipulator axis.
52 Standard_EXPORT Standard_Integer Index() const { return myIndex; }
56 Standard_Integer myIndex; //!< index of manipulator axis.
57 AIS_ManipulatorMode myMode;//!< manipulation (highlight) mode.
60 #endif // _AIS_ManipulatorOwner_HeaderFile