src/common.h File Reference

#include "compiler_options.h"
#include <glew/glew.h>
#include <GL/glu.h>
#include <devil/il.h>
#include <windows.h>
#include <commdlg.h>
#include <stdlib.h>
#include <io.h>
#include <math.h>
#include <iostream>
#include <sstream>
#include <string>

Include dependency graph for common.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  eat

Defines

#define TF_TEXTURE_SIZE   4096
#define PI   3.14159265f
#define BOUNDARY   0.9125f
#define SLIDER_RANGE   4096
#define STEP_SLIDER_RANGE   1000
#define LIGHT_SLIDER_RANGE   100
#define DENSITY_COUNT   4096
#define OPENGL_SLICE_VIEW_SIZE   250
#define OPENGL_3D_VIEW_SIZE   600
#define NUMBER_OF_GL_WIDGETS   4
#define OPENGL_3D_VIEW   3
#define RENDER_3D_VIEW   3
#define NO_RENDER_3D_VIEW   4
#define SHOW_VOLUME   1
#define SHOW_FRONT_SIDE   2
#define SHOW_BACK_SIDE   3

Enumerations

enum  AXIS { X_AXIS, Y_AXIS, Z_AXIS }
enum  SHADES {
  RED, GREEN, BLUE, ALPHA,
  SHADES_COUNT
}
enum  RENDER_MODE {
  comp = 0, mip = 1, fh = 2, avg = 3,
  avgTF = 4, compPh = 5
}
enum  LIGHT_MODEL { diffuse = 0, ambient, specular, gloss }

Functions

template<class Type>
const Type fromString (const std::string &strString)
template<class Type>
const bool fromString (Type &tValue, const std::string &strString)
template<class Type>
const std::string toString (const Type &tValue)
const std::string trimLeft (const std::string &str, const std::string &strWhitespace="\n\r\t ")
const std::string trimRight (const std::string &str, const std::string &strWhitespace="\n\r\t ")
const std::string trim (const std::string &str, const std::string &strWhitespace="\n\r\t ")
std::istream & operator>> (std::istream &is, eat &e)


Define Documentation

#define BOUNDARY   0.9125f

Definition at line 30 of file common.h.

#define DENSITY_COUNT   4096

Definition at line 36 of file common.h.

Referenced by Volume::load(), Histogram::paintEvent(), and ShadeWidget::setHistogram().

#define LIGHT_SLIDER_RANGE   100

Definition at line 34 of file common.h.

Referenced by MainWindow::setAmbient(), MainWindow::setDiffuse(), and MainWindow::setSpecular().

#define NO_RENDER_3D_VIEW   4

Definition at line 45 of file common.h.

Referenced by OpenGLWidget::initializeGL(), MainWindow::MainWindow(), and OpenGLWidget::paintGL().

#define NUMBER_OF_GL_WIDGETS   4

Definition at line 41 of file common.h.

Referenced by MainWindow::MainWindow().

#define OPENGL_3D_VIEW   3

Definition at line 42 of file common.h.

Referenced by OpenGLWidget::GenerateGradientTexture(), MainWindow::MainWindow(), OpenGLWidget::mouseMoveEvent(), OpenGLWidget::resizeGL(), MainWindow::setAmbient(), MainWindow::setAvg(), MainWindow::setAvgTF(), MainWindow::setComp(), MainWindow::setCompPh(), MainWindow::setDiffuse(), MainWindow::setFH(), MainWindow::setGloss(), OpenGLWidget::setLightValue(), MainWindow::setMIP(), OpenGLWidget::setRenderMode(), and MainWindow::setSpecular().

#define OPENGL_3D_VIEW_SIZE   600

Definition at line 39 of file common.h.

#define OPENGL_SLICE_VIEW_SIZE   250

Definition at line 38 of file common.h.

#define PI   3.14159265f

Definition at line 27 of file common.h.

#define RENDER_3D_VIEW   3

Definition at line 44 of file common.h.

Referenced by OpenGLWidget::initializeGL(), and OpenGLWidget::paintGL().

#define SHOW_BACK_SIDE   3

Definition at line 49 of file common.h.

#define SHOW_FRONT_SIDE   2

Definition at line 48 of file common.h.

#define SHOW_VOLUME   1

Definition at line 47 of file common.h.

#define SLIDER_RANGE   4096

Definition at line 32 of file common.h.

Referenced by OpenGLWidget::paintGL().

#define STEP_SLIDER_RANGE   1000

Definition at line 33 of file common.h.

#define TF_TEXTURE_SIZE   4096

Definition at line 24 of file common.h.

Referenced by OpenGLWidget::GenerateGradientTexture().


Enumeration Type Documentation

enum AXIS

Enumerator:
X_AXIS 
Y_AXIS 
Z_AXIS 

Definition at line 52 of file common.h.

enum LIGHT_MODEL

Enumerator:
diffuse 
ambient 
specular 
gloss 

Definition at line 58 of file common.h.

enum RENDER_MODE

Enumerator:
comp 
mip 
fh 
avg 
avgTF 
compPh 

Definition at line 55 of file common.h.

enum SHADES

Enumerator:
RED 
GREEN 
BLUE 
ALPHA 
SHADES_COUNT 

Definition at line 53 of file common.h.


Function Documentation

template<class Type>
const bool fromString ( Type &  tValue,
const std::string &  strString 
) [inline]

Definition at line 71 of file common.h.

template<class Type>
const Type fromString ( const std::string &  strString  )  [inline]

Definition at line 62 of file common.h.

std::istream& operator>> ( std::istream &  is,
eat e 
) [inline]

Definition at line 181 of file common.h.

References eat::process().

Here is the call graph for this function:

template<class Type>
const std::string toString ( const Type &  tValue  )  [inline]

Definition at line 95 of file common.h.

const std::string trim ( const std::string &  str,
const std::string &  strWhitespace = "\n\r\t " 
) [inline]

Definition at line 123 of file common.h.

References trimLeft(), and trimRight().

Here is the call graph for this function:

const std::string trimLeft ( const std::string &  str,
const std::string &  strWhitespace = "\n\r\t " 
) [inline]

Definition at line 103 of file common.h.

Referenced by trim().

const std::string trimRight ( const std::string &  str,
const std::string &  strWhitespace = "\n\r\t " 
) [inline]

Definition at line 113 of file common.h.

Referenced by trim().


Generated on Mon Dec 10 18:18:12 2007 for VisLU by  doxygen 1.5.4