SimCenterCommon
Common functionality used within different SimCenter projects
GraphicView2D Class Reference

#include <GraphicView2D.h>

Inheritance diagram for GraphicView2D:
Collaboration diagram for GraphicView2D:

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)
 

Detailed Description

Definition at line 17 of file GraphicView2D.h.

Constructor & Destructor Documentation

GraphicView2D::GraphicView2D ( QWidget *  parent = nullptr)
explicit

Definition at line 30 of file GraphicView2D.cpp.

Member Function Documentation

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.


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