b311480e |
1 | -- Created on: 2003-10-10 |
2 | -- Created by: Alexander SOLOVYOV |
973c2be1 |
3 | -- Copyright (c) 2003-2014 OPEN CASCADE SAS |
b311480e |
4 | -- |
973c2be1 |
5 | -- This file is part of Open CASCADE Technology software library. |
b311480e |
6 | -- |
d5f74e42 |
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 |
973c2be1 |
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. |
b311480e |
12 | -- |
973c2be1 |
13 | -- Alternatively, this file may be used under the terms of Open CASCADE |
14 | -- commercial license or contractual agreement. |
7fd59977 |
15 | |
16 | class MeshEntityOwner from MeshVS inherits EntityOwner from SelectMgr |
17 | |
18 | ---Purpose: The custom owner. This class provides methods to store owner information: |
19 | -- 1) An address of element or node data structure |
20 | -- 2) Type of node or element owner assigned |
21 | -- 3) ID of node or element owner assigned |
22 | |
23 | uses |
24 | SOPtr from SelectMgr, |
25 | |
26 | Integer from Standard, |
27 | Address from Standard, |
28 | |
29 | Array1OfReal from TColStd, |
30 | |
31 | EntityType from MeshVS, |
32 | |
33 | PresentationManager3d from PrsMgr, |
34 | PresentationManager from PrsMgr, |
35 | |
36 | NameOfColor from Quantity |
37 | |
38 | is |
39 | |
40 | Create ( SelObj : SOPtr from SelectMgr; |
41 | ID : Integer; |
42 | MeshEntity : Address; |
43 | Type : EntityType from MeshVS; |
44 | Priority : Integer = 0; |
6e33d3ce |
45 | IsGroup : Boolean = Standard_False ) returns MeshEntityOwner from MeshVS; |
7fd59977 |
46 | |
47 | Owner ( me ) returns Address; |
48 | ---Purpose: Returns an address of element or node data structure |
49 | |
50 | Type ( me ) returns EntityType; |
51 | ---Purpose: Returns type of element or node data structure |
52 | |
53 | ID ( me ) returns Integer; |
54 | ---Purpose: Returns ID of element or node data structure |
55 | |
56 | IsGroup ( me ) returns Boolean; |
57 | ---Purpose: Returns true if owner represents group of nodes or elements |
58 | |
59 | IsHilighted ( me; PM : PresentationManager from PrsMgr; |
60 | Mode : Integer = 0 ) returns Boolean is redefined; |
61 | ---Purpose: Returns true if owner is hilighted |
62 | |
63 | Hilight ( me : mutable ) is redefined; |
64 | ---Purpose: Hilights owner |
65 | |
66 | Hilight ( me : mutable; PM : PresentationManager from PrsMgr; |
67 | Mode : Integer = 0 ) is redefined; |
68 | ---Purpose: Hilights owner |
69 | |
70 | HilightWithColor ( me : mutable; PM : PresentationManager3d from PrsMgr; |
71 | theColor : NameOfColor from Quantity; |
72 | Mode : Integer = 0 ) is redefined; |
73 | ---Purpose: Hilights owner with the certain color |
74 | |
75 | Unhilight ( me : mutable; PM : PresentationManager from PrsMgr; |
76 | Mode : Integer = 0 ) is redefined; |
77 | ---Purpose: Strip hilight of owner |
78 | |
79 | Clear ( me : mutable; PM : PresentationManager from PrsMgr; |
80 | Mode : Integer = 0 ) is redefined; |
81 | |
82 | fields |
83 | myAddr : Address; |
84 | myType : EntityType from MeshVS; |
85 | myID : Integer; |
86 | myIsGroup : Boolean; |
87 | |
88 | end MeshEntityOwner; |