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

Class: Image_3D_Driver

Source Location: /Image_3D-0.3.0/Image/3D/Driver.php

Class Overview


Image_3D_Driver


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 1997-2005 Kore Nordmann

Variables

Methods


Child classes:

Image_3D_Driver_GD
Image_3D_Driver
Image_3D_Driver_SVGRotate
Creates a SVG, to move and rotate the 3D-object at runtime
Image_3D_Driver_SVG
Image_3D_Driver
Image_3D_Driver_ZBuffer
Image_3D_Driver
Image_3D_Driver_ASCII
Image_3D_Driver

Inherited Variables

Inherited Methods


Class Details

[line 51]
Image_3D_Driver


[ Top ]


Class Variables

$_image =

[line 60]

Worlds polygones
  • Access: protected

Type:   mixed


[ Top ]



Method Detail

__construct (Constructor)   [line 72]

Image_3D_Driver __construct( )

Constructor for Image_3D_Driver

Initialises the environment

  • Return: Instance of Renderer
  • Access: public

Overridden in child classes as:

Image_3D_Driver_GD::__construct()
Image_3D_Driver_SVGRotate::__construct()
Constructor
Image_3D_Driver_SVG::__construct()
Image_3D_Driver_ZBuffer::__construct()
Image_3D_Driver_ASCII::__construct()

[ Top ]

createImage   [line 88]

void createImage( integer $x, integer $y)

Initialize image

Initialize the image with given width and height

  • Abstract:
  • Access: public

Overridden in child classes as:

Image_3D_Driver_GD::createImage()
Image_3D_Driver_SVGRotate::createImage()
Creates image header
Image_3D_Driver_SVG::createImage()
Image_3D_Driver_ZBuffer::createImage()
Image_3D_Driver_ASCII::createImage()

Parameters:

integer   $x   —  Width
integer   $y   —  Height

[ Top ]

drawGradientPolygon   [line 128]

void drawGradientPolygon( Image_3D_Polygon $polygon)

Draws a gauroud shaded polygon

Draws a gauroud shaded polygon. Methd uses the colors of the polygones points and tries to create a gradient filling for the polygon.

  • Abstract:
  • Access: public

Overridden in child classes as:

Image_3D_Driver_GD::drawGradientPolygon()
Image_3D_Driver_SVGRotate::drawGradientPolygon()
Image_3D_Driver_SVG::drawGradientPolygon()
Image_3D_Driver_ZBuffer::drawGradientPolygon()
Image_3D_Driver_ASCII::drawGradientPolygon()

Parameters:

Image_3D_Polygon   $polygon   —  Polygon

[ Top ]

drawPolygon   [line 114]

void drawPolygon( Image_3D_Polygon $polygon)

Draws a flat shaded polygon

Draws a flat shaded polygon. Methd uses the polygon color

  • Abstract:
  • Access: public

Overridden in child classes as:

Image_3D_Driver_GD::drawPolygon()
Image_3D_Driver_SVGRotate::drawPolygon()
Image_3D_Driver_SVG::drawPolygon()
Image_3D_Driver_ZBuffer::drawPolygon()
Image_3D_Driver_ASCII::drawPolygon()

Parameters:

Image_3D_Polygon   $polygon   —  Polygon

[ Top ]

getSupportedShading   [line 154]

array getSupportedShading( )

Return supported shadings

Return an array with the shading types the driver supports

  • Return: Array with supported shading types
  • Access: public

Overridden in child classes as:

Image_3D_Driver_GD::getSupportedShading()
Image_3D_Driver_SVGRotate::getSupportedShading()
Image_3D_Driver_SVG::getSupportedShading()
Image_3D_Driver_ZBuffer::getSupportedShading()
Image_3D_Driver_ASCII::getSupportedShading()

[ Top ]

save   [line 141]

void save( string $file)

Save image

Save image to file

  • Abstract:
  • Access: public

Overridden in child classes as:

Image_3D_Driver_GD::save()
Image_3D_Driver_SVGRotate::save()
Image_3D_Driver_SVG::save()
Image_3D_Driver_ZBuffer::save()
Image_3D_Driver_ASCII::save()

Parameters:

string   $file   —  File

[ Top ]

setBackground   [line 101]

void setBackground( Image_3D_Color $color)

Sets Background

Set the background for the image

  • Abstract:
  • Access: public

Overridden in child classes as:

Image_3D_Driver_GD::setBackground()
Image_3D_Driver_SVGRotate::setBackground()
Adds coloured background to the image
Image_3D_Driver_SVG::setBackground()
Image_3D_Driver_ZBuffer::setBackground()
Image_3D_Driver_ASCII::setBackground()

Parameters:

Image_3D_Color   $color   —  Backgroundcolor

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:04:19 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.