File indexing completed on 2025-01-18 10:05:25
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _TopOpeBRepBuild_GTopo_HeaderFile
0018 #define _TopOpeBRepBuild_GTopo_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022
0023 #include <TopAbs_ShapeEnum.hxx>
0024 #include <TopOpeBRepDS_Config.hxx>
0025 #include <Standard_Integer.hxx>
0026 #include <TopAbs_State.hxx>
0027 #include <Standard_OStream.hxx>
0028
0029
0030 class TopOpeBRepBuild_GTopo
0031 {
0032 public:
0033
0034 DEFINE_STANDARD_ALLOC
0035
0036
0037 Standard_EXPORT TopOpeBRepBuild_GTopo();
0038
0039 Standard_EXPORT TopOpeBRepBuild_GTopo (const Standard_Boolean II, const Standard_Boolean IN, const Standard_Boolean IO,
0040 const Standard_Boolean NI, const Standard_Boolean NN, const Standard_Boolean NO,
0041 const Standard_Boolean OI, const Standard_Boolean ON, const Standard_Boolean OO,
0042 const TopAbs_ShapeEnum t1, const TopAbs_ShapeEnum t2,
0043 const TopOpeBRepDS_Config C1, const TopOpeBRepDS_Config C2);
0044
0045 Standard_EXPORT void Reset();
0046
0047 Standard_EXPORT void Set (const Standard_Boolean II, const Standard_Boolean IN, const Standard_Boolean IO, const Standard_Boolean NI, const Standard_Boolean NN, const Standard_Boolean NO, const Standard_Boolean OI, const Standard_Boolean ON, const Standard_Boolean OO);
0048
0049 Standard_EXPORT void Type (TopAbs_ShapeEnum& t1, TopAbs_ShapeEnum& t2) const;
0050
0051 Standard_EXPORT void ChangeType (const TopAbs_ShapeEnum t1, const TopAbs_ShapeEnum t2);
0052
0053 Standard_EXPORT TopOpeBRepDS_Config Config1() const;
0054
0055 Standard_EXPORT TopOpeBRepDS_Config Config2() const;
0056
0057 Standard_EXPORT void ChangeConfig (const TopOpeBRepDS_Config C1, const TopOpeBRepDS_Config C2);
0058
0059 Standard_EXPORT Standard_Boolean Value (const TopAbs_State s1, const TopAbs_State s2) const;
0060
0061 Standard_EXPORT Standard_Boolean Value (const Standard_Integer I1, const Standard_Integer I2) const;
0062
0063 Standard_EXPORT Standard_Boolean Value (const Standard_Integer II) const;
0064
0065 Standard_EXPORT void ChangeValue (const Standard_Integer i1, const Standard_Integer i2, const Standard_Boolean b);
0066
0067 Standard_EXPORT void ChangeValue (const TopAbs_State s1, const TopAbs_State s2, const Standard_Boolean b);
0068
0069 Standard_EXPORT Standard_Integer GIndex (const TopAbs_State S) const;
0070
0071 Standard_EXPORT TopAbs_State GState (const Standard_Integer I) const;
0072
0073 Standard_EXPORT void Index (const Standard_Integer II, Standard_Integer& i1, Standard_Integer& i2) const;
0074
0075 Standard_EXPORT void DumpVal (Standard_OStream& OS, const TopAbs_State s1, const TopAbs_State s2) const;
0076
0077 Standard_EXPORT void DumpType (Standard_OStream& OS) const;
0078
0079 Standard_EXPORT static void DumpSSB (Standard_OStream& OS, const TopAbs_State s1, const TopAbs_State s2, const Standard_Boolean b);
0080
0081 Standard_EXPORT virtual void Dump (Standard_OStream& OS, const Standard_Address s = NULL) const;
0082
0083 Standard_EXPORT void StatesON (TopAbs_State& s1, TopAbs_State& s2) const;
0084
0085 Standard_EXPORT Standard_Boolean IsToReverse1() const;
0086
0087 Standard_EXPORT Standard_Boolean IsToReverse2() const;
0088
0089 Standard_EXPORT void SetReverse (const Standard_Boolean rev);
0090
0091 Standard_EXPORT Standard_Boolean Reverse() const;
0092
0093 Standard_EXPORT TopOpeBRepBuild_GTopo CopyPermuted() const;
0094
0095
0096
0097
0098 protected:
0099
0100
0101
0102
0103
0104 private:
0105
0106
0107
0108 Standard_Boolean mycases[3][3];
0109 TopAbs_ShapeEnum myt1;
0110 TopAbs_ShapeEnum myt2;
0111 TopOpeBRepDS_Config myConfig1;
0112 TopOpeBRepDS_Config myConfig2;
0113 Standard_Boolean myReverseForce;
0114 Standard_Boolean myReverseValue;
0115
0116
0117 };
0118
0119
0120
0121
0122
0123
0124
0125 #endif