searchableSurfaceWithGaps.H
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043 #ifndef searchableSurfaceWithGaps_H
00044 #define searchableSurfaceWithGaps_H
00045
00046 #include "searchableSurface.H"
00047 #include "UPtrList.H"
00048 #include "Pair.H"
00049
00050
00051
00052 namespace Foam
00053 {
00054
00055
00056
00057
00058
00059
00060
00061 class searchableSurfaceWithGaps
00062 :
00063 public searchableSurface
00064 {
00065 private:
00066
00067
00068
00069
00070 const scalar gap_;
00071
00072
00073 UPtrList<searchableSurface> subGeom_;
00074
00075
00076
00077
00078 Pair<vector> offsetVecs(const point&, const point&) const;
00079
00080 void offsetVecs
00081 (
00082 const pointField& start,
00083 const pointField& end,
00084 pointField& offset0,
00085 pointField& offset1
00086 ) const;
00087
00088 static label countMisses
00089 (
00090 const List<pointIndexHit>& info,
00091 labelList& missMap
00092 );
00093
00094 static label countMisses
00095 (
00096 const List<pointIndexHit>& plusInfo,
00097 const List<pointIndexHit>& minInfo,
00098 labelList& missMap
00099 );
00100
00101
00102
00103 searchableSurfaceWithGaps(const searchableSurfaceWithGaps&);
00104
00105
00106 void operator=(const searchableSurfaceWithGaps&);
00107
00108
00109 public:
00110
00111
00112 TypeName("searchableSurfaceWithGaps");
00113
00114
00115
00116
00117
00118 searchableSurfaceWithGaps
00119 (
00120 const IOobject& io,
00121 const dictionary& dict
00122 );
00123
00124
00125
00126 virtual ~searchableSurfaceWithGaps();
00127
00128
00129
00130
00131 const searchableSurface& surface() const
00132 {
00133 return subGeom_[0];
00134 }
00135
00136
00137 virtual const wordList& regions() const
00138 {
00139 return surface().regions();
00140 }
00141
00142
00143 virtual bool hasVolumeType() const
00144 {
00145 return surface().hasVolumeType();
00146 }
00147
00148
00149 virtual label size() const
00150 {
00151 return surface().size();
00152 }
00153
00154
00155
00156
00157
00158
00159 virtual void findNearest
00160 (
00161 const pointField& sample,
00162 const scalarField& nearestDistSqr,
00163 List<pointIndexHit>& info
00164 ) const
00165 {
00166 surface().findNearest
00167 (
00168 sample,
00169 nearestDistSqr,
00170 info
00171 );
00172 }
00173
00174 virtual void findLine
00175 (
00176 const pointField& start,
00177 const pointField& end,
00178 List<pointIndexHit>&
00179 ) const;
00180
00181 virtual void findLineAny
00182 (
00183 const pointField& start,
00184 const pointField& end,
00185 List<pointIndexHit>&
00186 ) const;
00187
00188
00189 virtual void findLineAll
00190 (
00191 const pointField& start,
00192 const pointField& end,
00193 List<List<pointIndexHit> >&
00194 ) const;
00195
00196
00197 virtual void getRegion
00198 (
00199 const List<pointIndexHit>& info,
00200 labelList& region
00201 ) const
00202 {
00203 surface().getRegion(info, region);
00204 }
00205
00206
00207 virtual void getNormal
00208 (
00209 const List<pointIndexHit>& info,
00210 vectorField& normal
00211 ) const
00212 {
00213 surface().getNormal(info, normal);
00214 }
00215
00216
00217
00218 virtual void getVolumeType
00219 (
00220 const pointField& samples,
00221 List<volumeType>& info
00222 ) const
00223 {
00224 surface().getVolumeType(samples, info);
00225 }
00226
00227
00228
00229
00230 bool writeData(Ostream& os) const
00231 {
00232 return surface().writeData(os);
00233 }
00234
00235 };
00236
00237
00238
00239
00240 }
00241
00242
00243
00244 #endif
00245
00246
Copyright © 2000-2009 OpenCFD Ltd