SpikeStream Nemo Plugin  0.2
Pattern.h
Go to the documentation of this file.
00001 #ifndef PATTERN_H
00002 #define PATTERN_H
00003 
00004 //SpikeStream includes
00005 #include "Box.h"
00006 #include "Point3D.h"
00007 
00008 //Qt includes
00009 #include <QString>
00010 
00011 namespace spikestream {
00012 
00016         class Pattern {
00017                 public:
00018                         Pattern();
00019                         Pattern(const Pattern& patt);
00020                         ~Pattern();
00021                         Pattern& operator=(const Pattern& rhs);
00022                         bool operator==(const Pattern& rhs);
00023                         void addBox(const Box& box);
00024                         void addPoint(const Point3D& point);
00025                         bool contains(const Point3D& point);
00026                         QList<Box> getBoxes() { return boxList; }
00027                         Pattern getAlignedPattern(const Box& box) const;
00028                         QString getName(){ return name; }
00029                         QList<Point3D> getPoints() const { return pointList; }
00030                         void print() const;
00031                         void reset();
00032                         void setName(const QString& name) { this->name = name; }
00033                         void translate(float dx, float dy, float dz);
00034 
00035                 private:
00036                         //===================  VARIABLES  ===================
00038                         QString name;
00039 
00041                         QList<Box> boxList;
00042 
00044                         QList<Point3D> pointList;
00045         };
00046 
00047 }
00048 
00049 #endif//PATTERN_H
 All Classes Files Functions Variables Typedefs Defines