43 lines
1.0 KiB
C++
43 lines
1.0 KiB
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(string an = "None", float x1 = 0, float x2 = 0, float y1 = 0, float y2 = 0, float z1 = 0, float z2 = 0);
|
|
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
|