#include <GL/glew.h>
#include <GL/glui.h>
#include <GL/openglut.h>
#include <GL/GLU.h>
#include <GL/GL.h>
#include <il.h>
#include <windows.h>
#include <stdlib.h>
#include <io.h>
#include <iostream>
#include <sstream>
#include <string>
#include <commdlg.h>
#include "BottomSubWindow.hpp"
#include "RightSubWindow.hpp"
#include "TransferFunctionWindow.hpp"
#include "ColorPickerWindow.hpp"
#include "GUIConnection.hpp"
#include "Shader.hpp"
#include "Volume.hpp"
Defines | |
#define | GLUI_OPENGLUT |
Functions | |
void | mainDisplay (void) |
Main display method. | |
void | mainIdle (void) |
Main Update method. | |
void | mainInit (void) |
Main initialization method. | |
void | mainKeyboard (unsigned char key, int x, int y) |
Processes keyboard input. | |
void | mainMotion (int x, int y) |
Processes mouse movement. | |
void | mainMouse (int button, int state, int x, int y) |
Processes mouse clicks. | |
void | mainReshape (int width, int height) |
Processes window resize. | |
const int | getNextPowerOfTwo (const int iNumber) |
Gets the next power of two. | |
void | drawVertex (float x, float y, float z) |
Draw a vertex for the block. | |
void | drawQuads (float x, float y, float z) |
Draw a block. | |
void | render2DView (void) |
Renders the 2D view. | |
void | initializeGLUT (void) |
Initializes GLUT. | |
void | initializeGLEW (void) |
Initializes GLEW. | |
void | initializeDevIL (void) |
Initializes the DevIL. | |
void | initializeGLUI (void) |
Initializes GLUI. | |
std::string | str_replace (std::string rep, std::string wit, std::string in) |
String replace. | |
void | loadData (std::string data) |
Loads data. | |
int | main (int argc, char **argv) |
Main entry-point for this application. | |
void | drawVolumeCube (void) |
Draw volume cube. | |
Variables | |
int | windowID_main |
GLUI * | glui_bottom |
Volume | vis_volume |
GLuint | vis_texture |
GLuint | vis_fbo |
GLuint | vis_transfer_tex |
Shader * | vis_transfer_shader |
GLuint | vis_volumefbo |
GLuint | vis_volume_tex [2] |
Shader * | vis_volume_shader |
float | vis_step_size |
float | vis_coord |
float | rot_matrix [16] |
int | g_iWidth = 1000 |
int | g_iHeight = 800 |
int | light = 0 |
#define GLUI_OPENGLUT |
void drawQuads | ( | float | x, |
float | y, | ||
float | z | ||
) |
Draw a block.
x | The x coordinate. |
y | The y coordinate. |
z | The z coordinate. |
void drawVertex | ( | float | x, |
float | y, | ||
float | z | ||
) |
Draw a vertex for the block.
x | The x coordinate. |
y | The y coordinate. |
z | The z coordinate. |
void drawVolumeCube | ( | void | ) |
Draw volume cube.
const int getNextPowerOfTwo | ( | const int | iNumber ) |
Gets the next power of two.
iNumber | Number to check. |
void initializeDevIL | ( | void | ) |
Initializes the DevIL.
void initializeGLEW | ( | void | ) |
Initializes GLEW.
void initializeGLUI | ( | void | ) |
Initializes GLUI.
void initializeGLUT | ( | void | ) |
Initializes GLUT.
void loadData | ( | std::string | data ) |
Loads data.
data | The data. |
int main | ( | int | argc, |
char ** | argv | ||
) |
Main entry-point for this application.
argc | Number of command-line arguments. |
argv | Array of command-line argument strings. |
void mainDisplay | ( | void | ) |
Main display method.
void mainIdle | ( | void | ) |
Main Update method.
Screenshot
Load data
void mainInit | ( | void | ) |
Main initialization method.
void mainKeyboard | ( | unsigned char | key, |
int | x, | ||
int | y | ||
) |
Processes keyboard input.
key | The key. |
x | The x coordinate. |
y | The y coordinate. |
void mainMotion | ( | int | x, |
int | y | ||
) |
Processes mouse movement.
x | The x coordinate. |
y | The y coordinate. |
void mainMouse | ( | int | button, |
int | state, | ||
int | x, | ||
int | y | ||
) |
Processes mouse clicks.
button | The clicked button. |
state | The click state. |
x | The x coordinate. |
y | The y coordinate. |
void mainReshape | ( | int | width, |
int | height | ||
) |
Processes window resize.
width | The width. |
height | The height. |
void render2DView | ( | void | ) |
Renders the 2D view.
std::string str_replace | ( | std::string | rep, |
std::string | wit, | ||
std::string | in | ||
) |
String replace.
rep | The pattern. |
wit | The replacement. |
in | The string. |
int g_iHeight = 800 |
int g_iWidth = 1000 |
GLUI* glui_bottom |
int light = 0 |
float rot_matrix[16] |
{ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 }
float vis_coord |
GLuint vis_fbo |
float vis_step_size |
GLuint vis_texture |
GLuint vis_transfer_tex |
GLuint vis_volume_tex[2] |
GLuint vis_volumefbo |
int windowID_main |