Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:02:55

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 
0031   DEFINE_STANDARD_RTTIEXT(AIS_ManipulatorOwner, SelectMgr_EntityOwner)
0032 
0033   Standard_EXPORT AIS_ManipulatorOwner (const Handle(SelectMgr_SelectableObject)& theSelObject,
0034                                         const Standard_Integer theIndex,
0035                                         const AIS_ManipulatorMode theMode,
0036                                         const Standard_Integer thePriority = 0);
0037 
0038   Standard_EXPORT virtual void HilightWithColor (const Handle(PrsMgr_PresentationManager)& thePM,
0039                                                  const Handle(Prs3d_Drawer)& theStyle,
0040                                                  const Standard_Integer theMode) Standard_OVERRIDE;
0041 
0042   Standard_EXPORT Standard_Boolean 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, const Standard_Integer theMode) Standard_OVERRIDE;
0046 
0047   AIS_ManipulatorMode Mode() const { return myMode; }
0048 
0049   //! @return index of manipulator axis.
0050   Standard_Integer Index() const { return myIndex; }
0051 
0052 protected:
0053 
0054   Standard_Integer myIndex; //!< index of manipulator axis.
0055   AIS_ManipulatorMode myMode;//!< manipulation (highlight) mode.
0056 };
0057 
0058 #endif // _AIS_ManipulatorOwner_HeaderFile