data.h 779 Bytes
Newer Older
Laurent Belcour's avatar
Laurent Belcour committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#pragma once

#include <QObject>

#include <core/data.h>
#include <core/common.h>
#include <core/args.h>

class data_merl : public QObject, public data
{
	Q_OBJECT
	Q_INTERFACES(data)

	public: // methods

		// Load data from a file
		virtual void load(const std::string& filename) ;
		virtual void load(const std::string& filename, const arguments& args) ;

		// Acces to data
21 22
		virtual vec get(int i) const ;
		virtual vec operator[](int i) const ;
23
		virtual vec value(vec in, vec out) const ;
Laurent Belcour's avatar
Laurent Belcour committed
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38

		// Get data size, e.g. the number of samples to fit
		virtual int size() const ;

		// Get min and max input space values
		virtual vec min() const ;
		virtual vec max() const ;

		virtual int dimX() const ; 
		virtual int dimY() const ; 

	private: // data
		double *brdf ;

} ;