#include "Volumizer.h"
Go to the source code of this file.
Defines | |
#define | TOOL_HEIGHT 36 |
#define | MAX_LOADSTRING 100 |
Functions | |
ATOM | RegisterMainClass (HINSTANCE hInstance) |
bit of a misnomer, brightness is bias, and contrast is gain | |
BOOL | InitInstance (HINSTANCE, int) |
LRESULT CALLBACK | WndProc (HWND, UINT, WPARAM, LPARAM) |
INT_PTR CALLBACK | About (HWND, UINT, WPARAM, LPARAM) |
int APIENTRY | _tWinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) |
void | GetOpenFile () |
BOOL CALLBACK | ToolBarProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) |
Variables | |
HINSTANCE | hInst |
TCHAR | szTitle [MAX_LOADSTRING] |
TCHAR | szWindowClass [MAX_LOADSTRING] |
HWND | wnd_main |
x, y and z size of the data | |
HWND | wnd_splitter |
HWND | wnd_3d |
HWND | wnd_front |
HWND | wnd_left |
HWND | wnd_top |
HWND | wnd_histogram |
HWND | wnd_tool |
float | brightness |
float | contrast |
float | gamma |
#define MAX_LOADSTRING 100 |
App entry point and main window.
Definition at line 9 of file Volumizer.cpp.
Referenced by _tWinMain().
#define TOOL_HEIGHT 36 |
int APIENTRY _tWinMain | ( | HINSTANCE | hInstance, | |
HINSTANCE | hPrevInstance, | |||
LPTSTR | lpCmdLine, | |||
int | nCmdShow | |||
) |
The main() function.
register all window classes
Definition at line 29 of file Volumizer.cpp.
References brightness, contrast, CreateDefaultTransferFunction(), gamma, IDC_VOLUMIZER, IDS_APP_TITLE, InitInstance(), InitOptions(), MAX_LOADSTRING, RegisterHistogramClass(), RegisterMainClass(), RegisterOrthoClass(), RegisterRayClass(), RegisterSplitterClass(), RegisterSwatchClass(), szTitle, szWindowClass, wnd_3d, wnd_front, wnd_left, wnd_main, wnd_splitter, and wnd_top.
INT_PTR CALLBACK About | ( | HWND | hDlg, | |
UINT | message, | |||
WPARAM | wParam, | |||
LPARAM | lParam | |||
) |
Message handler for about box.
Definition at line 376 of file Volumizer.cpp.
Referenced by WndProc().
void GetOpenFile | ( | ) |
Open a volume data file.
Definition at line 126 of file Volumizer.cpp.
References LoadDataFile(), and wnd_main.
Referenced by WndProc().
BOOL InitInstance | ( | HINSTANCE | hInstance, | |
int | nCmdShow | |||
) |
Definition at line 105 of file Volumizer.cpp.
References hInst, szTitle, szWindowClass, and wnd_main.
Referenced by _tWinMain().
ATOM RegisterMainClass | ( | HINSTANCE | hInstance | ) |
bit of a misnomer, brightness is bias, and contrast is gain
Definition at line 84 of file Volumizer.cpp.
References IDC_VOLUMIZER, IDI_SMALL, IDI_VOLUMIZER, szWindowClass, and WndProc().
Referenced by _tWinMain().
BOOL CALLBACK ToolBarProc | ( | HWND | hwndDlg, | |
UINT | uMsg, | |||
WPARAM | wParam, | |||
LPARAM | lParam | |||
) |
Dialog procedure for the small tool bar at the top.
Definition at line 157 of file Volumizer.cpp.
References brightness, contrast, gamma, IDC_BRIGHT, IDC_BRIGHT_SLIDE, IDC_CONTRAST, IDC_CONTRAST_SLIDE, IDC_GAMMA, IDC_GAMMA_SLIDE, and ShovelData().
Referenced by WndProc().
LRESULT CALLBACK WndProc | ( | HWND | hWnd, | |
UINT | message, | |||
WPARAM | wParam, | |||
LPARAM | lParam | |||
) |
Window procedure for the main application window.
Definition at line 230 of file Volumizer.cpp.
References About(), GetOpenFile(), hInst, ID_FILE_OPEN, ID_FILE_OPTIONS, IDD_ABOUTBOX, IDD_OPTIONS, IDD_TOOL, IDM_ABOUT, IDM_EXIT, OptionsProc(), TOOL_HEIGHT, ToolBarProc(), wnd_3d, wnd_front, wnd_histogram, wnd_left, wnd_splitter, wnd_tool, and wnd_top.
Referenced by RegisterMainClass().
float brightness |
Definition at line 18 of file Volumizer.cpp.
Referenced by _tWinMain(), OogleVal(), and ToolBarProc().
float contrast |
Definition at line 18 of file Volumizer.cpp.
Referenced by _tWinMain(), OogleVal(), and ToolBarProc().
float gamma |
Definition at line 18 of file Volumizer.cpp.
Referenced by _tWinMain(), OogleVal(), and ToolBarProc().
HINSTANCE hInst |
Definition at line 12 of file Volumizer.cpp.
Referenced by EditTransferHandle(), HistogramProc(), InitInstance(), ShovelData(), and WndProc().
TCHAR szTitle[MAX_LOADSTRING] |
TCHAR szWindowClass[MAX_LOADSTRING] |
Definition at line 14 of file Volumizer.cpp.
Referenced by _tWinMain(), InitInstance(), and RegisterMainClass().
HWND wnd_3d |
Definition at line 16 of file Volumizer.cpp.
Referenced by _tWinMain(), DeInitRay(), DrawRay(), InitRay(), RayRender(), SplitterProc(), and WndProc().
HWND wnd_front |
Definition at line 16 of file Volumizer.cpp.
Referenced by _tWinMain(), BuildOrthoSlice(), DrawOrtho(), GropeForHandle(), MoveHandle(), OrthoProc(), ShiftSlice(), ShovelData(), SplitterProc(), and WndProc().
HWND wnd_histogram |
Definition at line 16 of file Volumizer.cpp.
Referenced by EditTransferHandle(), LoadFunction(), MaterialEditorProc(), SaveFunction(), ShovelData(), SplitterProc(), and WndProc().
HWND wnd_left |
Definition at line 16 of file Volumizer.cpp.
Referenced by _tWinMain(), BuildOrthoSlice(), DrawOrtho(), GropeForHandle(), MoveHandle(), OrthoProc(), ShiftSlice(), ShovelData(), SplitterProc(), and WndProc().
HWND wnd_main |
x, y and z size of the data
Implements the splitter window for partitioning the main interface area All the main UI resizing happens here.
Definition at line 16 of file Volumizer.cpp.
Referenced by _tWinMain(), GetOpenFile(), InitInstance(), RayRender(), ShovelData(), and SplitterProc().
HWND wnd_splitter |
HWND wnd_tool |
HWND wnd_top |
Definition at line 16 of file Volumizer.cpp.
Referenced by _tWinMain(), BuildOrthoSlice(), DrawOrtho(), GropeForHandle(), MoveHandle(), OrthoProc(), ShiftSlice(), ShovelData(), SplitterProc(), and WndProc().