owlps/GuiNuMo-server/area.hh

44 lines
985 B
C++

#ifndef _AREA_HH_
#define _AREA_HH_
#include <iostream>
#include <string>
using namespace std;
using std::string;
class Area
{
protected:
string area_name;
float x_min;
float x_max;
float y_min;
float y_max;
float z_min;
float z_max;
public:
Area();
Area(string an, float x1, float x2, float y1, float y2, float z1, float z2);
Area(const Area &a);
~Area() {};
bool containsPoint(Point p)const;
string getLabel()const { return label; };
float getXmin()const { return x_min; };
float getXmax()const { return x_max; };
float getYmin()const { return y_min; };
float getYmax()const { return y_max; };
float getZmin()const { return z_min; };
float getZmax()const { return z_max; };
void setLabel(string l) { label = l; };
void setXmin(float v) { x_min = v; };
void setXmax(float v) { x_max = v; };
void setYmin(float v) { y_min = v; };
void setYmax(float v) { y_max = v; };
void setZmin(float v) { z_min = v; };
void setZmax(float v) { z_max = v; };
};
#endif