1 // Created by: Ilya SEVRIKOV
2 // Copyright (c) 2016 OPEN CASCADE SAS
4 // This file is part of Open CASCADE Technology software library.
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License version 2.1 as published
8 // by the Free Software Foundation, with special exception defined in the file
9 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10 // distribution for complete text of the license and disclaimer of any warranty.
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
15 #include <AIS_TrihedronOwner.hxx>
17 IMPLEMENT_STANDARD_RTTIEXT (AIS_TrihedronOwner, SelectMgr_EntityOwner)
19 // =======================================================================
20 // function : AIS_TrihedronOwner
22 // =======================================================================
23 AIS_TrihedronOwner::AIS_TrihedronOwner (const Handle(SelectMgr_SelectableObject)& theSelObject,
24 const Prs3d_DatumParts thePart,
25 const Standard_Integer thePriority)
26 : SelectMgr_EntityOwner (theSelObject, thePriority),
31 // =======================================================================
32 // function : HilightWithColor
34 // =======================================================================
35 void AIS_TrihedronOwner::HilightWithColor (const Handle(PrsMgr_PresentationManager3d)& thePM,
36 const Handle(Prs3d_Drawer)& theStyle,
37 const Standard_Integer /*theMode*/)
39 Selectable()->HilightOwnerWithColor (thePM, theStyle, this);
42 // =======================================================================
43 // function : IsHilighted
45 // =======================================================================
46 Standard_Boolean AIS_TrihedronOwner::IsHilighted (const Handle(PrsMgr_PresentationManager)& thePM,
47 const Standard_Integer theMode) const
51 return Standard_False;
54 return thePM->IsHighlighted (Selectable(), theMode);
57 // =======================================================================
58 // function : Unhilight
60 // =======================================================================
61 void AIS_TrihedronOwner::Unhilight (const Handle(PrsMgr_PresentationManager)& thePM,
62 const Standard_Integer theMode)
70 thePM->Unhighlight (Selectable());