golib  0.5
goPlot::Points2DMatrix< T > Class Template Reference

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.
 
- Public Member Functions inherited from goPlot::Points2DT< Real >
 Points2DT (int N)
 

Detailed Description

template<class T>
class goPlot::Points2DMatrix< T >

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.

Constructor & Destructor Documentation

◆ Points2DMatrix() [1/2]

template<class T >
goPlot::Points2DMatrix< T >::Points2DMatrix ( goAutoPtr< goMath::Matrix< T > >  m)
inline

Constructor.

Parameters
mMatrix auto pointer. If the pointer is null, a new matrix is created instead with size 1.

◆ Points2DMatrix() [2/2]

template<class T >
goPlot::Points2DMatrix< T >::Points2DMatrix ( const goMath::Matrix< T > &  m)
inline

Constructor.

Copies the points in m.

Parameters
mConfiguration matrix, one point per row.

Member Function Documentation

◆ x()

template<class T >
virtual goDouble goPlot::Points2DMatrix< T >::x ( int  i) const
inlinevirtual

Reimplement these. Return i'th point x value

Reimplemented from goPlot::Points2DT< Real >.


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