File indexing completed on 2026-09-17 09:22:25
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _TopoDS_AlertWithShape_HeaderFile
0017 #define _TopoDS_AlertWithShape_HeaderFile
0018
0019 #include <Message_Alert.hxx>
0020 #include <TopoDS_Shape.hxx>
0021
0022
0023 class TopoDS_AlertWithShape : public Message_Alert
0024 {
0025 public:
0026
0027 Standard_EXPORT TopoDS_AlertWithShape(const TopoDS_Shape& theShape);
0028
0029
0030 const TopoDS_Shape& GetShape() const { return myShape; }
0031
0032
0033 void SetShape(const TopoDS_Shape& theShape) { myShape = theShape; }
0034
0035
0036 Standard_EXPORT bool SupportsMerge() const override;
0037
0038
0039 Standard_EXPORT bool Merge(const occ::handle<Message_Alert>& theTarget) override;
0040
0041
0042 DEFINE_STANDARD_RTTIEXT(TopoDS_AlertWithShape, Message_Alert)
0043
0044 private:
0045 TopoDS_Shape myShape;
0046 };
0047
0048
0049 #define DEFINE_ALERT_WITH_SHAPE(Alert) \
0050 class Alert : public TopoDS_AlertWithShape \
0051 { \
0052 public: \
0053 Alert(const TopoDS_Shape& theShape) \
0054 : TopoDS_AlertWithShape(theShape) \
0055 { \
0056 } \
0057 DEFINE_STANDARD_RTTI_INLINE(Alert, TopoDS_AlertWithShape) \
0058 };
0059
0060 #endif