Logo Search packages:      
Sourcecode: kalgebra version File versions  Download package

QGraph Class Reference

#include <qgraph.h>

List of all members.

Detailed Description


Definition at line 24 of file qgraph.h.

Public Member Functions

bool addFunction (const function &)
void clear ()
bool editFunction (const QString &tochange, const function &func)
bool editFunction (const unsigned int &num, const function &func)
 QGraph (QWidget *parent=0, const char *name=0)
void setResolution (int res)
bool setSelected (const QString &)
bool setShown (const QString &, const bool &shown)
void setSquares (bool newSquare)
void setViewPort (QRect)
QSizePolicy sizePolicy () const
bool squares () const
bool toImage (QString path)
void unselect ()

Static Public Member Functions

static int round (double val)

Private Member Functions

QDoublePoint calcImage (QDoublePoint dp)
void dibuixa_eixos (QPainter *)
QDoublePoint fromWidget (QPoint p)
void keyPressEvent (QKeyEvent *e)
void mouseMoveEvent (QMouseEvent *e)
void mousePressEvent (QMouseEvent *e)
void mouseReleaseEvent (QMouseEvent *e)
void paintEvent (QPaintEvent *)
void pintafunc (QPaintDevice *)
void resizeEvent (QResizeEvent *)
QPoint toViewport (const QPoint &mv)
QPoint toWidget (double, double, bool *b=0)
void trunca (QPoint *, QPoint *, bool *)
void update_points ()
void update_scale ()
void wheelEvent (QWheelEvent *e)

Private Attributes

QPoint ant
QPixmap buffer
QPainter finestra
QPixmap front
QValueList< functionfunclist
QPoint last
bool m_squares
QDoublePoint mark
QLabel * micepos
QPoint press
int pushed
double rang_x
double rang_y
int resolucio
bool valid
QRect viewport

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

Generated by  Doxygen 1.6.0   Back to index