searchableSurfaceCollection.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 #ifndef searchableSurfaceCollection_H
00038 #define searchableSurfaceCollection_H
00039
00040 #include "searchableSurface.H"
00041 #include "treeBoundBox.H"
00042 #include "coordinateSystem.H"
00043 #include "UPtrList.H"
00044 #include "Switch.H"
00045
00046
00047
00048 namespace Foam
00049 {
00050
00051
00052
00053
00054
00055
00056
00057 class searchableSurfaceCollection
00058 :
00059 public searchableSurface
00060 {
00061 private:
00062
00063
00064
00065
00066
00067
00068 wordList instance_;
00069
00070
00071 vectorField scale_;
00072
00073
00074 PtrList<coordinateSystem> transform_;
00075
00076 UPtrList<searchableSurface> subGeom_;
00077
00078 Switch mergeSubRegions_;
00079
00080
00081 mutable wordList regions_;
00082
00083 mutable labelList regionOffset_;
00084
00085
00086
00087
00088
00089
00090 void findNearest
00091 (
00092 const pointField& samples,
00093 scalarField& minDistSqr,
00094 List<pointIndexHit>& nearestInfo,
00095 labelList& nearestSurf
00096 ) const;
00097
00098
00099
00100 searchableSurfaceCollection(const searchableSurfaceCollection&);
00101
00102
00103 void operator=(const searchableSurfaceCollection&);
00104
00105
00106 public:
00107
00108
00109 TypeName("searchableSurfaceCollection");
00110
00111
00112
00113
00114
00115 searchableSurfaceCollection
00116 (
00117 const IOobject& io,
00118 const dictionary& dict
00119 );
00120
00121
00122
00123 virtual ~searchableSurfaceCollection();
00124
00125
00126
00127
00128 virtual const wordList& regions() const;
00129
00130
00131 virtual bool hasVolumeType() const
00132 {
00133 return false;
00134 }
00135
00136
00137 virtual label size() const;
00138
00139
00140
00141
00142 virtual void findNearest
00143 (
00144 const pointField& sample,
00145 const scalarField& nearestDistSqr,
00146 List<pointIndexHit>&
00147 ) const;
00148
00149 virtual void findLine
00150 (
00151 const pointField& start,
00152 const pointField& end,
00153 List<pointIndexHit>&
00154 ) const;
00155
00156 virtual void findLineAny
00157 (
00158 const pointField& start,
00159 const pointField& end,
00160 List<pointIndexHit>&
00161 ) const;
00162
00163
00164 virtual void findLineAll
00165 (
00166 const pointField& start,
00167 const pointField& end,
00168 List<List<pointIndexHit> >&
00169 ) const;
00170
00171
00172 virtual void getRegion
00173 (
00174 const List<pointIndexHit>&,
00175 labelList& region
00176 ) const;
00177
00178
00179 virtual void getNormal
00180 (
00181 const List<pointIndexHit>&,
00182 vectorField& normal
00183 ) const;
00184
00185
00186
00187 virtual void getVolumeType
00188 (
00189 const pointField&,
00190 List<volumeType>&
00191 ) const;
00192
00193
00194
00195
00196 bool writeData(Ostream&) const
00197 {
00198 notImplemented
00199 (
00200 "searchableSurfaceCollection::writeData(Ostream&) const"
00201 );
00202 return false;
00203 }
00204
00205 };
00206
00207
00208
00209
00210 }
00211
00212
00213
00214 #endif
00215
00216
Copyright © 2000-2009 OpenCFD Ltd