| 118 | } |
| 119 | |
| 120 | inline_ BOOL IsCacheValid(VolumeCache& cache) |
| 121 | { |
| 122 | // We're going to do a volume-vs-model query. |
| 123 | if(cache.Model!=mCurrentModel) |
| 124 | { |
| 125 | // Cached list was for another model so we can't keep it |
| 126 | // Keep track of new owner and reset cache |
| 127 | cache.Model = mCurrentModel; |
| 128 | return FALSE; |
| 129 | } |
| 130 | else |
| 131 | { |
| 132 | // Same models, no problem |
| 133 | return TRUE; |
| 134 | } |
| 135 | } |
| 136 | }; |
| 137 | |
| 138 | #endif // __OPC_VOLUMECOLLIDER_H__ |