Utility for viewing a dataset. More...
#include <DatasetViewer.hpp>
Inherits CanvasListener.
Public Member Functions | |
| void | goToNext () |
| void | goToPrevious () |
| void | load () |
| void | onCanvasEvent (const CanvasEvent &event) |
| void | onCanvasEventButton (const CanvasEvent &event) |
| void | onCanvasEventDisplay (const CanvasEvent &event) |
| void | onCanvasEventKey (const CanvasEvent &event) |
| void | setCanvas (Canvas *canvas) |
| void | setDataset (Dataset *dataset) |
Private Attributes | |
| Dataset * | dataset |
| GLenum | type |
| int | slice |
| int | width |
| int | height |
| int | depth |
| Canvas * | canvas |
Utility for viewing a dataset.
| void goToNext | ( | ) |
Shows the next slice in the dataset.
| void goToPrevious | ( | ) |
Shows the previous slice in the dataset.
| void load | ( | ) |
Copies attributes from the dataset and adds listeners to the canvas.
| void onCanvasEvent | ( | const CanvasEvent & | event | ) |
Handles the incoming canvas event.
| void onCanvasEventButton | ( | const CanvasEvent & | event | ) |
Prints the value in the volume under the cursor.
| void onCanvasEventDisplay | ( | const CanvasEvent & | event | ) |
Draws a slice to the screen.
| void onCanvasEventKey | ( | const CanvasEvent & | event | ) |
Changes the slice.
1.6.3