File indexing completed on 2026-09-21 09:16:22
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #ifndef BOPDS_CoupleOfPaveBlocks_HeaderFile
0016 #define BOPDS_CoupleOfPaveBlocks_HeaderFile
0017
0018 #include <BOPDS_PaveBlock.hxx>
0019
0020
0021 class BOPDS_CoupleOfPaveBlocks
0022 {
0023 public:
0024
0025 BOPDS_CoupleOfPaveBlocks()
0026 : myIndexInterf(-1),
0027 myIndex(-1),
0028 myTolerance(0)
0029 {
0030 }
0031
0032
0033
0034
0035 BOPDS_CoupleOfPaveBlocks(const occ::handle<BOPDS_PaveBlock>& thePB1,
0036 const occ::handle<BOPDS_PaveBlock>& thePB2)
0037 : myIndexInterf(-1),
0038 myIndex(-1),
0039 myTolerance(0)
0040 {
0041 SetPaveBlocks(thePB1, thePB2);
0042 }
0043
0044 ~BOPDS_CoupleOfPaveBlocks() = default;
0045
0046
0047
0048 void SetIndex(const int theIndex) { myIndex = theIndex; }
0049
0050
0051
0052 int Index() const { return myIndex; }
0053
0054
0055
0056 void SetIndexInterf(const int theIndex) { myIndexInterf = theIndex; }
0057
0058
0059
0060 int IndexInterf() const { return myIndexInterf; }
0061
0062
0063
0064
0065 void SetPaveBlocks(const occ::handle<BOPDS_PaveBlock>& thePB1,
0066 const occ::handle<BOPDS_PaveBlock>& thePB2)
0067 {
0068 myPB[0] = thePB1;
0069 myPB[1] = thePB2;
0070 }
0071
0072
0073 Standard_DEPRECATED("Use PaveBlock1() and PaveBlock2() instead")
0074 void PaveBlocks(occ::handle<BOPDS_PaveBlock>& thePB1, occ::handle<BOPDS_PaveBlock>& thePB2) const
0075 {
0076 thePB1 = PaveBlock1();
0077 thePB2 = PaveBlock2();
0078 }
0079
0080
0081
0082 void SetPaveBlock1(const occ::handle<BOPDS_PaveBlock>& thePB) { myPB[0] = thePB; }
0083
0084
0085
0086 const occ::handle<BOPDS_PaveBlock>& PaveBlock1() const { return myPB[0]; }
0087
0088
0089
0090 void SetPaveBlock2(const occ::handle<BOPDS_PaveBlock>& thePB) { myPB[1] = thePB; }
0091
0092
0093
0094 const occ::handle<BOPDS_PaveBlock>& PaveBlock2() const { return myPB[1]; }
0095
0096
0097
0098 void SetTolerance(const double theTol) { myTolerance = theTol; }
0099
0100
0101
0102 double Tolerance() const { return myTolerance; }
0103
0104 protected:
0105 int myIndexInterf;
0106 int myIndex;
0107 occ::handle<BOPDS_PaveBlock> myPB[2];
0108 double myTolerance;
0109 };
0110
0111 #endif