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

Class: Image_3D_Driver_SVGControl

Source Location: /Image_3D-0.4.0/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 57]

Rectangle with background-color
  • Access: protected

Type:   mixed


[ Top ]

$_gradients =

[line 53]

Array of gradients
  • Access: protected

Type:   mixed


[ Top ]

$_id =

[line 48]

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

Type:   mixed


[ Top ]

$_polygones =

[line 61]

Array of polygones
  • Access: protected

Type:   mixed


[ Top ]

$_x =

[line 39]

Width of the image
  • Access: protected

Type:   mixed


[ Top ]

$_y =

[line 43]

Height of the image
  • Access: protected

Type:   mixed


[ Top ]



Method Detail

__construct (Constructor)   [line 67]

Image_3D_Driver_SVGControl __construct( )

Constructor
  • Access: public

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

createImage   [line 80]

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 173]

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 158]

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 497]

void getSupportedShading( )

  • Access: public

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

save   [line 464]

void save( $file)

  • Access: public

Overrides Image_3D_Driver::save() (Save image)

Parameters:

   $file   — 

[ Top ]

setBackground   [line 102]

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 146]

void _addGradient( $string)

  • Access: protected

Parameters:

   $string   — 

[ Top ]

_addPolygon   [line 152]

void _addPolygon( $string)

  • Access: protected

Parameters:

   $string   — 

[ Top ]

_getControls   [line 388]

void _getControls( )

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

[ Top ]

_getScript   [line 180]

void _getScript( )

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

[ Top ]

_getStop   [line 125]

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

  • Access: protected

Parameters:

Image_3D_Color   $color   — 
   $offset   — 
   $alpha   — 

[ Top ]

_getStyle   [line 110]

void _getStyle( Image_3D_Color $color)

  • Access: protected

Parameters:

Image_3D_Color   $color   — 

[ Top ]


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