3dpcp/.svn/pristine/ea/ea2e1a82686f0b87dc1b61e620a931a1abd3940f.svn-base
2012-09-16 14:33:11 +02:00

42 lines
1.3 KiB
Text

#ifndef META_SCAN_H
#define META_SCAN_H
#include "scan.h"
#include <vector>
class MetaScan : public Scan {
public:
MetaScan(std::vector<Scan*> scans, int nns_method = -1, bool cuda_enabled = false);
virtual ~MetaScan();
//! How many scans this meta scan contains
unsigned int size() const;
//! Return the contained scan
Scan* getScan(unsigned int i) const;
virtual void setRangeFilter(double max, double min) {}
virtual void setHeightFilter(double top, double bottom) {}
virtual const char* getIdentifier() const { return "metascan"; }
virtual DataPointer get(const std::string& identifier) { return DataPointer(0, 0); }
virtual void get(unsigned int types) {}
virtual DataPointer create(const std::string& identifier, unsigned int size) { return DataPointer(0, 0); }
virtual void clear(const std::string& identifier) {}
virtual unsigned int readFrames() { return 0; }
virtual void saveFrames() {}
virtual unsigned int getFrameCount() { return 0; }
virtual void getFrame(unsigned int i, const double*& pose_matrix, AlgoType& type) {}
protected:
virtual void createSearchTreePrivate();
virtual void calcReducedOnDemandPrivate() {}
virtual void addFrame(AlgoType type) {}
private:
std::vector<Scan*> m_scans;
};
#endif //META_SCAN_H