| 1 | -- Created on: 2000-01-28 |
| 2 | -- Created by: data exchange team |
| 3 | -- Copyright (c) 2000-2014 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 | class BasicMsgRegistrator from ShapeExtend inherits TShared from MMgt |
| 17 | |
| 18 | ---Purpose: Abstract class that can be used for attaching messages |
| 19 | -- to the objects (e.g. shapes). |
| 20 | -- It is used by ShapeHealing algorithms to attach a message |
| 21 | -- describing encountered case (e.g. removing small edge from |
| 22 | -- a wire). |
| 23 | -- |
| 24 | -- The methods of this class are empty and redefined, for instance, |
| 25 | -- in the classes for Data Exchange processors for attaching |
| 26 | -- messages to interface file entities or CAS.CADE shapes. |
| 27 | |
| 28 | uses |
| 29 | |
| 30 | Shape from TopoDS, |
| 31 | Msg from Message, |
| 32 | Gravity from Message |
| 33 | |
| 34 | is |
| 35 | |
| 36 | Create returns mutable BasicMsgRegistrator from ShapeExtend; |
| 37 | ---Purpose: Empty constructor. |
| 38 | |
| 39 | Send (me: mutable; object : Transient; |
| 40 | message: Msg from Message; |
| 41 | gravity: Gravity from Message) is virtual; |
| 42 | ---Purpose: Sends a message to be attached to the object. |
| 43 | -- Object can be of any type interpreted by redefined MsgRegistrator. |
| 44 | |
| 45 | Send (me: mutable; shape : Shape from TopoDS; |
| 46 | message: Msg from Message; |
| 47 | gravity: Gravity from Message) is virtual; |
| 48 | ---Purpose: Sends a message to be attached to the shape. |
| 49 | |
| 50 | Send (me: mutable; message: Msg from Message; |
| 51 | gravity: Gravity from Message) is virtual; |
| 52 | ---Purpose: Calls Send method with Null Transient. |
| 53 | |
| 54 | end BasicMsgRegistrator; |