File indexing completed on 2025-01-18 10:05:23
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 virtual Standard_EXPORT Standard_Boolean SupportsMerge () const Standard_OVERRIDE;
0037
0038
0039 virtual Standard_EXPORT Standard_Boolean Merge (const Handle(Message_Alert)& theTarget) Standard_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) : TopoDS_AlertWithShape(theShape) {} \
0054 DEFINE_STANDARD_RTTI_INLINE(Alert, TopoDS_AlertWithShape) \
0055 };
0056
0057 #endif