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

Class: Image_3D_Driver

Source Location: /Image_3D-0.4.2/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_ImageMagick
Image_3D_Driver
Image_3D_Driver_GD
Image_3D_Driver
Image_3D_Driver_DynamicCanvas
Creates a HTML document, with embedded javascript code to draw, move, rotate and export the 3D-object at runtime
Image_3D_Driver_SVG
Image_3D_Driver
Image_3D_Driver_ZBuffer
Image_3D_Driver
Image_3D_Driver_ImageCanvas
Image_3D_Driver
Image_3D_Driver_SVGControl
Creates a SVG, to move and rotate the 3D-object at runtime
Image_3D_Driver_ASCII
Image_3D_Driver

Inherited Variables

Inherited Methods


Class Details

[line 49]
Image_3D_Driver


[ Top ]


Class Variables

$_image =

[line 59]

Worlds polygones
  • Access: protected

Type:   mixed


[ Top ]



Method Detail

__construct (Constructor)   [line 71]


createImage   [line 89]

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_ImageMagick::createImage()
Image_3D_Driver_GD::createImage()
Image_3D_Driver_DynamicCanvas::createImage()
Create the inital image
Image_3D_Driver_SVG::createImage()
Image_3D_Driver_ZBuffer::createImage()
Image_3D_Driver_ImageCanvas::createImage()
Image_3D_Driver_SVGControl::createImage()
Creates image header
Image_3D_Driver_ASCII::createImage()

Parameters:

integer   $x   —  Width
integer   $y   —  Height

[ Top ]

drawGradientPolygon   [line 132]

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_ImageMagick::drawGradientPolygon()
Image_3D_Driver_GD::drawGradientPolygon()
Image_3D_Driver_DynamicCanvas::drawGradientPolygon()
Draw a specified polygon utilizing gradients between his points for color representation (Gauroud-Shading)
Image_3D_Driver_SVG::drawGradientPolygon()
Image_3D_Driver_ZBuffer::drawGradientPolygon()
Image_3D_Driver_ImageCanvas::drawGradientPolygon()
Image_3D_Driver_SVGControl::drawGradientPolygon()
Image_3D_Driver_ASCII::drawGradientPolygon()

Parameters:

Image_3D_Polygo   $polygon   —  Polygon

[ Top ]

drawPolygon   [line 117]

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_ImageMagick::drawPolygon()
Image_3D_Driver_GD::drawPolygon()
Image_3D_Driver_DynamicCanvas::drawPolygon()
Draw a specified polygon
Image_3D_Driver_SVG::drawPolygon()
Image_3D_Driver_ZBuffer::drawPolygon()
Image_3D_Driver_ImageCanvas::drawPolygon()
Image_3D_Driver_SVGControl::drawPolygon()
Image_3D_Driver_ASCII::drawPolygon()

Parameters:

Image_3D_Polygon   $polygon   —  Polygon

[ Top ]

getSupportedShading   [line 159]

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_ImageMagick::getSupportedShading()
Image_3D_Driver_GD::getSupportedShading()
Image_3D_Driver_DynamicCanvas::getSupportedShading()
Return the shading methods this output driver is capable of
Image_3D_Driver_SVG::getSupportedShading()
Image_3D_Driver_ZBuffer::getSupportedShading()
Image_3D_Driver_ImageCanvas::getSupportedShading()
Image_3D_Driver_SVGControl::getSupportedShading()
Image_3D_Driver_ASCII::getSupportedShading()

[ Top ]

save   [line 146]

void save( string $file)

Save image

Save image to file

  • Abstract:
  • Access: public

Overridden in child classes as:

Image_3D_Driver_ImageMagick::save()
Image_3D_Driver_GD::save()
Image_3D_Driver_DynamicCanvas::save()
Save all the gathered information to a html file
Image_3D_Driver_SVG::save()
Image_3D_Driver_ZBuffer::save()
Image_3D_Driver_ImageCanvas::save()
Image_3D_Driver_SVGControl::save()
Image_3D_Driver_ASCII::save()

Parameters:

string   $file   —  File

[ Top ]

setBackground   [line 103]

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_ImageMagick::setBackground()
Image_3D_Driver_GD::setBackground()
Image_3D_Driver_DynamicCanvas::setBackground()
Set the background color of the image
Image_3D_Driver_SVG::setBackground()
Image_3D_Driver_ZBuffer::setBackground()
Image_3D_Driver_ImageCanvas::setBackground()
Image_3D_Driver_SVGControl::setBackground()
Adds coloured background to the image
Image_3D_Driver_ASCII::setBackground()

Parameters:

Image_3D_Color   $color   —  Backgroundcolor

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:48:13 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.