direcs  2012-09-30
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
CompassWidget Class Reference

Shows a 3D OpenGl kind of compass. More...

#include <compassWidget.h>

List of all members.

Public Slots

void setAllRotations (float xAngle, float yAngle, float zAngle)
void setBackgroundColor (QColor col)
void setXRotation (float angle)
void setYRotation (float angle)
void setZRotation (float angle)

Signals

void xRotationChanged (float angle)
void yRotationChanged (float angle)
void zRotationChanged (float angle)

Public Member Functions

 CompassWidget (QWidget *parent=0)
QSize minimumSizeHint () const
QSize sizeHint () const
 ~CompassWidget ()

Protected Member Functions

void initializeGL ()
void mouseMoveEvent (QMouseEvent *event)
void mousePressEvent (QMouseEvent *event)
void paintGL ()
void resizeGL (int width, int height)

Private Member Functions

void normalizeAngle (float *angle)

Private Attributes

QColor backgroundColor
GLdouble cubeDepth
GLdouble cubeHeight
GLdouble cubeWidth
GLdouble cyl_height
GLdouble cyl_radius
QPoint lastPos
double m_mouseAngleH
double m_mouseAngleV
int m_mouseLastX
int m_mouseLastY
QImage robotImageBack
QImage robotImageFront
QImage robotImageLeft
QImage robotImageRight
GLuint robotTextureBack
GLuint robotTextureFront
GLuint robotTextureLeft
GLuint robotTextureRight
QColor xAxisColor
GLUquadricObj * xAxisCone
GLUquadricObj * xAxisCylinder
float xRot
QColor yAxisColor
GLUquadricObj * yAxisCone
GLUquadricObj * yAxisCylinder
float yRot
QColor zAxisColor
GLUquadricObj * zAxisCone
GLUquadricObj * zAxisCylinder
float zRot

Detailed Description

Shows a 3D OpenGl kind of compass.

Author:
Markus Knapp

Definition at line 35 of file compassWidget.h.


Constructor & Destructor Documentation

CompassWidget::CompassWidget ( QWidget *  parent = 0)

Definition at line 24 of file compassWidget.cpp.

CompassWidget::~CompassWidget ( )

Definition at line 72 of file compassWidget.cpp.


Member Function Documentation

void CompassWidget::initializeGL ( )
protected

Definition at line 108 of file compassWidget.cpp.

QSize CompassWidget::minimumSizeHint ( ) const

Definition at line 422 of file compassWidget.cpp.

void CompassWidget::mouseMoveEvent ( QMouseEvent *  event)
protected

Definition at line 325 of file compassWidget.cpp.

void CompassWidget::mousePressEvent ( QMouseEvent *  event)
protected

Definition at line 319 of file compassWidget.cpp.

void CompassWidget::normalizeAngle ( float *  angle)
private

Definition at line 366 of file compassWidget.cpp.

Here is the caller graph for this function:

void CompassWidget::paintGL ( )
protected

Definition at line 170 of file compassWidget.cpp.

void CompassWidget::resizeGL ( int  width,
int  height 
)
protected

Definition at line 307 of file compassWidget.cpp.

void CompassWidget::setAllRotations ( float  xAngle,
float  yAngle,
float  zAngle 
)
slot

This is an additional member function, provided for convenience.

Parameters:
xAngleshould be between 0.0 and 360.0
yAngleshould be between 0.0 and 360.0
zAngleshould be between 0.0 and 360.0

Definition at line 411 of file compassWidget.cpp.

Here is the call graph for this function:

void CompassWidget::setBackgroundColor ( QColor  col)
slot

Definition at line 434 of file compassWidget.cpp.

void CompassWidget::setXRotation ( float  angle)
slot

Definition at line 375 of file compassWidget.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CompassWidget::setYRotation ( float  angle)
slot

Definition at line 387 of file compassWidget.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CompassWidget::setZRotation ( float  angle)
slot

Definition at line 399 of file compassWidget.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QSize CompassWidget::sizeHint ( ) const

Definition at line 428 of file compassWidget.cpp.

void CompassWidget::xRotationChanged ( float  angle)
signal
void CompassWidget::yRotationChanged ( float  angle)
signal
void CompassWidget::zRotationChanged ( float  angle)
signal

Member Data Documentation

QColor CompassWidget::backgroundColor
private

Definition at line 105 of file compassWidget.h.

GLdouble CompassWidget::cubeDepth
private

Definition at line 100 of file compassWidget.h.

GLdouble CompassWidget::cubeHeight
private

Definition at line 99 of file compassWidget.h.

GLdouble CompassWidget::cubeWidth
private

Definition at line 98 of file compassWidget.h.

GLdouble CompassWidget::cyl_height
private

Definition at line 97 of file compassWidget.h.

GLdouble CompassWidget::cyl_radius
private

Definition at line 96 of file compassWidget.h.

QPoint CompassWidget::lastPos
private

Definition at line 101 of file compassWidget.h.

double CompassWidget::m_mouseAngleH
private

Definition at line 93 of file compassWidget.h.

double CompassWidget::m_mouseAngleV
private

Definition at line 94 of file compassWidget.h.

int CompassWidget::m_mouseLastX
private

Definition at line 91 of file compassWidget.h.

int CompassWidget::m_mouseLastY
private

Definition at line 92 of file compassWidget.h.

QImage CompassWidget::robotImageBack
private

Definition at line 109 of file compassWidget.h.

QImage CompassWidget::robotImageFront
private

Definition at line 107 of file compassWidget.h.

QImage CompassWidget::robotImageLeft
private

Definition at line 111 of file compassWidget.h.

QImage CompassWidget::robotImageRight
private

Definition at line 113 of file compassWidget.h.

GLuint CompassWidget::robotTextureBack
private

Definition at line 108 of file compassWidget.h.

GLuint CompassWidget::robotTextureFront
private

Definition at line 106 of file compassWidget.h.

GLuint CompassWidget::robotTextureLeft
private

Definition at line 110 of file compassWidget.h.

GLuint CompassWidget::robotTextureRight
private

Definition at line 112 of file compassWidget.h.

QColor CompassWidget::xAxisColor
private

Definition at line 102 of file compassWidget.h.

GLUquadricObj* CompassWidget::xAxisCone
private

Definition at line 83 of file compassWidget.h.

GLUquadricObj* CompassWidget::xAxisCylinder
private

Definition at line 80 of file compassWidget.h.

float CompassWidget::xRot
private

Definition at line 87 of file compassWidget.h.

QColor CompassWidget::yAxisColor
private

Definition at line 103 of file compassWidget.h.

GLUquadricObj* CompassWidget::yAxisCone
private

Definition at line 84 of file compassWidget.h.

GLUquadricObj* CompassWidget::yAxisCylinder
private

Definition at line 81 of file compassWidget.h.

float CompassWidget::yRot
private

Definition at line 88 of file compassWidget.h.

QColor CompassWidget::zAxisColor
private

Definition at line 104 of file compassWidget.h.

GLUquadricObj* CompassWidget::zAxisCone
private

Definition at line 85 of file compassWidget.h.

GLUquadricObj* CompassWidget::zAxisCylinder
private

Definition at line 82 of file compassWidget.h.

float CompassWidget::zRot
private

Definition at line 89 of file compassWidget.h.


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