File: canvasfunction.h

package info (click to toggle)
ams 1.8.7-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,880 kB
  • ctags: 2,171
  • sloc: cpp: 17,793; makefile: 433; sh: 101
file content (34 lines) | stat: -rw-r--r-- 716 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef CANVASFUNCTION_H
#define CANVASFUNCTION_H

#include <stdio.h>
#include <stdlib.h>
#include <qcanvas.h>
#include <qpainter.h>
#include <qcolor.h>
#include <qpointarray.h>
#include <qptrlist.h>

class CanvasFunction : public QObject
{
  Q_OBJECT

  private:
    int rtti_id, pointCount;
    QPointArray *points;
    QColor color;
    
  public:  
    QPtrList<QCanvasEllipse> canvasPoints;
    QPtrList<QCanvasLine> canvasLines;

  public:
    CanvasFunction(QCanvas *canvas, int p_rtti_id, int p_pointCount, QColor p_color, QObject * parent = 0, const char * name = 0);
    ~CanvasFunction();
    int rtti();
    void setColor(QColor p_color);
    void setPoint(int index, int x, int y, int z);

};
  
#endif