C:/Users/thebigMuh/Documents/Visual Studio 2005/Projects/Volumizer/Volumizer/RayWnd.cpp File Reference

#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 Documentation

#define TOOL_HEIGHT   36


Function Documentation

void DeInitRay (  ) 

Definition at line 153 of file RayWnd.cpp.

References rayHdc, rayHglrc, and wnd_3d.

Referenced by RayProc().

void DrawGrid (  ) 

Draw the x, y and z background grids.

Definition at line 177 of file RayWnd.cpp.

References volx, voly, and volz.

Referenced by DrawRay().

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 (  ) 

Initialize our light.

Definition at line 40 of file RayWnd.cpp.

References ldir, and lpos.

Referenced by LoadDataFile().

void InitRay (  ) 

Initialize GL for the window.

Definition at line 78 of file RayWnd.cpp.

References rayHdc, rayHglrc, and wnd_3d.

Referenced by RayProc().

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().


Variable Documentation

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

light direction

Definition at line 14 of file RayWnd.cpp.

Referenced by InitLight(), and RayProc().

HDC rayHdc

RayWnd.cpp

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().


Generated on Wed Dec 5 12:07:30 2007 for Volumizer by  doxygen 1.5.4