- Plot2d_Curve();
- virtual ~Plot2d_Curve();
- void setName( const QString& );
- void addPoint( double, double );
- void addPoints(SIP_PYLIST X, SIP_PYLIST Y);
-%MethodCode
- int nx = PyList_Size(a0);
- int ny = PyList_Size(a1);
-
- if( nx != ny ) {
- PyErr_Format(PyExc_TypeError,"The dimension of x and y should be the same. It is %d and %d currently.", nx, ny);
- }
-
- int i;
- PyObject *pX, *pY;
-
- for (i=0; i<nx; i++) {
- pX = PyList_GET_ITEM(a0,i);
- pY = PyList_GET_ITEM(a1,i);
- double aX = PyFloat_AsDouble(pX);
- double aY = PyFloat_AsDouble(pY);
- sipCpp->addPoint(aX, aY);
- }
-%End
- void insertPoint( int, double, double );
- void deletePoint( int );
- void clearAllPoints();
- void setXAxis( Axis );
-%MethodCode
- int ax = int(a0);
- sipCpp->setXAxis(QwtPlot::Axis(ax));
-%End
- Axis getXAxis() const;
-%MethodCode
- sipRes = Axis(sipCpp->getXAxis());
-%End
- void setYAxis( Axis );
-%MethodCode
- int ay = int(a0);
- sipCpp->setYAxis(QwtPlot::Axis(ay));
-%End
- Axis getYAxis() const;
-%MethodCode
- sipRes = Axis(sipCpp->getYAxis());
-%End