0027818: Visualization - provide an interface to define highlight presentation properties
[occt.git] / src / AIS / AIS_ManipulatorOwner.hxx
CommitLineData
625e1958 1// Created on: 2015-12-23
2// Created by: Anastasia BORISOVA
3// Copyright (c) 2015 OPEN CASCADE SAS
4//
5// This file is part of Open CASCADE Technology software library.
6//
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.
12//
13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
15
16#ifndef _AIS_ManipulatorOwner_HeaderFile
17#define _AIS_ManipulatorOwner_HeaderFile
18
19#include <AIS_Manipulator.hxx>
20
21#include <SelectMgr_EntityOwner.hxx>
22#include <SelectMgr_SelectableObject.hxx>
23
24DEFINE_STANDARD_HANDLE(AIS_ManipulatorOwner, SelectMgr_EntityOwner)
25
26//! Entity owner for selection management of AIS_Manipulator object.
27class AIS_ManipulatorOwner : public SelectMgr_EntityOwner
28{
29public:
30
31 DEFINE_STANDARD_RTTIEXT(AIS_ManipulatorOwner, SelectMgr_EntityOwner)
32
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);
37
38 Standard_EXPORT virtual ~AIS_ManipulatorOwner() {}
39
8e5fb5ea 40 Standard_EXPORT virtual void HilightWithColor (const Handle(PrsMgr_PresentationManager3d)& thePM,
41 const Handle(Graphic3d_HighlightStyle)& theStyle,
42 const Standard_Integer theMode) Standard_OVERRIDE;
625e1958 43
44 Standard_EXPORT Standard_Boolean IsHilighted (const Handle(PrsMgr_PresentationManager)& thePM,
45 const Standard_Integer theMode) const Standard_OVERRIDE;
46
625e1958 47 Standard_EXPORT virtual void Unhilight (const Handle(PrsMgr_PresentationManager)& thePM, const Standard_Integer theMode) Standard_OVERRIDE;
48
49 Standard_EXPORT AIS_ManipulatorMode Mode() const { return myMode; }
50
51 //! @return index of manipulator axis.
52 Standard_EXPORT Standard_Integer Index() const { return myIndex; }
53
54protected:
55
56 Standard_Integer myIndex; //!< index of manipulator axis.
57 AIS_ManipulatorMode myMode;//!< manipulation (highlight) mode.
58};
59
60#endif // _AIS_ManipulatorOwner_HeaderFile