GLWidget Class Reference

#include <GLWidget.h>

Collaboration diagram for GLWidget:

Collaboration graph
[legend]

List of all members.

Signals

void updateGUI ()
void visibleGUI ()

Public Member Functions

 GLWidget (QWidget *parent=0)
QSize minimumSizeHint () const
QSize sizeHint () const
void resizeGL (int w, int h)
bool loadData (QString filename)
vector< QString > getTitle ()
vector< int > getType ()
void addPlane (int planeType, vector< int > col, int x, int y, int z, int rotX, int rotY)
void removePlane (int planeType, int index)
void to2D (int type, int index)
void to3D (int type, int index)

Public Attributes

int delType
int delCol
int width
int height
int updType
int updMode

Static Public Attributes

static const int PLANE_MAP = 1
static const int PLANE_BAR = 2
static const int PLANE_PIE = 3
static const int TYPE_STRING = 1
static const int TYPE_FLOAT = 2
static const int TYPE_PERCENT = 3


Detailed Description

The man GL window.

Constructor & Destructor Documentation

GLWidget::GLWidget ( QWidget *  parent = 0  ) 

Constructor of GLWidget class. It generates the paint window and all painted stuff.


Member Function Documentation

QSize GLWidget::minimumSizeHint (  )  const

set minimum size of window

QSize GLWidget::sizeHint (  )  const

set actual size of window

void GLWidget::resizeGL ( int  w,
int  h 
)

resize window

bool GLWidget::loadData ( QString  filename  ) 

loads data from file into data structure

Parameters:
filename filename from actual loaded file

vector< QString > GLWidget::getTitle (  ) 

return title from loaded data (this is the first row in data-file)

Returns:
returns a vectory containing QStrings of all column description

vector< int > GLWidget::getType (  ) 

return all types of the columns

Returns:
returns a vector containing int for the different types of float, string, percent

void GLWidget::addPlane ( int  planeType,
vector< int >  col,
int  x,
int  y,
int  z,
int  rotX,
int  rotY 
)

adds new plane to environment

Parameters:
planeType defines the type of plane (map, bar or pie)
col defines what columns are used for that plane
x defines x position of new plane
y defines y position of new plane
z defines z position of new plane
rotX defines x rotation of new plane
rotY defines y rotation of new plane

void GLWidget::removePlane ( int  planeType,
int  index 
)

removes chosen plane

Parameters:
planeType defines what type of plane (map, bar or pie)
index defines by the help of an index what plane should be removed

void GLWidget::to2D ( int  type,
int  index 
)

animat plane to 2D

Parameters:
type defines what type of plane (map, bar or pie)
index defines by the help of an index what plane should animated

void GLWidget::to3D ( int  type,
int  index 
)

animat plane to 3D

Parameters:
type defines what type of plane (map, bar or pie)
index defines by the help of an index what plane should animated

void GLWidget::updateGUI (  )  [signal]

update GUI if plane is animated to another mode

void GLWidget::visibleGUI (  )  [signal]

set visibility of GUI if animation mode is changed


Member Data Documentation

int GLWidget::delType

type that is deleted chosed from "x" of a plane

int GLWidget::delCol

column that is deleted chosed from "x" of a plane

int GLWidget::width

width of GLWindow

int GLWidget::height

height of GLWindow

const int GLWidget::PLANE_MAP = 1 [static]

const for distinction between map, bar and pie

const int GLWidget::PLANE_BAR = 2 [static]

const for distinction between map, bar and pie

const int GLWidget::PLANE_PIE = 3 [static]

const for distinction between map, bar and pie

const int GLWidget::TYPE_STRING = 1 [static]

constant for checking if loaded type is string

const int GLWidget::TYPE_FLOAT = 2 [static]

constant for checking if loaded type is float

const int GLWidget::TYPE_PERCENT = 3 [static]

constant for checking if loaded type is float and should be displayed as percent

int GLWidget::updType

defines what type should be updated when animation is active

int GLWidget::updMode

defines if animation should be updated


The documentation for this class was generated from the following files:
Generated on Fri May 29 18:22:30 2009 for VisLink by  doxygen 1.5.4