SimCenterCommon
Common functionality used within different SimCenter projects
|
#include <GlWidget2D.h>
Public Slots | |
void | mousePressEvent (QMouseEvent *event) |
void | mouseReleaseEvent (QMouseEvent *event) |
void | mouseMoveEvent (QMouseEvent *event) |
void | mouseDoubleClickEvent (QMouseEvent *) |
void | mouseSingleClickEvent (void) |
Public Member Functions | |
GlWidget2D (QWidget *parent=NULL) | |
~GlWidget2D () | |
void | setController (Controller2D *) |
void | update () |
void | reset () |
void | drawLine (int tag, float x1, float y1, float x2, float y2, float thick, float r, float g, float b, float w=1.0) |
void | drawPoint (int tag, float x1, float y1, int numPixels, float r, float g, float b, float width=9.0, float height=9.0) |
void | drawText (int tag, float x1, float y1, char *text, float r, float g, float b) |
void | drawBuffers () |
Protected Member Functions | |
void | initializeGL () |
void | resizeGL (int w, int h) |
void | paintGL () |
void | keyPressEvent (QKeyEvent *event) |
Protected Attributes | |
int | selectMode |
Controller2D * | theController |
QPointF | mousePressPosition |
QPointF | mouseReleasePosition |
int | doubleClicked |
QTimer | timer |
bool | clickedLeft |
int * | pointIDs |
int | numPoint |
int | maxNumPoint |
GLfloat * | pointVertices |
GLfloat * | pointColors |
int * | lineIDs |
int | numLine |
int | maxNumLine |
GLfloat * | lineVertices |
GLfloat * | lineColors |
QOpenGLShaderProgram * | program |
GLuint | h |
GLuint | w |
GLuint | vPosition |
GLuint | vColor |
GLuint | mvpMatrix |
GLuint | pointBuffer |
GLuint | lineBuffer |
vertexStruct * | thePointVertices |
vertexStruct * | theLineVertices |
QMatrix4x4 | orthoProjectionMatrix |
Definition at line 61 of file GlWidget2D.h.
GlWidget2D::GlWidget2D | ( | QWidget * | parent = NULL | ) |
Definition at line 51 of file GlWidget2D.cpp.
GlWidget2D::~GlWidget2D | ( | ) |
Definition at line 77 of file GlWidget2D.cpp.
void GlWidget2D::drawBuffers | ( | ) |
Definition at line 90 of file GlWidget2D.cpp.
void GlWidget2D::drawLine | ( | int | tag, |
float | x1, | ||
float | y1, | ||
float | x2, | ||
float | y2, | ||
float | thick, | ||
float | r, | ||
float | g, | ||
float | b, | ||
float | w = 1.0 |
||
) |
Definition at line 230 of file GlWidget2D.cpp.
void GlWidget2D::drawPoint | ( | int | tag, |
float | x1, | ||
float | y1, | ||
int | numPixels, | ||
float | r, | ||
float | g, | ||
float | b, | ||
float | width = 9.0 , |
||
float | height = 9.0 |
||
) |
Definition at line 134 of file GlWidget2D.cpp.
void GlWidget2D::drawText | ( | int | tag, |
float | x1, | ||
float | y1, | ||
char * | text, | ||
float | r, | ||
float | g, | ||
float | b | ||
) |
Definition at line 213 of file GlWidget2D.cpp.
|
protected |
Definition at line 322 of file GlWidget2D.cpp.
|
protected |
Definition at line 402 of file GlWidget2D.cpp.
|
slot |
Definition at line 490 of file GlWidget2D.cpp.
|
slot |
Definition at line 484 of file GlWidget2D.cpp.
|
slot |
Definition at line 413 of file GlWidget2D.cpp.
|
slot |
Definition at line 431 of file GlWidget2D.cpp.
|
slot |
Definition at line 499 of file GlWidget2D.cpp.
|
protected |
Definition at line 388 of file GlWidget2D.cpp.
void GlWidget2D::reset | ( | ) |
Definition at line 281 of file GlWidget2D.cpp.
Definition at line 350 of file GlWidget2D.cpp.
void GlWidget2D::setController | ( | Controller2D * | theNewController | ) |
Definition at line 82 of file GlWidget2D.cpp.
void GlWidget2D::update | ( | ) |
Definition at line 371 of file GlWidget2D.cpp.
|
protected |
Definition at line 108 of file GlWidget2D.h.
|
protected |
Definition at line 106 of file GlWidget2D.h.
|
protected |
Definition at line 124 of file GlWidget2D.h.
|
protected |
Definition at line 130 of file GlWidget2D.h.
|
protected |
Definition at line 119 of file GlWidget2D.h.
|
protected |
Definition at line 116 of file GlWidget2D.h.
|
protected |
Definition at line 118 of file GlWidget2D.h.
|
protected |
Definition at line 117 of file GlWidget2D.h.
|
protected |
Definition at line 111 of file GlWidget2D.h.
|
protected |
Definition at line 104 of file GlWidget2D.h.
|
protected |
Definition at line 105 of file GlWidget2D.h.
|
protected |
Definition at line 128 of file GlWidget2D.h.
|
protected |
Definition at line 117 of file GlWidget2D.h.
|
protected |
Definition at line 111 of file GlWidget2D.h.
|
protected |
Definition at line 133 of file GlWidget2D.h.
|
protected |
Definition at line 129 of file GlWidget2D.h.
|
protected |
Definition at line 113 of file GlWidget2D.h.
|
protected |
Definition at line 110 of file GlWidget2D.h.
|
protected |
Definition at line 112 of file GlWidget2D.h.
|
protected |
Definition at line 123 of file GlWidget2D.h.
|
protected |
Definition at line 100 of file GlWidget2D.h.
|
protected |
Definition at line 102 of file GlWidget2D.h.
|
protected |
Definition at line 132 of file GlWidget2D.h.
|
protected |
Definition at line 131 of file GlWidget2D.h.
|
protected |
Definition at line 107 of file GlWidget2D.h.
|
protected |
Definition at line 127 of file GlWidget2D.h.
|
protected |
Definition at line 126 of file GlWidget2D.h.
|
protected |
Definition at line 125 of file GlWidget2D.h.