TeeChartPHP
[ class tree: TeeChartPHP ] [ index: TeeChartPHP ] [ all elements ]

Source for file Point3D.php

Documentation is available at Point3D.php

  1. <?php
  2.  
  3. /**
  4.  * Point3D class
  5.  *
  6.  * Description: XYZ Point holder
  7.  *
  8.  * @author
  9.  * @copyright (c) 1995-2010 by Steema Software SL. All Rights Reserved. <info@steema.com>
  10.  * @version 1.0
  11.  * @package TeeChartPHP
  12.  * @link http://www.steema.com
  13.  */
  14.  
  15. class Point3D {
  16.  
  17.     public $x;
  18.     public $y;
  19.     public $z;
  20.  
  21.     // Interceptors
  22.     function __get$property {
  23.       $method ="get{$property}";
  24.       if method_exists$this$method ) ) {
  25.         return $this->$method();
  26.       }
  27.     }
  28.  
  29.     function __set $property,$value {
  30.       $method ="set{$property}";
  31.       if method_exists$this$method ) ) {
  32.         return $this->$method($value);
  33.       }
  34.     }
  35.  
  36.     public function Point3D($x=0$y=0$z=0{
  37.         $this->x = $x;
  38.         $this->y = $y;
  39.         $this->z = $z;
  40.     }
  41.  
  42.     /**
  43.      * The X location in pixels.
  44.      *
  45.      * @return int 
  46.      */
  47.     public function getX({
  48.         return $this->x;
  49.     }
  50.  
  51.     /**
  52.      * Sets the X location in pixels.
  53.      *
  54.      * @param value int
  55.      */
  56.     public function setX($value{
  57.         $this->x = $value;
  58.     }
  59.  
  60.     /**
  61.      * The Y location in pixels.
  62.      *
  63.      * @return int 
  64.      */
  65.     public function getY({
  66.         return $this->y;
  67.     }
  68.  
  69.     /**
  70.      * Sets the Y location in pixels.
  71.      *
  72.      * @param value int
  73.      */
  74.     public function setY($value{
  75.         $this->y = $value;
  76.     }
  77.  
  78.     /**
  79.      * The Z location in pixels.
  80.      *
  81.      * @return int 
  82.      */
  83.     public function getZ({
  84.         return $this->z;
  85.     }
  86.  
  87.     /**
  88.      * Sets the Z location in pixels.
  89.      *
  90.      * @param value int
  91.      */
  92.     public function setZ($value{
  93.         $this->z = $value;
  94.     }
  95. }
  96.  
  97. ?>

Documentation generated on Wed, 16 Jun 2010 12:07:26 +0200 by phpDocumentor 1.4.1