3dpcp/.svn/pristine/87/87bc2abb0ce32c54c7fb0429db099b30387b1e3f.svn-base

44 lines
1.3 KiB
Text
Raw Normal View History

2012-11-13 08:12:22 +00:00
#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 calcNormalsOnDemandPrivate() {}
virtual void addFrame(AlgoType type) {}
private:
std::vector<Scan*> m_scans;
};
#endif //META_SCAN_H