0029915: Porting to VC 2017 : Regressions in Modeling Algorithms on VC 2017
[occt.git] / src / ShapeCustom / ShapeCustom_Modification.hxx
CommitLineData
42cf5bc1 1// Copyright (c) 2003-2014 OPEN CASCADE SAS
2//
3// This file is part of Open CASCADE Technology software library.
4//
5// This library is free software; you can redistribute it and/or modify it under
6// the terms of the GNU Lesser General Public License version 2.1 as published
7// by the Free Software Foundation, with special exception defined in the file
8// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9// distribution for complete text of the license and disclaimer of any warranty.
10//
11// Alternatively, this file may be used under the terms of Open CASCADE
12// commercial license or contractual agreement.
13
14#ifndef _ShapeCustom_Modification_HeaderFile
15#define _ShapeCustom_Modification_HeaderFile
16
17#include <Standard.hxx>
18#include <Standard_Type.hxx>
19
20#include <BRepTools_Modification.hxx>
21#include <Message_Gravity.hxx>
22class ShapeExtend_BasicMsgRegistrator;
23class TopoDS_Shape;
24class Message_Msg;
25
26
27class ShapeCustom_Modification;
28DEFINE_STANDARD_HANDLE(ShapeCustom_Modification, BRepTools_Modification)
29
30//! A base class of Modification's from ShapeCustom.
31//! Implements message sending mechanism.
32class ShapeCustom_Modification : public BRepTools_Modification
33{
34
35public:
36
37
38 //! Sets message registrator
39 Standard_EXPORT virtual void SetMsgRegistrator (const Handle(ShapeExtend_BasicMsgRegistrator)& msgreg);
40
41 //! Returns message registrator
42 Standard_EXPORT Handle(ShapeExtend_BasicMsgRegistrator) MsgRegistrator() const;
43
44 //! Sends a message to be attached to the shape.
45 //! Calls corresponding message of message registrator.
46 Standard_EXPORT void SendMsg (const TopoDS_Shape& shape, const Message_Msg& message, const Message_Gravity gravity = Message_Info) const;
47
48
49
50
92efcf78 51 DEFINE_STANDARD_RTTIEXT(ShapeCustom_Modification,BRepTools_Modification)
42cf5bc1 52
53protected:
54
55
56
57
58private:
59
60
61 Handle(ShapeExtend_BasicMsgRegistrator) myMsgReg;
62
63
64};
65
66
67
68
69
70
71
72#endif // _ShapeCustom_Modification_HeaderFile