include/sampler.h
branchpyrit
changeset 90 f6a72eb99631
parent 88 f7edb3b90816
child 93 96d65f841791
equal deleted inserted replaced
89:fcf1487b398b 90:f6a72eb99631
    71 	virtual void init() = 0;
    71 	virtual void init() = 0;
    72 	virtual int initSampleSet() = 0;
    72 	virtual int initSampleSet() = 0;
    73 	virtual bool nextSample(Sample *s) = 0;
    73 	virtual bool nextSample(Sample *s) = 0;
    74 	virtual void saveSample(Sample &samp, Colour &col) = 0;
    74 	virtual void saveSample(Sample &samp, Colour &col) = 0;
    75 	bool packetableSamples() { return packetable; };
    75 	bool packetableSamples() { return packetable; };
    76 	const Pixmap &getPixmap() { return pixmap; };
    76 	const Pixmap &getPixmap() const { return pixmap; };
    77 };
    77 };
    78 
    78 
    79 /**
    79 /**
    80  * Default sampler.
    80  * Default sampler.
    81  * Implements basic adaptive subsampling and oversampling.
    81  * Implements basic adaptive subsampling and oversampling.