Commit 4cce8a2
Wire up occlusion generation and enhance transfer function UI
Connected the ImGui UI to actual computation functionality:
Occlusion Generation:
- Wired "Generate Occlusion Map" button to VolumeManager::calcOcclusion()
- Added volume existence checking before computation
- CPU-based occlusion computation (fallback for macOS without CUDA)
- Display occlusion volume dimensions after generation
- Added informative console output with checkmarks for success/failure
- Updated UI note to indicate CPU computation mode
Transfer Function Enhancements:
- Added preset buttons: Reset, High Contrast, Bright
- Improved layout with proper spacing and button sizing
- Console feedback when presets are applied
- Better visual organization of controls
The viewer now has functional volume loading, occlusion generation,
and transfer function controls - all core features are operational!
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 5b53de4 commit 4cce8a2
1 file changed
+42
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
149 | 173 | | |
150 | | - | |
| 174 | + | |
151 | 175 | | |
152 | 176 | | |
153 | 177 | | |
| |||
158 | 182 | | |
159 | 183 | | |
160 | 184 | | |
161 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
162 | 189 | | |
163 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
164 | 204 | | |
165 | 205 | | |
166 | 206 | | |
| |||
0 commit comments