PHP Class ThreeDGraph, GotCms

Inheritance: extends GridGraph
ファイルを表示 Open project: gotcms/gotcms Class Usage Examples

Protected Methods

Method Description
AngleRadians ( ) Returns the projection angle in radians
CalcAxes ( ) Calculates the sizes of the 3D axes and grid
ClampHorizontal ( $val )
ClampVertical ( $val ) clamps a value to the grid boundaries
GetAxes ( $ends, &$x_len, &$y_len ) Adjust the axis sizes to account for the block depth
GetHorizontalDivision ( ) Figure out how many bars there are
Grid ( ) Draws the grid behind the bar / line graph
GuidelinePath ( $axis, $value, $depth, &$x, &$y, &$w, &$h ) Returns the path for a guideline, and sets dimensions of the straight bit
Project ( $x, $y, $z ) Converts x,y,z coordinates into flat x,y

Private Methods

Method Description
Adjust3DAxes ( $count, &$x_len, &$y_len ) Adjust axes for block spacing, returning the depth unit

Method Details

AngleRadians() protected method

Returns the projection angle in radians
protected AngleRadians ( )

CalcAxes() protected method

Calculates the sizes of the 3D axes and grid
protected CalcAxes ( )

ClampHorizontal() protected method

protected ClampHorizontal ( $val )

ClampVertical() protected method

clamps a value to the grid boundaries
protected ClampVertical ( $val )

GetAxes() protected method

Adjust the axis sizes to account for the block depth
protected GetAxes ( $ends, &$x_len, &$y_len )

GetHorizontalDivision() protected method

Figure out how many bars there are
protected GetHorizontalDivision ( )

Grid() protected method

Draws the grid behind the bar / line graph
protected Grid ( )

GuidelinePath() protected method

Returns the path for a guideline, and sets dimensions of the straight bit
protected GuidelinePath ( $axis, $value, $depth, &$x, &$y, &$w, &$h )

Project() protected method

Converts x,y,z coordinates into flat x,y
protected Project ( $x, $y, $z )