Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-18 09:19:28

0001 // Created by: Ilya SEVRIKOV
0002 // Copyright (c) 2016 OPEN CASCADE SAS
0003 //
0004 // This file is part of Open CASCADE Technology software library.
0005 //
0006 // This library is free software; you can redistribute it and/or modify it under
0007 // the terms of the GNU Lesser General Public License version 2.1 as published
0008 // by the Free Software Foundation, with special exception defined in the file
0009 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0010 // distribution for complete text of the license and disclaimer of any warranty.
0011 //
0012 // Alternatively, this file may be used under the terms of Open CASCADE
0013 // commercial license or contractual agreement.
0014 
0015 #ifndef _AIS_TrihedronOwner_HeaderFile
0016 #define _AIS_TrihedronOwner_HeaderFile
0017 
0018 #include <SelectMgr_EntityOwner.hxx>
0019 #include <SelectMgr_SelectableObject.hxx>
0020 #include <Prs3d_DatumParts.hxx>
0021 
0022 //! Entity owner for selection management of AIS_Trihedron object.
0023 class AIS_TrihedronOwner : public SelectMgr_EntityOwner
0024 {
0025   DEFINE_STANDARD_RTTIEXT(AIS_TrihedronOwner, SelectMgr_EntityOwner)
0026 public:
0027   //! Creates an owner of AIS_Trihedron object.
0028   Standard_EXPORT AIS_TrihedronOwner(const occ::handle<SelectMgr_SelectableObject>& theSelObject,
0029                                      const Prs3d_DatumParts                         theDatumPart,
0030                                      const int                                      thePriority);
0031 
0032   //! Returns the datum part identifier.
0033   Prs3d_DatumParts DatumPart() const { return myDatumPart; }
0034 
0035   //! Highlights selectable object's presentation.
0036   Standard_EXPORT void HilightWithColor(const occ::handle<PrsMgr_PresentationManager>& thePM,
0037                                         const occ::handle<Prs3d_Drawer>&               theStyle,
0038                                         const int theMode) override;
0039 
0040   //! Returns true if the presentation manager thePM
0041   //! highlights selections corresponding to the selection mode aMode.
0042   Standard_EXPORT bool IsHilighted(const occ::handle<PrsMgr_PresentationManager>& thePM,
0043                                    const int theMode) const override;
0044 
0045   //! Removes highlighting from the owner of a detected
0046   //! selectable object in the presentation manager thePM.
0047   Standard_EXPORT void Unhilight(const occ::handle<PrsMgr_PresentationManager>& thePM,
0048                                  const int                                      theMode) override;
0049 
0050 protected:
0051   Prs3d_DatumParts myDatumPart; //!< part of datum selected
0052 };
0053 
0054 #endif // _AIS_TrihedronOwner_HeaderFile