1 // Created by: Peter KURNEV
2 // Copyright (c) 1999-2014 OPEN CASCADE SAS
4 // This file is part of Open CASCADE Technology software library.
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License version 2.1 as published
8 // by the Free Software Foundation, with special exception defined in the file
9 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10 // distribution for complete text of the license and disclaimer of any warranty.
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
15 #ifndef BOPDS_CoupleOfPaveBlocks_HeaderFile
16 #define BOPDS_CoupleOfPaveBlocks_HeaderFile
18 #include <BOPDS_PaveBlock.hxx>
21 * The Class BOPDS_CoupleOfPaveBlocks is to store
22 * the information about two pave blocks
23 * and some satellite information
26 //=======================================================================
27 //class : BOPDS_CoupleOfPaveBlocks
29 //=======================================================================
30 class BOPDS_CoupleOfPaveBlocks {
35 BOPDS_CoupleOfPaveBlocks() :
48 BOPDS_CoupleOfPaveBlocks(const Handle(BOPDS_PaveBlock)& thePB1,
49 const Handle(BOPDS_PaveBlock)& thePB2) :
54 SetPaveBlocks(thePB1, thePB2);
60 ~BOPDS_CoupleOfPaveBlocks() {
68 void SetIndex(const Standard_Integer theIndex) {
77 Standard_Integer Index()const {
82 * Sets an index of an interference
84 * index of an interference
86 void SetIndexInterf(const Standard_Integer theIndex) {
87 myIndexInterf=theIndex;
91 * Returns the index of an interference
93 * index of an interference
95 Standard_Integer IndexInterf()const {
106 void SetPaveBlocks(const Handle(BOPDS_PaveBlock)& thePB1,
107 const Handle(BOPDS_PaveBlock)& thePB2) {
113 * Returns pave blocks
115 * the first pave block
117 * the second pave block
119 void PaveBlocks(Handle(BOPDS_PaveBlock)& thePB1,
120 Handle(BOPDS_PaveBlock)& thePB2) const {
126 * Sets the first pave block
128 * the first pave block
130 void SetPaveBlock1(const Handle(BOPDS_PaveBlock)& thePB) {
134 * Returns the first pave block
136 * the first pave block
138 const Handle(BOPDS_PaveBlock)& PaveBlock1()const {
143 * Sets the second pave block
145 * the second pave block
147 void SetPaveBlock2(const Handle(BOPDS_PaveBlock)& thePB) {
152 * Returns the second pave block
154 * the second pave block
156 const Handle(BOPDS_PaveBlock)& PaveBlock2()const {
161 * Sets the tolerance associated with this couple
163 void SetTolerance(const Standard_Real theTol) {
164 myTolerance = theTol;
168 * Returns the tolerance associated with this couple
170 Standard_Real Tolerance()const {
175 Standard_Integer myIndexInterf;
176 Standard_Integer myIndex;
177 Handle(BOPDS_PaveBlock) myPB[2];
178 Standard_Real myTolerance;