SimCenterCommon
Common functionality used within different SimCenter projects
|
#include <GraphicView2D.h>
Public Member Functions | |
GraphicView2D (QWidget *parent=nullptr) | |
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 | drawCube (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) |
Definition at line 17 of file GraphicView2D.h.
|
explicit |
Definition at line 30 of file GraphicView2D.cpp.
void GraphicView2D::drawCube | ( | 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 323 of file GraphicView2D.cpp.
void GraphicView2D::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 221 of file GraphicView2D.cpp.
void GraphicView2D::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 131 of file GraphicView2D.cpp.
void GraphicView2D::drawText | ( | int | tag, |
float | x1, | ||
float | y1, | ||
char * | text, | ||
float | r, | ||
float | g, | ||
float | b | ||
) |
void GraphicView2D::reset | ( | ) |
Definition at line 501 of file GraphicView2D.cpp.
void GraphicView2D::update | ( | ) |
Definition at line 64 of file GraphicView2D.cpp.