| 47 | \*---------------------------------------------------------------------------*/ |
| 48 | |
| 49 | class labelToFace |
| 50 | : |
| 51 | public topoSetSource |
| 52 | { |
| 53 | |
| 54 | // Private data |
| 55 | |
| 56 | //- Add usage string |
| 57 | static addToUsageTable usage_; |
| 58 | |
| 59 | //- Cell labels read from dictionary |
| 60 | labelList labels_; |
| 61 | |
| 62 | |
| 63 | // Private Member Functions |
| 64 | |
| 65 | void combine(topoSet& set, const bool add) const; |
| 66 | |
| 67 | |
| 68 | public: |
| 69 | |
| 70 | //- Runtime type information |
| 71 | TypeName("labelToFace"); |
| 72 | |
| 73 | // Constructors |
| 74 | |
| 75 | //- Construct from components |
| 76 | labelToFace |
| 77 | ( |
| 78 | const polyMesh& mesh, |
| 79 | const labelList& labels |
| 80 | ); |
| 81 | |
| 82 | //- Construct from dictionary |
| 83 | labelToFace |
| 84 | ( |
| 85 | const polyMesh& mesh, |
| 86 | const dictionary& dict |
| 87 | ); |
| 88 | |
| 89 | //- Construct from Istream |
| 90 | labelToFace |
| 91 | ( |
| 92 | const polyMesh& mesh, |
| 93 | Istream& |
| 94 | ); |
| 95 | |
| 96 | |
| 97 | //- Destructor |
| 98 | virtual ~labelToFace(); |
| 99 | |
| 100 | |
| 101 | // Member Functions |
| 102 | |
| 103 | virtual sourceType setType() const |
| 104 | { |
| 105 | return FACESETSOURCE; |
| 106 | } |