label; } function setLabel($label) { $this->label = $label; } function addCoordinates ($coord) { $this->realx[count($this->realx)] = $coord[0]; $this->realy[count($this->realy)] = $coord[1]; } # function addCoordinates ($coord, $pos) { # $this->pixx[count($this->pixx)] = $pos[0]; # $this->pixy[count($this->pixy)] = $pos[1]; # $this->realx[count($this->realx)] = $coord[0]; # $this->realy[count($this->realy)] = $coord[1]; # } # function getCoordinates() { # $data = array("x" => $this->pixx, "y" => $this->pixy); # return $data; # } function getCoordinates() { $data = array("x" => $this->realx, "y" => $this->realy); return $data; } } class _polygon extends _geomObj{ function getType() { return "polygon"; } } class _point extends _geomObj{ function getType() { return "point"; } } class _line extends _geomObj{ function getType() { return "line"; } } ?>