#include "Volumizer.h"
Go to the source code of this file.
Defines | |
#define | TOOL_HEIGHT 36 |
Functions | |
void | InitCam () |
light position (for moving it) | |
void | InitLight () |
ATOM | RegisterRayClass (HINSTANCE hInstance) |
void | InitRay () |
void | DeInitRay () |
void | DrawGrid () |
void | DrawLight () |
void | DrawRay () |
LRESULT CALLBACK | RayProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) |
Variables | |
HDC | rayHdc |
HGLRC | rayHglrc |
camera | cam |
vect | ldir |
the camera | |
vect | lpos |
light direction |
#define TOOL_HEIGHT 36 |
void DeInitRay | ( | ) |
void DrawGrid | ( | ) |
void DrawLight | ( | ) |
Draw the little yellow line indicating the light position.
Definition at line 230 of file RayWnd.cpp.
References ldir.
Referenced by DrawRay().
void DrawRay | ( | ) |
Draw the grid and light and stuff, for interactive moving.
Definition at line 246 of file RayWnd.cpp.
References cam, DrawGrid(), DrawLight(), rayHdc, rayHglrc, and wnd_3d.
Referenced by RayProc().
void InitCam | ( | ) |
light position (for moving it)
Initialize the camera.
Definition at line 19 of file RayWnd.cpp.
References cam, volx, voly, and volz.
Referenced by LoadDataFile().
void InitLight | ( | ) |
void InitRay | ( | ) |
LRESULT CALLBACK RayProc | ( | HWND | hWnd, | |
UINT | message, | |||
WPARAM | wParam, | |||
LPARAM | lParam | |||
) |
Window procedure for the big raycasting window.
left and right button: rotate the light
left button: rotate the camera
right button: zoom in/out
middle button: move the camera
Definition at line 311 of file RayWnd.cpp.
References cam, DeInitRay(), DrawRay(), InitRay(), ldir, lpos, and RayRender().
Referenced by RegisterRayClass().
ATOM RegisterRayClass | ( | HINSTANCE | hInstance | ) |
Register the ray casting window class.
Definition at line 54 of file RayWnd.cpp.
References RayProc().
Referenced by _tWinMain().
camera cam |
Definition at line 12 of file RayWnd.cpp.
Referenced by DrawRay(), InitCam(), RayProc(), and RayRender().
vect ldir |
the camera
Definition at line 13 of file RayWnd.cpp.
Referenced by DrawLight(), InitLight(), RayProc(), and ShadeStep().
vect lpos |
HDC rayHdc |
Implements the raycasting volume view
Definition at line 9 of file RayWnd.cpp.
Referenced by DeInitRay(), DrawRay(), InitRay(), and RayRender().
HGLRC rayHglrc |
Definition at line 10 of file RayWnd.cpp.
Referenced by DeInitRay(), DrawRay(), InitRay(), and RayRender().