Warning, file /include/opencascade/BOPDS_ShapeInfo.hxx was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #ifndef _BOPDS_ShapeInfo_HeaderFile
0016 #define _BOPDS_ShapeInfo_HeaderFile
0017
0018 #include <Standard.hxx>
0019 #include <Standard_DefineAlloc.hxx>
0020 #include <Standard_Handle.hxx>
0021
0022 #include <Bnd_Box.hxx>
0023 #include <NCollection_BaseAllocator.hxx>
0024 #include <Standard_Integer.hxx>
0025 #include <Standard_Boolean.hxx>
0026 #include <TColStd_ListOfInteger.hxx>
0027 #include <TopoDS_Shape.hxx>
0028
0029
0030
0031 class BOPDS_ShapeInfo
0032 {
0033 public:
0034 DEFINE_STANDARD_ALLOC
0035
0036
0037 BOPDS_ShapeInfo();
0038
0039 virtual ~BOPDS_ShapeInfo();
0040
0041
0042
0043 BOPDS_ShapeInfo(const Handle(NCollection_BaseAllocator)& theAllocator);
0044
0045
0046
0047 void SetShape(const TopoDS_Shape& theS);
0048
0049
0050
0051 const TopoDS_Shape& Shape() const;
0052
0053
0054
0055 void SetShapeType(const TopAbs_ShapeEnum theType);
0056
0057
0058
0059 TopAbs_ShapeEnum ShapeType() const;
0060
0061
0062
0063 void SetBox(const Bnd_Box& theBox);
0064
0065
0066
0067 const Bnd_Box& Box() const;
0068
0069
0070
0071 Bnd_Box& ChangeBox();
0072
0073
0074
0075 const TColStd_ListOfInteger& SubShapes() const;
0076
0077
0078
0079 TColStd_ListOfInteger& ChangeSubShapes();
0080
0081
0082
0083
0084 Standard_Boolean HasSubShape(const Standard_Integer theI) const;
0085
0086 Standard_Boolean HasReference() const;
0087
0088
0089
0090 void SetReference(const Standard_Integer theI);
0091
0092
0093
0094 Standard_Integer Reference() const;
0095
0096
0097
0098 Standard_Boolean HasBRep() const;
0099
0100
0101
0102
0103
0104 Standard_Boolean IsInterfering() const;
0105
0106
0107
0108 Standard_Boolean HasFlag() const;
0109
0110
0111
0112
0113 Standard_Boolean HasFlag(Standard_Integer& theFlag) const;
0114
0115
0116
0117 void SetFlag(const Standard_Integer theI);
0118
0119
0120 Standard_Integer Flag() const;
0121
0122 Standard_EXPORT void Dump() const;
0123
0124 protected:
0125 TopoDS_Shape myShape;
0126 TopAbs_ShapeEnum myType;
0127 Bnd_Box myBox;
0128 TColStd_ListOfInteger mySubShapes;
0129 Standard_Integer myReference;
0130 Standard_Integer myFlag;
0131
0132 private:
0133 };
0134
0135 #include <BOPDS_ShapeInfo.lxx>
0136
0137 #endif