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