Documentation of MARTY
A Modern ARtificial Theoretical phYsicist
Public Member Functions | Data Fields | Static Public Attributes | Private Attributes
Grid Class Reference

Public Member Functions

 Grid (QGraphicsScene *t_scene=nullptr)
 
qint32 getSize () const
 
void clear ()
 
void draw (qint32 xmin, qint32 ymin, qint32 xmax, qint32 ymax, qint32 factor=0)
 
void show ()
 
void hide ()
 
void setScene (QGraphicsScene *t_scene)
 

Data Fields

qint32 size
 
qint32 dl0
 
QColor color
 
qint32 width
 

Static Public Attributes

static constexpr qint32 defaultGridSize = 25
 

Private Attributes

bool isShown
 
QGraphicsScene * scene
 
QList< QGraphicsLineItem * > lines
 

Member Function Documentation

◆ draw()

void Grid::draw ( qint32  xmin,
qint32  ymin,
qint32  xmax,
qint32  ymax,
qint32  factor = 0 
)

factor == 0 means no factor factor = +n means grid-spacing multiplied by (n + 1) factor = -n means grid-spacing divided by (n + 1)


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