| 259 | } |
| 260 | |
| 261 | ForestCell* ForestData::_findOrCreateBucket( const Point3F &pos ) |
| 262 | { |
| 263 | // Look it up. |
| 264 | const Point2I key = _getBucketKey( pos ); |
| 265 | BucketTable::Iterator iter = mBuckets.find( key ); |
| 266 | |
| 267 | ForestCell *bucket = NULL; |
| 268 | if ( iter != mBuckets.end() ) |
| 269 | bucket = iter->value; |
| 270 | else |
| 271 | { |
| 272 | bucket = new ForestCell( RectF( key.x, key.y, BUCKET_DIM, BUCKET_DIM ) ); |
| 273 | mBuckets.insertUnique( key, bucket ); |
| 274 | mIsDirty = true; |
| 275 | } |
| 276 | |
| 277 | return bucket; |
| 278 | } |
| 279 | |
| 280 | void ForestData::_onItemReload() |
| 281 | { |
nothing calls this directly
no test coverage detected