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

Class: Image_3D_Renderer

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

Class Overview


Image_3D_Renderer


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 1997-2005 Kore Nordmann

Methods


Child classes:

Image_3D_Renderer_Isometric
Image_3D_Renderer_Isometric
Image_3D_Renderer_Perspectively
Image_3D_Renderer_Perspectively

Inherited Variables

Inherited Methods


Class Details

[line 51]
Image_3D_Renderer


[ Top ]


Method Detail

addLights   [line 251]

void addLights( mixed $lights, array $objetcs)

Add objects to renderer

Add objects to renderer. Only objects which are added will be displayed


Parameters:

array   $objetcs     Array of objects

[ Top ]

getLightCount   [line 357]

integer getLightCount( )

Return light count

Return the number of used lights in this image

  • Return: Number of Lights

[ Top ]

getPointCount   [line 343]

integer getPointCount( )

Return point count

Return the number of used points in this image

  • Return: Number of Points

[ Top ]

getPolygonCount   [line 329]

integer getPolygonCount( )

Return polygon count

Return the number of used polygones in this image

  • Return: Number of Polygones

[ Top ]

render   [line 448]

void render( string $file)

Render the image

Render the image into the metioned file


Parameters:

string   $file     Filename

[ Top ]

reset   [line 148]

void reset( )

Reset all changeable variables

Initialises the environment


[ Top ]

setBackgroundColor   [line 282]

void setBackgroundColor( mixed Image_3D_Color$color, Image_3D_Color $color)

Set the Backgroundcolor

Set the backgroundcolor of the destination image.


Parameters:

Image_3D_Color   $color     Backgroundcolor

[ Top ]

setDriver   [line 313]

void setDriver( mixed Image_3D_Driver$driver, Image_3D_Driver $driver)

Set the driver

Set the driver the image should be rendered with


Parameters:

Image_3D_Driver   $driver     Driver to use

[ Top ]

setShading   [line 298]

void setShading( integer $shading)

Set the quality of the shading

Set the quality of the shading. Standard value is the maximum shading quality the driver is able to render.


Parameters:

integer   $shading     Shading quality

[ Top ]

setSize   [line 267]

void setSize( integer $x, integer $y)

Set image size

Set the size of the destination image.


Parameters:

integer   $x     Width
integer   $y     Height

[ Top ]


Documentation generated on Mon, 07 Nov 2005 09:30:28 -0500 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.