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
7 // under the terms of the GNU Lesser General Public 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() {
47 BOPDS_CoupleOfPaveBlocks(const Handle(BOPDS_PaveBlock)& thePB1,
48 const Handle(BOPDS_PaveBlock)& thePB2) {
51 SetPaveBlocks(thePB1, thePB2);
57 ~BOPDS_CoupleOfPaveBlocks() {
65 void SetIndex(const Standard_Integer theIndex) {
74 Standard_Integer Index()const {
79 * Sets an index of an interference
81 * index of an interference
83 void SetIndexInterf(const Standard_Integer theIndex) {
84 myIndexInterf=theIndex;
88 * Returns the index of an interference
90 * index of an interference
92 Standard_Integer IndexInterf()const {
103 void SetPaveBlocks(const Handle(BOPDS_PaveBlock)& thePB1,
104 const Handle(BOPDS_PaveBlock)& thePB2) {
110 * Returns pave blocks
112 * the first pave block
114 * the second pave block
116 void PaveBlocks(Handle(BOPDS_PaveBlock)& thePB1,
117 Handle(BOPDS_PaveBlock)& thePB2) const {
123 * Sets the first pave block
125 * the first pave block
127 void SetPaveBlock1(const Handle(BOPDS_PaveBlock)& thePB) {
131 * Returns the first pave block
133 * the first pave block
135 const Handle(BOPDS_PaveBlock)& PaveBlock1()const {
140 * Sets the second pave block
142 * the second pave block
144 void SetPaveBlock2(const Handle(BOPDS_PaveBlock)& thePB) {
149 * Returns the second pave block
151 * the second pave block
153 const Handle(BOPDS_PaveBlock)& PaveBlock2()const {
158 Standard_Integer myIndexInterf;
159 Standard_Integer myIndex;
160 Handle(BOPDS_PaveBlock) myPB[2];