0023024: Update headers of OCCT files
[occt.git] / src / AIS2D / AIS2D_InteractiveObject.lxx
CommitLineData
b311480e 1// Copyright (c) 1999-2012 OPEN CASCADE SAS
2//
3// The content of this file is subject to the Open CASCADE Technology Public
4// License Version 6.5 (the "License"). You may not use the content of this file
5// except in compliance with the License. Please obtain a copy of the License
6// at http://www.opencascade.org and read it completely before using this file.
7//
8// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
9// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
10//
11// The Original Code and all software distributed under the License is
12// distributed on an "AS IS" basis, without warranty of any kind, and the
13// Initial Developer hereby disclaims all such warranties, including without
14// limitation, any warranties of merchantability, fitness for a particular
15// purpose or non-infringement. Please see the License for the specific terms
16// and conditions governing the rights and limitations under the License.
17
7fd59977 18inline Handle(Prs2d_Drawer) AIS2D_InteractiveObject::Attributes() const {
19 return myDrawer;
20}
21
22inline Standard_Integer AIS2D_InteractiveObject::DisplayMode() const {
23 return myDisplayMode;
24}
25
26inline Standard_Boolean AIS2D_InteractiveObject::HasDisplayMode() const {
27 return myDisplayMode != -1;
28}
29
30inline void AIS2D_InteractiveObject::SetDisplayMode( const Standard_Integer aMode ) {
31 myDisplayMode = aMode;
32}
33
34inline void AIS2D_InteractiveObject::UnsetDisplayMode() {
35 myDisplayMode = -1;
36}
37
38inline Standard_Integer AIS2D_InteractiveObject::DefaultDisplayMode() const {
39 return 0;
40}
41
42inline Standard_Boolean AIS2D_InteractiveObject::AcceptDisplayMode( const Standard_Integer /*aMode*/ ) const {
43 return Standard_True;
44}
45
46inline AIS2D_TypeOfDetection AIS2D_InteractiveObject::HighlightMode() const {
47 return myHighlightMode;
48}
49
50inline Standard_Boolean AIS2D_InteractiveObject::HasHighlightMode() const {
51 return myHighlightMode != AIS2D_TOD_NONE;
52}
53
54inline void AIS2D_InteractiveObject::SetHighlightMode( const AIS2D_TypeOfDetection aMode ) {
55 myHighlightMode = aMode;
56}
57
58inline void AIS2D_InteractiveObject::UnsetHighlightMode() {
59 myHighlightMode = AIS2D_TOD_NONE;
60}
61
62inline AIS2D_TypeOfDetection AIS2D_InteractiveObject::DefaultHighlightMode() const {
63 return AIS2D_TOD_PRIMITIVE;
64}
65
66inline Standard_Integer AIS2D_InteractiveObject::SelectionMode() const {
67 return mySelectionMode;
68}
69
70inline Standard_Boolean AIS2D_InteractiveObject::HasSelectionMode() const {
71 return mySelectionMode != -1;
72}
73
74inline void AIS2D_InteractiveObject::SetSelectionMode( const Standard_Integer aMode ) {
75 mySelectionMode = aMode;
76}
77
78inline void AIS2D_InteractiveObject::UnsetSelectionMode() {
79 mySelectionMode = -1;
80}
81
82inline Standard_Integer AIS2D_InteractiveObject::DefaultSelectionMode() const {
83 return 0;
84}
85
86inline Standard_Integer AIS2D_InteractiveObject::State() const {
87 return myState;
88}
89
90inline void AIS2D_InteractiveObject::SetState( const Standard_Integer aState ) {
91 myState = aState;
92}