#include <glwidget.h>
Public Slots | |
void | flipE () |
void | flipF () |
void | flipV () |
void | LoadTriMesh (QString &namefile) |
void | nextB () |
void | nextE () |
void | nextVfite () |
void | OpenFile () |
Public Member Functions | |
GLWidget (QWidget *parent=0) | |
QSize | minimumSizeHint () const |
QSize | sizeHint () const |
int | xRotation () const |
~GLWidget () | |
Public Attributes | |
bool | doPickPos |
bool | doPickVfIte |
vcg::GlTrimesh< MyStraightMesh > | glWrap |
int | keypress |
MyStraightMesh | mesh |
int | pic_x |
int | pic_y |
vcg::face::Pos < MyStraightMesh::FaceType > | pos |
int | ScreenH |
int | ScreenW |
vcg::Trackball | track |
vcg::face::VFIterator < MyStraightMesh::FaceType > | vfite |
Protected Member Functions | |
void | initializeGL () |
void | keyPressEvent (QKeyEvent *e) |
void | mouseDoubleClickEvent (QMouseEvent *event) |
void | mouseMoveEvent (QMouseEvent *event) |
void | mousePressEvent (QMouseEvent *event) |
void | mouseReleaseEvent (QMouseEvent *event) |
void | paintGL () |
void | resizeGL (int width, int height) |
void | wheelEvent (QWheelEvent *e) |
Private Member Functions | |
void | extrude (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2) |
GLuint | makeObject () |
void | normalizeAngle (int *angle) |
void | quad (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2, GLdouble x3, GLdouble y3, GLdouble x4, GLdouble y4) |
Private Attributes | |
QPoint | lastPos |
GLuint | object |
QColor | trolltechGreen |
QColor | trolltechPurple |
int | xRot |
Definition at line 48 of file glwidget.h.
GLWidget::GLWidget | ( | QWidget * | parent = 0 |
) |
Definition at line 53 of file glwidget.cpp.
GLWidget::~GLWidget | ( | ) |
Definition at line 69 of file glwidget.cpp.
void GLWidget::extrude | ( | GLdouble | x1, | |
GLdouble | y1, | |||
GLdouble | x2, | |||
GLdouble | y2 | |||
) | [private] |
void GLWidget::flipE | ( | ) | [slot] |
Definition at line 113 of file glwidget.cpp.
void GLWidget::flipF | ( | ) | [slot] |
Definition at line 117 of file glwidget.cpp.
void GLWidget::flipV | ( | ) | [slot] |
Definition at line 109 of file glwidget.cpp.
void GLWidget::initializeGL | ( | ) | [protected] |
Definition at line 135 of file glwidget.cpp.
void GLWidget::keyPressEvent | ( | QKeyEvent * | e | ) | [protected] |
Definition at line 230 of file glwidget.cpp.
void GLWidget::LoadTriMesh | ( | QString & | namefile | ) | [slot] |
Definition at line 85 of file glwidget.cpp.
GLuint GLWidget::makeObject | ( | ) | [private] |
QSize GLWidget::minimumSizeHint | ( | ) | const |
Definition at line 75 of file glwidget.cpp.
void GLWidget::mouseDoubleClickEvent | ( | QMouseEvent * | event | ) | [protected] |
Definition at line 236 of file glwidget.cpp.
void GLWidget::mouseMoveEvent | ( | QMouseEvent * | event | ) | [protected] |
Definition at line 218 of file glwidget.cpp.
void GLWidget::mousePressEvent | ( | QMouseEvent * | event | ) | [protected] |
Definition at line 241 of file glwidget.cpp.
void GLWidget::mouseReleaseEvent | ( | QMouseEvent * | event | ) | [protected] |
Definition at line 258 of file glwidget.cpp.
void GLWidget::nextB | ( | ) | [slot] |
Definition at line 125 of file glwidget.cpp.
void GLWidget::nextE | ( | ) | [slot] |
Definition at line 121 of file glwidget.cpp.
void GLWidget::nextVfite | ( | ) | [slot] |
Definition at line 130 of file glwidget.cpp.
void GLWidget::normalizeAngle | ( | int * | angle | ) | [private] |
void GLWidget::OpenFile | ( | ) | [slot] |
Definition at line 97 of file glwidget.cpp.
void GLWidget::paintGL | ( | ) | [protected] |
Definition at line 153 of file glwidget.cpp.
void GLWidget::quad | ( | GLdouble | x1, | |
GLdouble | y1, | |||
GLdouble | x2, | |||
GLdouble | y2, | |||
GLdouble | x3, | |||
GLdouble | y3, | |||
GLdouble | x4, | |||
GLdouble | y4 | |||
) | [private] |
void GLWidget::resizeGL | ( | int | width, | |
int | height | |||
) | [protected] |
Definition at line 269 of file glwidget.cpp.
QSize GLWidget::sizeHint | ( | ) | const |
Definition at line 80 of file glwidget.cpp.
void GLWidget::wheelEvent | ( | QWheelEvent * | e | ) | [protected] |
Definition at line 276 of file glwidget.cpp.
int GLWidget::xRotation | ( | ) | const [inline] |
Definition at line 58 of file glwidget.h.
bool GLWidget::doPickPos |
Definition at line 63 of file glwidget.h.
Definition at line 63 of file glwidget.h.
Definition at line 60 of file glwidget.h.
Definition at line 62 of file glwidget.h.
QPoint GLWidget::lastPos [private] |
Definition at line 98 of file glwidget.h.
Definition at line 59 of file glwidget.h.
GLuint GLWidget::object [private] |
Definition at line 96 of file glwidget.h.
int GLWidget::pic_x |
Definition at line 62 of file glwidget.h.
int GLWidget::pic_y |
Definition at line 62 of file glwidget.h.
Definition at line 64 of file glwidget.h.
Definition at line 62 of file glwidget.h.
Definition at line 62 of file glwidget.h.
Definition at line 61 of file glwidget.h.
QColor GLWidget::trolltechGreen [private] |
Definition at line 99 of file glwidget.h.
QColor GLWidget::trolltechPurple [private] |
Definition at line 100 of file glwidget.h.
Definition at line 65 of file glwidget.h.
int GLWidget::xRot [private] |
Definition at line 97 of file glwidget.h.