1 | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ |
---|
2 | /* |
---|
3 | * ---------------------------------------------------------------------- |
---|
4 | * MainWindow.h: implementation of the main transfer function gui window |
---|
5 | * |
---|
6 | * ====================================================================== |
---|
7 | * AUTHOR: Wei Qiao <qiaow@purdue.edu> |
---|
8 | * Purdue Rendering and Perceptualization Lab (PURPL) |
---|
9 | * |
---|
10 | * Copyright (c) 2004-2006 Purdue Research Foundation |
---|
11 | * |
---|
12 | * See the file "license.terms" for information on usage and |
---|
13 | * redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
---|
14 | * ====================================================================== |
---|
15 | */ |
---|
16 | |
---|
17 | |
---|
18 | #ifndef _MAIN_TF_WINDOW_H |
---|
19 | #define _MAIN_TF_WINDOW_H |
---|
20 | |
---|
21 | #include "glui.h" |
---|
22 | #include "ControlPoint.h" |
---|
23 | |
---|
24 | extern int mainWindow; |
---|
25 | |
---|
26 | extern int main_winx, main_winy; |
---|
27 | extern int cm_winx, cm_winy; |
---|
28 | extern int unitWidth, unitHeight; |
---|
29 | |
---|
30 | class MainTransferFunctionWindow{ |
---|
31 | |
---|
32 | public: |
---|
33 | static ControlPoint* selectPoint; |
---|
34 | |
---|
35 | static void mainMouse(int button, int state, int x, int y); |
---|
36 | static void mainMotion(int x, int y); |
---|
37 | static void mainIdle(); |
---|
38 | static void mainKeyboard(unsigned char key, int x, int y); |
---|
39 | static void mainDestroy(); |
---|
40 | static void mainReshape(int x, int y); |
---|
41 | static void mainDisplay(); |
---|
42 | static void mainInit(); |
---|
43 | |
---|
44 | static void loadFile(char* fileName); |
---|
45 | static void saveFile(char* fileName); |
---|
46 | static void changeState(int arg); |
---|
47 | |
---|
48 | MainTransferFunctionWindow(); |
---|
49 | virtual ~MainTransferFunctionWindow(); |
---|
50 | |
---|
51 | }; |
---|
52 | |
---|
53 | #endif |
---|