18 using std::runtime_error;
22 using namespace hippodraw;
26 PyNTuple (
const std::vector < std::string > & labels )
71 const std::vector < double > &
column )
78 catch (
const runtime_error & e ) {
90 const std::vector < float > & fcolumn )
93 std::vector < double > dcolumn( fcolumn.begin(), fcolumn.end());
99 catch (
const runtime_error & e ) {
116 catch (
const runtime_error & e ) {
126 const std::vector < double > &
column )
132 catch (
const runtime_error & e ) {
141 addRow (
const std::vector < double > & row )
152 catch (
const runtime_error & e ) {
virtual void setTitle(const std::string &title)
Sets the title of the data source to title.
virtual void replaceColumn(const std::string &label, const std::vector< double > &array)
Replaces data in column label with contents of array.
virtual int addColumn(const std::string &label, const std::vector< float > &column)
virtual void clear()
Clears the NTuple.
virtual void replaceColumn(unsigned int index, const std::vector< double > &data)
Replaces the data in column col.
static void lock()
Obtains a lock on the application's mutex.
virtual void append(const DataSource *source)
Appends the data from the source.
hippodraw::PyNTuple class interface.
column
The column indices for 2 dimension data point tuple.
virtual void addRow(const std::vector< double > &v)
Adds a row to the end of the ntuple.
virtual void append(const DataSource *source)
Appends the data from the source.
hippodraw::PyApp class interface.
virtual int addColumn(const std::string &, const std::vector< double > &column)
Adds a column to the end of the ntuple and returns the index to the added column. ...
virtual void setTitle(const std::string &title)
Sets the title of the DataSource.
A DataSource class implemented with std::vector<double> to store the column data. ...
static void unlock()
Releases the lock on the application's mutex.
virtual void clear()
Clears the NTuple.
virtual void addRow(const std::vector< double > &row)
Adds a row to the end of the ntuple.
virtual void replaceColumn(unsigned int i, const std::vector< double > &column)
Replaces the data in column col.
A wrapper for NTuple, so that when NTuple is used in Qt based application, the application object can...
PyNTuple()
The default constructor.
Base class for DataSource.