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

Class: Image_3D_Driver_SVGControl

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

Class Overview

Image_3D_Driver
   |
   --Image_3D_Driver_SVGControl

Creates a SVG, to move and rotate 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 34]
Creates a SVG, to move and rotate the 3D-object at runtime


[ Top ]


Class Variables

$_background =

[line 58]

Rectangle with background-color
  • Access: protected

Type:   mixed


[ Top ]

$_gradients =

[line 54]

Array of gradients
  • Access: protected

Type:   mixed


[ Top ]

$_id =

[line 49]

Current, increasing element-id (integer)
  • Access: protected

Type:   mixed


[ Top ]

$_polygones =

[line 62]

Array of polygones
  • Access: protected

Type:   mixed


[ Top ]

$_x =

[line 40]

Width of the image
  • Access: protected

Type:   mixed


[ Top ]

$_y =

[line 44]

Height of the image
  • Access: protected

Type:   mixed


[ Top ]



Method Detail

__construct (Constructor)   [line 68]

Image_3D_Driver_SVGControl __construct( )

Constructor
  • Access: public

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

createImage   [line 85]

void createImage( float $x, float $y)

Creates image header
  • 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 195]

void drawGradientPolygon( Image_3D_Polygon $polygon)

  • Access: public

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

Parameters:

Image_3D_Polygon   $polygon     

[ Top ]

drawPolygon   [line 174]

void drawPolygon( Image_3D_Polygon $polygon)

  • Access: public

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

Parameters:

Image_3D_Polygon   $polygon     

[ Top ]

getSupportedShading   [line 610]

void getSupportedShading( )

  • Access: public

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

save   [line 561]

void save( $file)

  • Access: public

Overrides Image_3D_Driver::save() (Save image)

Parameters:

   $file     

[ Top ]

setBackground   [line 110]

void setBackground( Image_3D_Color $color)

Adds coloured background to the image

Draws a rectangle with the size of the image and the passed colour

  • Access: public

Overrides Image_3D_Driver::setBackground() (Sets Background)

Parameters:

Image_3D_Color   $color     Background colour of the image

[ Top ]

_addGradient   [line 158]

void _addGradient( $string)

  • Access: protected

Parameters:

   $string     

[ Top ]

_addPolygon   [line 166]

void _addPolygon( $string)

  • Access: protected

Parameters:

   $string     

[ Top ]

_getControls   [line 453]

string _getControls( )

Creates controls for moving and rotating the object
  • Access: protected

[ Top ]

_getScript   [line 204]

string _getScript( )

Creates scripting area for moving and rotating the object
  • Access: protected

[ Top ]

_getStop   [line 136]

void _getStop( Image_3D_Color $color, [ $offset = 0], [ $alpha = null])

  • Access: protected

Parameters:

Image_3D_Color   $color     
   $offset     
   $alpha     

[ Top ]

_getStyle   [line 119]

void _getStyle( Image_3D_Color $color)

  • Access: protected

Parameters:

Image_3D_Color   $color     

[ Top ]


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