File indexing completed on 2025-01-18 10:03:04
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
0022
0023
0024
0025
0026
0027
0028
0029
0030 class BOPDS_CoupleOfPaveBlocks {
0031 public:
0032
0033
0034
0035 BOPDS_CoupleOfPaveBlocks() :
0036 myIndexInterf(-1),
0037 myIndex(-1),
0038 myTolerance(0)
0039 {}
0040
0041
0042
0043
0044
0045
0046
0047
0048 BOPDS_CoupleOfPaveBlocks(const Handle(BOPDS_PaveBlock)& thePB1,
0049 const Handle(BOPDS_PaveBlock)& thePB2) :
0050 myIndexInterf(-1),
0051 myIndex(-1),
0052 myTolerance(0)
0053 {
0054 SetPaveBlocks(thePB1, thePB2);
0055 }
0056
0057
0058
0059
0060 ~BOPDS_CoupleOfPaveBlocks() {
0061 }
0062
0063
0064
0065
0066
0067
0068 void SetIndex(const Standard_Integer theIndex) {
0069 myIndex=theIndex;
0070 }
0071
0072
0073
0074
0075
0076
0077 Standard_Integer Index()const {
0078 return myIndex;
0079 }
0080
0081
0082
0083
0084
0085
0086 void SetIndexInterf(const Standard_Integer theIndex) {
0087 myIndexInterf=theIndex;
0088 }
0089
0090
0091
0092
0093
0094
0095 Standard_Integer IndexInterf()const {
0096 return myIndexInterf;
0097 }
0098
0099
0100
0101
0102
0103
0104
0105
0106 void SetPaveBlocks(const Handle(BOPDS_PaveBlock)& thePB1,
0107 const Handle(BOPDS_PaveBlock)& thePB2) {
0108 myPB[0]=thePB1;
0109 myPB[1]=thePB2;
0110 }
0111
0112
0113
0114
0115
0116
0117
0118
0119 void PaveBlocks(Handle(BOPDS_PaveBlock)& thePB1,
0120 Handle(BOPDS_PaveBlock)& thePB2) const {
0121 thePB1=myPB[0];
0122 thePB2=myPB[1];
0123 }
0124
0125
0126
0127
0128
0129
0130 void SetPaveBlock1(const Handle(BOPDS_PaveBlock)& thePB) {
0131 myPB[0]=thePB;
0132 }
0133
0134
0135
0136
0137
0138 const Handle(BOPDS_PaveBlock)& PaveBlock1()const {
0139 return myPB[0];
0140 }
0141
0142
0143
0144
0145
0146
0147 void SetPaveBlock2(const Handle(BOPDS_PaveBlock)& thePB) {
0148 myPB[1]=thePB;
0149 }
0150
0151
0152
0153
0154
0155
0156 const Handle(BOPDS_PaveBlock)& PaveBlock2()const {
0157 return myPB[1];
0158 }
0159
0160
0161
0162
0163 void SetTolerance(const Standard_Real theTol) {
0164 myTolerance = theTol;
0165 }
0166
0167
0168
0169
0170 Standard_Real Tolerance()const {
0171 return myTolerance;
0172 }
0173
0174 protected:
0175 Standard_Integer myIndexInterf;
0176 Standard_Integer myIndex;
0177 Handle(BOPDS_PaveBlock) myPB[2];
0178 Standard_Real myTolerance;
0179 };
0180
0181 #endif