treeDataCell.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 treeDataCell_H
00038 #define treeDataCell_H
00039
00040 #include "treeBoundBoxList.H"
00041
00042
00043
00044 namespace Foam
00045 {
00046
00047
00048 class primitiveMesh;
00049 template<class Type> class indexedOctree;
00050
00051
00052
00053
00054
00055 class treeDataCell
00056 {
00057
00058
00059 const primitiveMesh& mesh_;
00060
00061
00062 const labelList cellLabels_;
00063
00064
00065 const bool cacheBb_;
00066
00067
00068 treeBoundBoxList bbs_;
00069
00070
00071
00072
00073
00074 treeBoundBox calcCellBb(const label cellI) const;
00075
00076 public:
00077
00078
00079 ClassName("treeDataCell");
00080
00081
00082
00083
00084
00085 treeDataCell
00086 (
00087 const bool cacheBb,
00088 const primitiveMesh&,
00089 const labelList&
00090 );
00091
00092
00093 treeDataCell(const bool cacheBb, const primitiveMesh&);
00094
00095
00096
00097
00098
00099
00100 const labelList& cellLabels() const
00101 {
00102 return cellLabels_;
00103 }
00104
00105 const primitiveMesh& mesh() const
00106 {
00107 return mesh_;
00108 }
00109
00110
00111 label size() const
00112 {
00113 return cellLabels_.size();
00114 }
00115
00116
00117
00118 pointField points() const;
00119
00120
00121
00122
00123
00124
00125 label getVolumeType
00126 (
00127 const indexedOctree<treeDataCell>&,
00128 const point&
00129 ) const
00130 {
00131 notImplemented
00132 (
00133 "treeDataCell::getVolumeType"
00134 "(const indexedOctree<treeDataCell>&, const point&)"
00135 );
00136 return -1;
00137 }
00138
00139
00140 bool overlaps
00141 (
00142 const label index,
00143 const treeBoundBox& sampleBb
00144 ) const;
00145
00146
00147
00148 void findNearest
00149 (
00150 const labelList& indices,
00151 const point& sample,
00152
00153 scalar& nearestDistSqr,
00154 label& nearestIndex,
00155 point& nearestPoint
00156 ) const;
00157
00158
00159
00160 void findNearest
00161 (
00162 const labelList& indices,
00163 const linePointRef& ln,
00164
00165 treeBoundBox& tightest,
00166 label& minIndex,
00167 point& linePoint,
00168 point& nearestPoint
00169 ) const
00170 {
00171 notImplemented
00172 (
00173 "treeDataCell::findNearest"
00174 "(const labelList&, const linePointRef&, ..)"
00175 );
00176 }
00177
00178
00179
00180 bool intersects
00181 (
00182 const label index,
00183 const point& start,
00184 const point& end,
00185 point& result
00186 ) const;
00187
00188 };
00189
00190
00191
00192
00193 }
00194
00195
00196
00197
00198 #endif
00199
00200
Copyright © 2000-2009 OpenCFD Ltd