Go to the documentation of this file.00001 #ifndef TRANSFERFUNCTIONWINDOW_HPP
00002 #define TRANSFERFUNCTIONWINDOW_HPP
00003
00004 #include "ControlPoint.hpp"
00005
00006 class TransferFunctionWindow {
00007 private:
00008 static int width, height, theight;
00009 static float selected_x, selected_y;
00010 static float selected_dx, selected_dy;
00011 static float selected_old_x, selected_old_y;
00012 static bool selected, dragging;
00013 public:
00014 static ControlPoint *selected_point;
00015 static int window_id;
00016 public:
00017 static void transferDisplay(void);
00018 static void transferIdle(void);
00019 static void transferInit(void);
00020 static void transferKeyboard(unsigned char key, int x, int y);
00021 static void transferMotion(int x, int y);
00022 static void transferMouse(int button, int state, int x, int y);
00023 static void transferReshape(int x, int y);
00024
00025 static void drawHistogram(void);
00026 static void drawGradient(void);
00027 static void drawControlPoints(void);
00028
00029 static void loadTransferFunction(const char *filename);
00030 static void saveTransferFunction(const char *filename);
00031 };
00032
00033 #endif