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

Class: Image_GIS_Renderer

Source Location: /Image_GIS-1.1.2/Image/GIS/Renderer.php

Class Overview


Renderer Base Class.


Author(s):

Copyright:

  • Copyright &copy; 2002-2005 Jan Kneschke <jan@kneschke.de> and Sebastian Bergmann <sb@sebastian-bergmann.de>

Variables

Methods


Child classes:

Image_GIS_Renderer_GD
GD Renderer.
Image_GIS_Renderer_SVG
SVG Renderer.

Inherited Variables

Inherited Methods


Class Details

[line 32]
Renderer Base Class.


[ Top ]


Class Variables

$debug =

[line 38]

Set to TRUE to enable debugging.

Type:   boolean


[ Top ]

$height =

[line 62]

Height of the image.

Type:   integer


[ Top ]

$max =  false

[line 48]


Type:   array


[ Top ]

$min =  false

[line 43]


Type:   array


[ Top ]

$width =

[line 55]

Width of the image.

Type:   integer


[ Top ]



Method Detail

Image_GIS_Renderer (Constructor)   [line 72]

Image_GIS_Renderer Image_GIS_Renderer( mixed $width, integer $height, boolean $debug)

Constructor.
  • Access: public

Parameters:

mixed   $width     
integer   $height     
boolean   $debug     

[ Top ]

drawClippedLine   [line 119]

void drawClippedLine( float $x1, float $y1, float $x2, float $y2, mixed $color)

Draws a clipped line from ($x1, $y1) to ($x2, $y2) using $color.
  • Access: public

Parameters:

float   $x1     
float   $y1     
float   $x2     
float   $y2     
mixed   $color     

[ Top ]

drawLine   [line 249]

void drawLine( float $x1, float $y1, float $x2, float $y2, float $r, float $g, float $b)

Draws a line from ($x1, $y1) to ($x2, $y2) using the color rgb($r, $g, $b).
  • Abstract:
  • Access: public

Overridden in child classes as:

Image_GIS_Renderer_GD::drawLine()
Draws a line from ($x1, $y1) to ($x2, $y2) using the color rgb($r, $g, $b).
Image_GIS_Renderer_SVG::drawLine()
Draws a line from ($x1, $y1) to ($x2, $y2) using the color rgb($r, $g, $b).

Parameters:

float   $x1     
float   $y1     
float   $x2     
float   $y2     
float   $r     
float   $g     
float   $b     

[ Top ]

factory   [line 99]

object &factory( string $renderer, mixed $width, integer $height, boolean $debug)

Factory.
  • Access: public

Parameters:

string   $renderer     
mixed   $width     
integer   $height     
boolean   $debug     

[ Top ]

getRange   [line 159]

array getRange( )

Returns the range of the data to be rendered.
  • Since: Image_GIS 1.0.1
  • Access: public

[ Top ]

polar2image   [line 175]

void polar2image( float $polarCoordinate, string $direction)

Converts a polar coordinate to an image coordinate.
  • Access: public

Parameters:

float   $polarCoordinate     
string   $direction     

[ Top ]

render   [line 197]

void render( array $lineSets)

Renders the image.
  • Access: public

Parameters:

array   $lineSets     

[ Top ]

saveImage   [line 259]

boolean saveImage( string $filename)

Saves the rendered image to a given file.
  • Abstract:
  • Access: public

Overridden in child classes as:

Image_GIS_Renderer_GD::saveImage()
Saves the rendered image to a given file.
Image_GIS_Renderer_SVG::saveImage()
Saves the rendered image to a given file.

Parameters:

string   $filename     

[ Top ]

setRange   [line 230]

void setRange( float $x1, float $x2, float $y1, float $y2)

Sets the range of the data to be rendered.
  • Access: public

Parameters:

float   $x1     
float   $x2     
float   $y1     
float   $y2     

[ Top ]

showImage   [line 267]

void showImage( )

Shows the rendered image.
  • Abstract:
  • Access: public

Overridden in child classes as:

Image_GIS_Renderer_GD::showImage()
Shows the rendered image.
Image_GIS_Renderer_SVG::showImage()
Shows the rendered image.

[ Top ]


Documentation generated on Tue, 05 Oct 2010 15:30:02 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.