MyGLWidget Class Reference

#include <MyGLWidget.h>

List of all members.

Public Slots

void setTreeStyleRooted ()
void setTreeStyleRadial ()
void setTreeStyleBalloon ()
void setBundlingStrength (int value)
void setRelationVisability (int state)
void setNodeVisability (int state)
void setLineVisability (int state)
void setCircleVisability (int state)
void setLcaRemoval (int state)
void useTransparency (int state)

Public Member Functions

 MyGLWidget (QWidget *parent=0)
 ~MyGLWidget ()
QSize minimumSizeHint () const
QSize sizeHint () const
void setDataSet (DataSet *_dataSet)

Protected Member Functions

void initializeGL ()
void paintGL ()
void resizeGL (int width, int height)
void mousePressEvent (QMouseEvent *event)
void mouseMoveEvent (QMouseEvent *event)
void mouseReleaseEvent (QMouseEvent *event)
void wheelEvent (QWheelEvent *event)
void renderRootedTree ()
void renderRadialTree ()
void renderBalloonTree ()

Private Types

enum  TreeStyle { ROOTED, RADIAL, BALLOON }

Private Attributes

QColor black
DataSetdataSet
TreeStyle treeStyle
Cameracamera
int screenWidth
int screenHeight
float nodeDiameter

Static Private Attributes

static log4cxx::LoggerPtr logger


Detailed Description

Widget for drawing OpenGL-related stuff

Member Enumeration Documentation

enum MyGLWidget::TreeStyle [private]

Enumerator:
ROOTED 
RADIAL 
BALLOON 


Constructor & Destructor Documentation

MyGLWidget::MyGLWidget ( QWidget *  parent = 0  ) 

Constructs a new MyGLWidget object

Parameters:
parent the parent widget

MyGLWidget::~MyGLWidget (  ) 

Destroys the object


Member Function Documentation

void MyGLWidget::initializeGL (  )  [protected]

Initializes GL

QSize MyGLWidget::minimumSizeHint (  )  const

Returns a hint for the minimum size of the widget

Returns:
hint for the minimum size of the widget

void MyGLWidget::mouseMoveEvent ( QMouseEvent *  event  )  [protected]

Is called when the mouse is moved on the widget

Parameters:
event the mouse event

void MyGLWidget::mousePressEvent ( QMouseEvent *  event  )  [protected]

Is called when a mouse click is on the widget

Parameters:
event the mouse click event

void MyGLWidget::mouseReleaseEvent ( QMouseEvent *  event  )  [protected]

Is called when the mouse button is released on the widget

Parameters:
event the mouse event

void MyGLWidget::paintGL (  )  [protected]

Renders the whole scene

void MyGLWidget::renderBalloonTree (  )  [protected]

Renders the Balloon Tree

void MyGLWidget::renderRadialTree (  )  [protected]

Renders the Radial Tree

void MyGLWidget::renderRootedTree (  )  [protected]

Renders the Rooted Tree

void MyGLWidget::resizeGL ( int  width,
int  height 
) [protected]

Is called when the size of the widget changes

Parameters:
width the new width
height the new height

void MyGLWidget::setBundlingStrength ( int  value  )  [slot]

Sets the bundling strength

Parameters:
value the bundling strength

void MyGLWidget::setCircleVisability ( int  state  )  [slot]

Sets a boolean value indicating whether the hierarchy circles are rendered or not

Parameters:
state boolean value indicating whether the hierarchy circles are rendered or not

void MyGLWidget::setDataSet ( DataSet _dataSet  ) 

Sets the pointer to the dataset object

Parameters:
_dataSet pointer to the dataset object

void MyGLWidget::setLcaRemoval ( int  state  )  [slot]

Sets a boolean value indicating whether the LCA is removed or not

Parameters:
state boolean value indicating whether the LCA is removed or not

void MyGLWidget::setLineVisability ( int  state  )  [slot]

Sets a boolean value indicating whether the hierarchy lines are rendered or not

Parameters:
state boolean value indicating whether the hierarchy lines are rendered or not

void MyGLWidget::setNodeVisability ( int  state  )  [slot]

Sets a boolean value indicating whether the nodes are rendered or not

Parameters:
state boolean value indicating whether the nodes are rendered or not

void MyGLWidget::setRelationVisability ( int  state  )  [slot]

Sets a boolean value indicating whether the relations (B-Splines) are rendered or not

Parameters:
state boolean value indicating whether the relations (B-Splines) are rendered or not

void MyGLWidget::setTreeStyleBalloon (  )  [slot]

Sets the tree style to be balloon

void MyGLWidget::setTreeStyleRadial (  )  [slot]

Sets the tree style to be radial

void MyGLWidget::setTreeStyleRooted (  )  [slot]

Sets the tree style to be rooted

QSize MyGLWidget::sizeHint (  )  const

Returns a hint for the size of the widget

Returns:
hint for the size of the widget

void MyGLWidget::useTransparency ( int  state  )  [slot]

Sets a boolean value indicating whether transparency is used or not

Parameters:
state boolean value indicating whether transparency is used or not

void MyGLWidget::wheelEvent ( QWheelEvent *  event  )  [protected]

Is called when the mouse wheel is moved while the curser is on the widget

Parameters:
event the mouse wheel event


Member Data Documentation

QColor MyGLWidget::black [private]

Clear color is black

Pointer to the camera object

Pointer to the dataset

LoggerPtr MyGLWidget::logger [static, private]

float MyGLWidget::nodeDiameter [private]

The diameter of the nodes in the trees

int MyGLWidget::screenHeight [private]

The height of the screen

int MyGLWidget::screenWidth [private]

The width of the screen

Enumeration value that indicates the tree style that is rendered


The documentation for this class was generated from the following files:

Generated on Tue Jun 2 19:53:44 2009 for Hierarchical Edge Bundles by  doxygen 1.5.7.1