golib
0.5
|
Points2D class for accessing points in a goMath::Matrix. More...
#include <plot.h>
Public Member Functions | |
Points2DMatrix (int N=1) | |
Points2DMatrix (goAutoPtr< goMath::Matrix< T > > m) | |
Constructor. More... | |
Points2DMatrix (const goMath::Matrix< T > &m) | |
Constructor. More... | |
goMatrix< T > & | matrix () |
const goMatrix< T > & | matrix () const |
virtual goDouble | x (int i) const |
virtual goDouble | y (int i) const |
Return i'th point x value. | |
virtual void | set (int i, goDouble x, goDouble y) |
Set point number i. | |
virtual size_t | size () const |
Return number of points. | |
![]() | |
Points2DT (int N) | |
Points2D class for accessing points in a goMath::Matrix.
The matrix is stored in a goAutoPtr, so you can use a matrix object in some application code and do changes to the same object used in the plotting code.
An initial matrix object is created in any case, so there should always be a valid matrix associated with a Points2DMatrix object.
|
inline |
Constructor.
m | Matrix auto pointer. If the pointer is null, a new matrix is created instead with size 1. |
|
inline |
Constructor.
Copies the points in m.
m | Configuration matrix, one point per row. |
|
inlinevirtual |
Reimplement these. Return i'th point x value
Reimplemented from goPlot::Points2DT< Real >.