Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-13 08:25:32

0001 // Created on: 2015-12-23
0002 // Created by: Anastasia BORISOVA
0003 // Copyright (c) 2015 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _AIS_ManipulatorOwner_HeaderFile
0017 #define _AIS_ManipulatorOwner_HeaderFile
0018 
0019 #include <AIS_Manipulator.hxx>
0020 
0021 #include <SelectMgr_EntityOwner.hxx>
0022 #include <SelectMgr_SelectableObject.hxx>
0023 
0024 DEFINE_STANDARD_HANDLE(AIS_ManipulatorOwner, SelectMgr_EntityOwner)
0025 
0026 //! Entity owner for selection management of AIS_Manipulator object.
0027 class AIS_ManipulatorOwner : public SelectMgr_EntityOwner
0028 {
0029 public:
0030   DEFINE_STANDARD_RTTIEXT(AIS_ManipulatorOwner, SelectMgr_EntityOwner)
0031 
0032   Standard_EXPORT AIS_ManipulatorOwner(const Handle(SelectMgr_SelectableObject)& theSelObject,
0033                                        const Standard_Integer                    theIndex,
0034                                        const AIS_ManipulatorMode                 theMode,
0035                                        const Standard_Integer                    thePriority = 0);
0036 
0037   Standard_EXPORT virtual void HilightWithColor(const Handle(PrsMgr_PresentationManager)& thePM,
0038                                                 const Handle(Prs3d_Drawer)&               theStyle,
0039                                                 const Standard_Integer theMode) Standard_OVERRIDE;
0040 
0041   Standard_EXPORT Standard_Boolean
0042     IsHilighted(const Handle(PrsMgr_PresentationManager)& thePM,
0043                 const Standard_Integer                    theMode) const Standard_OVERRIDE;
0044 
0045   Standard_EXPORT virtual void Unhilight(const Handle(PrsMgr_PresentationManager)& thePM,
0046                                          const Standard_Integer theMode) Standard_OVERRIDE;
0047 
0048   AIS_ManipulatorMode Mode() const { return myMode; }
0049 
0050   //! @return index of manipulator axis.
0051   Standard_Integer Index() const { return myIndex; }
0052 
0053 protected:
0054   Standard_Integer    myIndex; //!< index of manipulator axis.
0055   AIS_ManipulatorMode myMode;  //!< manipulation (highlight) mode.
0056 };
0057 
0058 #endif // _AIS_ManipulatorOwner_HeaderFile