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

Class: Image_3D_Driver_DynamicCanvas

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

Class Overview

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


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 1997-2005 Kore Nordmann

Variables

Methods


Inherited Variables

Inherited Methods

Class: Image_3D_Driver

Image_3D_Driver::__construct()
Constructor for Image_3D_Driver
Image_3D_Driver::createImage()
Initialize image
Image_3D_Driver::drawGradientPolygon()
Draws a gauroud shaded polygon
Image_3D_Driver::drawPolygon()
Draws a flat shaded polygon
Image_3D_Driver::getSupportedShading()
Return supported shadings
Image_3D_Driver::save()
Save image
Image_3D_Driver::setBackground()
Sets Background

Class Details

[line 31]
Creates a HTML document, with embedded javascript code to draw, move, rotate and export the 3D-object at runtime
  • Author: Jakob Westhoff <jakob@westhoffswelt.de>
  • Version: Release: @package_version@
  • Copyright: 1997-2005 Kore Nordmann


[ Top ]


Class Variables

$_background =

[line 59]

Background Color of the rendered image
  • Access: protected

Type:   string


[ Top ]

$_name =

[line 68]

Name of the Render created from the filename Needed for the correct creation of the Image3D java class
  • Access: protected

Type:   mixed


[ Top ]

$_polygones =

[line 52]

Polygones created during the rendering process
  • Access: protected

Type:   array


[ Top ]

$_x =

[line 39]

Width of the image
  • Access: protected

Type:   integer


[ Top ]

$_y =

[line 45]

Height of the image
  • Access: protected

Type:   integer


[ Top ]



Method Detail

__construct (Constructor)   [line 73]

Image_3D_Driver_DynamicCanvas __construct( )

Class constructor
  • Access: public

Overrides Image_3D_Driver::__construct() (Constructor for Image_3D_Driver)
[ Top ]

createImage   [line 89]

void createImage( float $x, float $y)

Create the inital image
  • Access: public

Overrides Image_3D_Driver::createImage() (Initialize image)

Parameters:

float   $x     Width of the image
float   $y     Height of the image

[ Top ]

drawGradientPolygon   [line 181]

void drawGradientPolygon( Image_3D_Polygon $polygon)

Draw a specified polygon utilizing gradients between his points for color representation (Gauroud-Shading)
  • Access: public

Overrides Image_3D_Driver::drawGradientPolygon() (Draws a gauroud shaded polygon)

Parameters:

Image_3D_Polygon   $polygon     Polygon to draw

[ Top ]

drawPolygon   [line 158]

void drawPolygon( Image_3D_Polygon $polygon)

Draw a specified polygon
  • Access: public

Overrides Image_3D_Driver::drawPolygon() (Draws a flat shaded polygon)

Parameters:

Image_3D_Polygon   $polygon     Polygon to draw

[ Top ]

getSupportedShading   [line 318]

array getSupportedShading( )

Return the shading methods this output driver is capable of
  • Return: Shading methods supported by this driver
  • Access: public

Overrides Image_3D_Driver::getSupportedShading() (Return supported shadings)
[ Top ]

save   [line 308]

void save( string $file)

Save all the gathered information to a html file
  • Access: public

Overrides Image_3D_Driver::save() (Save image)

Parameters:

string   $file     File to write output to

[ Top ]

setBackground   [line 102]

void setBackground( Image_3D_Color $color)

Set the background color of the image
  • Access: public

Overrides Image_3D_Driver::setBackground() (Sets Background)

Parameters:

Image_3D_Color   $color     Desired background color of the image

[ Top ]

_addPolygon   [line 146]

void _addPolygon( $points, $colors)

Add a polygon to the polygones array
  • Access: protected

Parameters:

array   $points     Array of points which represent the polygon to add
array   $colors     Array of maximal three colors. The second and the third color are allowed to be null

[ Top ]

_getRgba   [line 120]

array _getRgba( Image_3D_Color $color, [float $alpha = null])

Create an appropriate array representation from a Image_3D_Color object
  • Return: Array of color values reflecting the different color components of the input object
  • Access: protected

Parameters:

Image_3D_Color   $color     Color to transform to rgba syntax
float   $alpha     optional Override the alpha value set in the Image_3D_Color object

[ Top ]


Documentation generated on Sun, 08 Apr 2012 13:30:10 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.