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

Class: Image_3D_Driver_ASCII

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

Class Overview

Image_3D_Driver
   |
   --Image_3D_Driver_ASCII

Image_3D_Driver


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 5]
Image_3D_Driver
  • Author: Kore Nordmann <3d@kore-nordmann.de>
  • Version: Release: @package_version@
  • Copyright: 1997-2005 Kore Nordmann


[ Top ]


Class Variables

$_charArray = array(
        0   => ' ',
        1   => '`',
        2   => '\'',
        3   => '^',
        4   => '-',
        5   => '`',
        6   => '/',
        7   => '/',
        8   => '-',
        9   => '\\',
        10  => '\'',
        11  => '\\',
        12  => '~',
        13  => '+',
        14  => '+',
        15  => '*',
        16  => '.',
        17  => '|',
        18  => '/',
        19  => '/',
        20  => '|',
        21  => '|',
        22  => '/',
        23  => '/',
        24  => '/',
        25  => ')',
        26  => '/',
        27  => 'Y',
        28  => 'r',
        29  => '}',
        30  => '/',
        31  => 'P',
        32  => '.',
        33  => '\\',
        34  => '|',
        35  => '^',
        36  => '\\',
        37  => '\\',
        38  => '(',
        39  => '(',
        40  => ':',
        41  => '\\',
        42  => '|',
        43  => 'I',
        44  => ';',
        45  => '\\',
        46  => '{',
        47  => '9',
        48  => '_',
        49  => '_',
        50  => '_',
        51  => 'C',
        52  => '<',
        53  => 'L',
        54  => 'l',
        55  => 'C',
        56  => '>',
        57  => 'J',
        58  => 'J',
        59  => 'J',
        60  => 'o',
        61  => 'b',
        62  => 'd',
        63  => '#',
    )

[line 14]

  • Access: protected

Type:   mixed


[ Top ]

$_filetype =

[line 9]

  • Access: protected

Type:   mixed


[ Top ]

$_heigth =

[line 11]

  • Access: protected

Type:   mixed


[ Top ]

$_image =

[line 12]

  • Access: protected

Type:   mixed
Overrides:   Array


[ Top ]

$_points =

[line 10]

  • Access: protected

Type:   mixed


[ Top ]

$_size =

[line 8]

  • Access: protected

Type:   mixed


[ Top ]



Method Detail

__construct (Constructor)   [line 81]

Image_3D_Driver_ASCII __construct( )

  • Access: public

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

createImage   [line 97]

void createImage( $x, $y)

  • Access: public

Overrides Image_3D_Driver::createImage() (Initialize image)

Parameters:

   $x   — 
   $y   — 

[ Top ]

drawGradientPolygon   [line 192]

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

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

void getSupportedShading( )

  • Access: public

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

reset   [line 89]

void reset( )

  • Access: public

[ Top ]

save   [line 217]

void save( $file)

  • Access: public

Overrides Image_3D_Driver::save() (Save image)

Parameters:

   $file   — 

[ Top ]

setBackground   [line 120]

void setBackground( Image_3D_Color $color)

  • Access: public

Overrides Image_3D_Driver::setBackground() (Sets Background)

Parameters:

Image_3D_Color   $color   — 

[ Top ]

setFiletye   [line 197]

void setFiletye( $type)

  • Access: public

Parameters:

   $type   — 

[ Top ]

_drawLine   [line 131]

void _drawLine( Image_3D_Point $p1, Image_3D_Point $p2)

  • Access: protected

Parameters:

Image_3D_Point   $p1   — 
Image_3D_Point   $p2   — 

[ Top ]

_getAnsiColorCode   [line 208]

void _getAnsiColorCode( $color, [ $last = ''])

  • Access: public

Parameters:

   $color   — 
   $last   — 

[ Top ]

_getColor   [line 102]

void _getColor( Image_3D_Color $color, [ $alpha = 1.])

  • Access: protected

Parameters:

Image_3D_Color   $color   — 
   $alpha   — 

[ Top ]

_getPolygonOutlines   [line 148]

void _getPolygonOutlines( $pointArray)

  • Access: protected

Parameters:

   $pointArray   — 

[ Top ]

_mixColor   [line 108]

void _mixColor( $old, $new)

  • Access: protected

Parameters:

   $old   — 
   $new   — 

[ Top ]


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