1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
|
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#ifndef _BOPDS_CommonBlock_HeaderFile
#define _BOPDS_CommonBlock_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineHandle.hxx>
#include <Handle_BOPDS_CommonBlock.hxx>
#include <BOPDS_ListOfPaveBlock.hxx>
#include <BOPCol_ListOfInteger.hxx>
#include <MMgt_TShared.hxx>
#include <BOPCol_BaseAllocator.hxx>
#include <Handle_BOPDS_PaveBlock.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Boolean.hxx>
class BOPDS_PaveBlock;
//! The class BOPDS_CommonBlock is to store
//! the information about pave blocks that have
//! geometry coincidence (in terms of a tolerance) with
//! a) other pave block(s)
//! b) face(s)
class BOPDS_CommonBlock : public MMgt_TShared
{
public:
//! Empty contructor
Standard_EXPORT BOPDS_CommonBlock();
//! Contructor
//! <theAllocator> - the allocator to manage the memory
Standard_EXPORT BOPDS_CommonBlock(const BOPCol_BaseAllocator& theAllocator);
//! Modifier
//! Adds the pave block <aPB> to the list of pave blocks
//! of the common block
Standard_EXPORT void AddPaveBlock (const Handle(BOPDS_PaveBlock)& aPB) ;
//! Modifier
//! Adds the list of pave blocks <aLPB>
//! to the list of pave blocks
//! of the common block
Standard_EXPORT void AddPaveBlocks (const BOPDS_ListOfPaveBlock& aLPB) ;
//! Modifier
//! Adds the index of the face <aF>
//! to the list of indices of faces
//! of the common block
Standard_EXPORT void AddFace (const Standard_Integer aF) ;
//! Modifier
//! Adds the list of indices of faces <aLF>
//! to the list of indices of faces
//! of the common block
Standard_EXPORT void AddFaces (const BOPCol_ListOfInteger& aLF) ;
//! Selector
//! Returns the list of pave blocks
//! of the common block
Standard_EXPORT const BOPDS_ListOfPaveBlock& PaveBlocks() const;
//! Selector
//! Returns the list of indices of faces
//! of the common block
Standard_EXPORT const BOPCol_ListOfInteger& Faces() const;
//! Selector
//! Returns the first pave block
//! of the common block
Standard_EXPORT const Handle(BOPDS_PaveBlock)& PaveBlock1() const;
//! Selector
//! Returns the pave block that belongs
//! to the edge with index <theIx>
Standard_EXPORT Handle(BOPDS_PaveBlock)& PaveBlockOnEdge (const Standard_Integer theIndex) ;
//! Query
//! Returns true if the common block contains
//! a pave block that belongs
//! to the face with index <theIx>
Standard_EXPORT Standard_Boolean IsPaveBlockOnFace (const Standard_Integer theIndex) const;
//! Query
//! Returns true if the common block contains
//! a pave block that belongs
//! to the edge with index <theIx>
Standard_EXPORT Standard_Boolean IsPaveBlockOnEdge (const Standard_Integer theIndex) const;
//! Query
//! Returns true if the common block contains
//! a pave block that is equal to <thePB>
Standard_EXPORT Standard_Boolean Contains (const Handle(BOPDS_PaveBlock)& thePB) const;
//! Query
//! Returns true if the common block contains
//! the face with index equal to <theF>
Standard_EXPORT Standard_Boolean Contains (const Standard_Integer theF) const;
//! Modifier
//! Assign the index <theEdge> as the edge index
//! to all pave blocks of the common block
Standard_EXPORT void SetEdge (const Standard_Integer theEdge) ;
//! Selector
//! Returns the index of the edge
//! of all pave blocks of the common block
Standard_EXPORT Standard_Integer Edge() const;
Standard_EXPORT void Dump() const;
DEFINE_STANDARD_RTTI(BOPDS_CommonBlock)
protected:
BOPDS_ListOfPaveBlock myPaveBlocks;
BOPCol_ListOfInteger myFaces;
private:
};
#endif // _BOPDS_CommonBlock_HeaderFile
|