00001 #include "VLCCluster.h" 00002 00003 00004 VLCCluster::VLCCluster(double xminimum, double xmaximum, double yminimum, double ymaximum) 00005 { 00006 xmin = xminimum; 00007 xmax = xmaximum; 00008 ymax = ymaximum; 00009 ymin = yminimum; 00010 00011 //calculation of midpoint 00012 mid.x = (xmin + xmax)/2; 00013 mid.y = (ymin + ymax)/2; 00014 } 00015 00016 VLCCluster::VLCCluster() 00017 { 00018 } 00019 00020 void VLCCluster::setCandidate(bool c) 00021 { 00022 candidate = c; 00023 00024 } 00025 00026 bool VLCCluster::getCandidate() 00027 { 00028 return(candidate); 00029 } 00030 00031 double VLCCluster::getYMin() 00032 { 00033 return(ymin); 00034 } 00035 00036 double VLCCluster::getXMin() 00037 { 00038 return(xmin); 00039 } 00040 00041 double VLCCluster::getXMax() 00042 { 00043 return(xmax); 00044 } 00045 00046 double VLCCluster::getYMax() 00047 { 00048 return(ymax); 00049 } 00050 00051 00052 Vector2<double> VLCCluster::getMidpoint() 00053 { 00054 return(mid); 00055 } 00056 00057 std::list<std::list<VLCCluster>::iterator>::iterator VLCCluster::getVPointer() 00058 { 00059 return(vpointer); 00060 } 00061 00062 void VLCCluster::setVPointer(std::list<std::list<VLCCluster>::iterator>::iterator vp) 00063 { 00064 vpointer = vp; 00065 } 00066 00067 std::list<std::list<VLCCluster>::iterator>::iterator VLCCluster::getHPointer() 00068 { 00069 return(hpointer); 00070 } 00071 00072 void VLCCluster::setHPointer(std::list<std::list<VLCCluster>::iterator>::iterator hp) 00073 { 00074 hpointer = hp; 00075 } 00076
1.3.6