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

Class: Graphics3DHTML5

Source Location: /drawing/CanvasHTML5.php

Class Overview

TeeBase
   |
   --GraphicsGD
      |
      --Graphics3DHTML5

CanvasHTML5 class


Author(s):

Version:

  • 1.0

Copyright:

  • (c) 1995-2012 by Steema Software SL. All Rights Reserved. <info@steema.com>

Methods


Inherited Variables

Inherited Methods

Class: GraphicsGD

GraphicsGD::GraphicsGD()
Creates a new Graphics object
GraphicsGD::applyDark()
Converts the Color parameter to a darker color.
The HowMuch parameter indicates the quantity of dark increment.
GraphicsGD::arc()
GraphicsGD::arrow()
Draws a line with an arrow head of ArrowWidth and ArrowHeight dimensions in pixels.
GraphicsGD::calc3DPoint()
GraphicsGD::calc3DPos()
Calculates and returns the XY position in pixels of the XYZ 3D coordinate.
Can be used when custom drawing using 3D XYZ coordinates are returned from the axes or not.
GraphicsGD::calc3DPosDouble()
Calculates and returns the XY position as double of the XYZ 3D coordinate.
Can be used when custom drawing using 3D XYZ coordinates are returned from the axes or not.
GraphicsGD::calcPerspective()
GraphicsGD::calcTrigValues()
GraphicsGD::changed()
GraphicsGD::clipCube()
Creates a cubic Windows GDI clipping region.
GraphicsGD::clipPolygon()
Creates a Windows GDI clipping region and selects it into TChart.<!-- -->Canvas device context handle.
GraphicsGD::clipRectangle()
Creates a Windows GDI clipping region and selects it into TChart.<!-- -->Canvas device context handle.
GraphicsGD::cone()
Paints a cone with Cone Percent.
GraphicsGD::convexHull()
Calculates the boundary points of the convex hull of a set of 2D xy points.&nbsp;Original
GraphicsGD::createImage()
Creates and initialize the image
GraphicsGD::cube()
Draws a Cube with Dark Sides.
GraphicsGD::cuber()
GraphicsGD::culling()
GraphicsGD::cylinder()
Draws cylinder toggle Boolean for vertical or horizontal cylinder.
GraphicsGD::doReflection()
GraphicsGD::doRev()
GraphicsGD::draw()
Paints the image in rectangle r.
GraphicsGD::drawBeziers()
Draws Bezier splines for the Point array p
GraphicsGD::drawBeziersRect()
Draws Bezier splines for the Point array p at displacement z
GraphicsGD::drawRoundedBorders()
GraphicsGD::ellipse()
Ellipse bounding Rect (X1,Y1,X2,Y2) at Z position at angle.
GraphicsGD::ellipsePoints()
GraphicsGD::ellipseRect()
Draws an Ellipse bounding Rectangle r.
GraphicsGD::ellipseRectZ()
Ellipse bounding Rectangle r at z depth.
GraphicsGD::ellipseRectZAngle()
Ellipse bounding rectangle r with Z offset at angle.
GraphicsGD::fontTextHeight()
Determines the Font Height to be used for outputted text when using the Drawing.
GraphicsGD::getBackColor()
Sets / returns the color used to fill spaces when displaying text or filling with brushes of different style other than bsSolid.
Brush.Visible must be set to true.
GraphicsGD::getBrush()
Determines the kind of brush used to fill the Canvas draw rectangle background.
The Brush.Visible method must be set to true.
GraphicsGD::getColorPaletteLength()
GraphicsGD::getDefaultColor()
Returns a color from global ColorPalette array variable.
GraphicsGD::getDefaultPattern()
Returns a valid Windows Brush Style from anpalette of many possible Brush styles.
GraphicsGD::getDirty()
GraphicsGD::getFont()
Determines the Font for outputted text when using the Drawing Canvas.
GraphicsGD::getFontDPI()
GraphicsGD::getFontHeight()
Defines the Height of the Font in pixels.
GraphicsGD::getImageInterlace()
GraphicsGD::getImageReflection()
GraphicsGD::getIZoomfactor()
GraphicsGD::getMetafiling()
GraphicsGD::getMonochrome()
GraphicsGD::getPen()
Indicates the kind of pen used to draw Canvas lines.
GraphicsGD::getRotationCenter()
Sets the Pixel location (using X,Y,Z) of the centre of rotation for use with the Aspect Rotation and Elevation properties.
GraphicsGD::getScreenHeight()
Returns the height, in pixels, of the Chart Panel.
It should be used when using Canvas methods to draw relative to the Panel height.
Note: You should NOT use TChart.Height.
GraphicsGD::getScreenWidth()
Returns the width, in pixels, of the Chart Panel.
GraphicsGD::getSmoothingMode()
The anti-alias mode for the Graphics Pen when Custom drawing.
GraphicsGD::getSupports3DText()
Returns if Canvas supports 3D Text or not.
GraphicsGD::getSupportsFullRotation()
Returns if Canvas can do rotation and elevation of more than 90 degree.
GraphicsGD::getTextAlign()
Gets / Sets the alignment used when displaying text using TextOut or TextOut3D.
GraphicsGD::getXCenter()
The X coordinate of the pixel location of the center of the 3D Canvas.
The origin of the pixel coordinate system is in the top left corner of the parent window.
GraphicsGD::getYCenter()
The Y coordinate of the pixel location of the center of the 3D Canvas.
The origin of the pixel coordinate system is in the top left corner of the parent window.
GraphicsGD::horizontalLine()
Draws a Horizontal at z depth position.
GraphicsGD::imagegradientellipse()
GraphicsGD::imagegradientellipsealpha()
GraphicsGD::initWindow()
GraphicsGD::internalApplyDark()
GraphicsGD::line()
Draws a straight line
GraphicsGD::lineTo()
Draws a line to Point with z depth offset.
GraphicsGD::moveTo()
Sets the value of PenPos to Point p before calling LineTo.
GraphicsGD::moveTo3D()
Sets the value of PenPos to 3D Point p before calling LineTo.
GraphicsGD::moveToXY()
Sets the value of PenPos to x and y co-ordinates before calling LineTo.
GraphicsGD::moveToXYZ()
Sets the value of PenPos to x, y and z co-ordinates before calling LineTo.
GraphicsGD::moveToZ()
Sets the value of PenPos to Point p with z depth offset before calling LineTo.
GraphicsGD::OrientRectangle()
GraphicsGD::outlinedBox()
Draw a filled gray box with thick borders and darker corners.
GraphicsGD::paintBevel()
GraphicsGD::pie()
Draws a 3D Pie slice using start Angle and end Angle and donut percent.
GraphicsGD::plane()
Draws a polygon (Point p1, Point p2) at Z depth offset.
GraphicsGD::planeFour3D()
Draws a polygon of four points.
GraphicsGD::pointAtDistance()
GraphicsGD::pointFromCircle()
GraphicsGD::pointInEllipse()
Returns true if point P is inside the ellipse bounded by Rect.
GraphicsGD::pointInHorizTriangle()
Returns true if point P is inside the horizontal triangle.
GraphicsGD::pointInPolygon()
Returns true if point P is inside Poly polygon.
GraphicsGD::pointInRect()
Obsolete.&nbsp;Please use Rectangle.<!-- -->Contains method.
GraphicsGD::pointInTriangle()
Returns true if point P is inside the vert triangle of x0y0, midxY1, x1y0.
GraphicsGD::PointToStr()
GraphicsGD::polygon()
GraphicsGD::polygonFourDouble()
GraphicsGD::polygonPoints()
GraphicsGD::polygonZ()
Draws a polygon with z position offset.
GraphicsGD::polyLine()
Draws a series of line segments to join point array p at z displacement.
GraphicsGD::printCentered()
Print text centered horizontally on the image.
GraphicsGD::printDiagonal()
Print text in diagonal.
GraphicsGD::printText()
Print text.
GraphicsGD::projection()
Internal use. Calculates the projection co-ordinates for rectangle Bounds.
GraphicsGD::pyramid()
Draws a vertical or horizontal Pyramid with optional dark shaded sides.
GraphicsGD::pyramidRect()
Draws a vertical or horizontal Pyramid with optional dark shaded sides.
GraphicsGD::pyramidTrunc()
Draws a pyramid with a truncated apex of variable thickness.
GraphicsGD::rectangle()
GraphicsGD::rectangleWithZ()
GraphicsGD::rectangleY()
Horizontal Rectangle from Left to Right, from Z0 to Z1 position, at Top Y.
GraphicsGD::rectangleZ()
Horizontal Rectangle from Left to Right, from Z0 to Z1 position, at Top Y.
GraphicsGD::rectCenter()
GraphicsGD::rectFromPolygon()
Returns the bounding rectangle for a given array of XY points.
GraphicsGD::rotateLabel()
Draws a rotated text String at the specified x,y and z coordinates with the RotDegree rotation angle.
RotDegree values must be between 0 and 360.
The string is drawn on the Chart Drawing Canvas.
GraphicsGD::rotateRectangle()
GraphicsGD::roundrectangle()
GraphicsGD::setBackColor()
GraphicsGD::setBrush()
Determines the kind of brush used to fill the Canvas draw rectangle background.
The Brush.Visible method must be set to true.
GraphicsGD::setColorPalette()
Specifies a color from global ColorPalette array variable.
GraphicsGD::setDirty()
GraphicsGD::setFont()
Determines the Font for outputted text when using the Drawing Canvas.
GraphicsGD::setGraphics()
GraphicsGD::setImageInterlace()
GraphicsGD::setImageReflection()
GraphicsGD::setIZoomfactor()
GraphicsGD::setMetafiling()
GraphicsGD::setPen()
Determines the kind of pen used to draw Canvas lines.
GraphicsGD::setSmoothingMode()
Sets the anti-alias mode for the Graphics Pen when Custom drawing.
GraphicsGD::setTextAlign()
GraphicsGD::setXCenter()
Specifies the X coordinate of the pixel location of the center of the 3D Canvas.
The origin of the pixel coordinate system is in the top left corner of the parent window.
GraphicsGD::setYCenter()
Specifies the Y coordinate of the pixel location of the center of the 3D Canvas.
The origin of the pixel coordinate system is in the top left corner of the parent window.
GraphicsGD::sliceArray()
GraphicsGD::textHeight()
Returns the vertical size in pixels of the text String.
GraphicsGD::textOut()
Displays the 2D non-rotated label at the specified X Y screen
GraphicsGD::textWidth()
Returns the horizontal text size in pixels of ChartFont f.
GraphicsGD::transparentEllipsePoints()
GraphicsGD::transparentEllipseZ()
GraphicsGD::triangle()
Draws a triangle (point p0, pointp1, pointp2) at Z position.
GraphicsGD::unClip()
GraphicsGD::verticalLine()
Draws a Vertical Line from (X,Top) to (X,Bottom) at z depth position.
GraphicsGD::zLine()
Draws a Line from (X,Y,Z0) to (X,Y,Z1).
GraphicsGD::_calc3DPos()
Calculates and returns the XY position in pixels of the point p Z 3D coordinate.
Can be used when custom drawing using 3D XYZ coordinates are returned from the axes or not.
GraphicsGD::_line()
Draws a Line between co-ordinates with z depth offset.
GraphicsGD::_plane()
Draws a polygon (Point p1, Point p2, Point p3, Point p4) at Z depth offset.
GraphicsGD::_pointInEllipse()
Returns true if point P is inside the ellipse bounded by Left, Top, Right, Bottom.
GraphicsGD::_rectangle()
GraphicsGD::_rotateLabel()
Draws a rotated text String at the specified Point x,y coordinates with the RotDegree rotation angle.
RotDegree values must be between 0 and 360.
The string is drawn on the Chart Drawing Canvas.
GraphicsGD::_textHeight()
Returns the vertical text size in pixels of ChartFont f.
GraphicsGD::__calc3DPos()
Calculates and returns the XY position in pixels of the point p Z 3D coordinate.
Can be used when custom drawing using 3D XYZ coordinates are returned from the axes or not.
GraphicsGD::__destruct()
GraphicsGD::__get()
GraphicsGD::__line()
Draws a Line between point p0 and point p1.
GraphicsGD::__lineTo()
Draws a line to Point with z = 0 depth offset.
GraphicsGD::__set()
GraphicsGD::___calc3DPos()
Calculates and returns the XY position in pixels of the point p with Z = 0 3D coordinate.
Can be used when custom drawing using 3D XYZ coordinates are returned from the axes or not.
GraphicsGD::___line()
Draws a Line between point p0 and point p1 using specific pen.
GraphicsGD::___lineTo()
Draws line from present position to end co-ordinates with z depth offset.
GraphicsGD::____lineTo()
Draws a Line to 3D Point.
GraphicsGD::_____lineTo()
Draws line from present position to end co-ordinates with z depth offset.

Class: TeeBase

TeeBase::__construct()
TeeBase::getChart()
Chart associated with this object.
TeeBase::invalidate()
Use invalidate when the entire canvas needs to be repainted.
TeeBase::setBooleanProperty()
TeeBase::setChart()
Chart associated with this object.
TeeBase::setColorProperty()
TeeBase::setDoubleProperty()
TeeBase::setIntegerProperty()
TeeBase::setStringProperty()
TeeBase::_setColorProperty()
TeeBase::__get()
TeeBase::__set()

Class Details

[line 16]
CanvasHTML5 class

Description: Class with all HTML5 canvas drawing methods.




Tags:

author:  
version:  1.0
copyright:  (c) 1995-2012 by Steema Software SL. All Rights Reserved. <info@steema.com>
link:  http://www.steema.com


[ Top ]


Class Methods


constructor Graphics3DHTML5 [line 37]

Graphics3DHTML5 Graphics3DHTML5( $fhandle, $c)



Tags:

access:  public


Parameters:

   $fhandle  
   $c  

[ Top ]

method AddRightRegion [line 380]

void AddRightRegion( $rect, $minZ, $maxZ)



Tags:

access:  protected


Parameters:

   $rect  
   $minZ  
   $maxZ  

[ Top ]

method AddToStream [line 56]

void AddToStream( $text)



Tags:

access:  protected


Parameters:

   $text  

[ Top ]

method arc [line 342]

void arc( $x1, $y1, $x2, $y2, $startAngle, $sweepAngle, [ $filled = 0])



Tags:

access:  public


Overrides GraphicsGD::arc() (parent method not documented)

Parameters:

   $x1  
   $y1  
   $x2  
   $y2  
   $startAngle  
   $sweepAngle  
   $filled  

[ Top ]

method ClearClipRegions [line 592]

void ClearClipRegions( )



Tags:

access:  public


[ Top ]

method ClipEllipse [line 537]

void ClipEllipse( $r)



Tags:

access:  public


Parameters:

   $r  

[ Top ]

method ClipPolygon [line 541]

void ClipPolygon( $p)



Tags:

access:  public


Parameters:

   $p  

[ Top ]

method clipRectangle [line 554]

void clipRectangle( $left, $top, $right, $bottom)



Tags:

access:  public


Overrides GraphicsGD::clipRectangle() (Creates a Windows GDI clipping region and selects it into TChart.<!-- -->Canvas device context handle.
)

Parameters:

   $left  
   $top  
   $right  
   $bottom  

[ Top ]

method DrawBeziers [line 657]

void DrawBeziers( $p)



Tags:

access:  public


Parameters:

   $p  

[ Top ]

method drawImage [line 467]

void drawImage( $x, $y, $image)



Tags:

access:  public


Parameters:

   $x  
   $y  
   $image  

[ Top ]

method DrawPath [line 576]

void DrawPath( $pen, $path)



Tags:

access:  public


Parameters:

   $pen  
   $path  

[ Top ]

method ellipse [line 683]

void ellipse( $x1, $y1, $x2, $y2, [ $z = 0], [ $angle = 0])



Tags:

access:  public


Overrides GraphicsGD::ellipse() (Ellipse bounding Rect (X1,Y1,X2,Y2) at Z position at angle.)

Parameters:

   $x1  
   $y1  
   $x2  
   $y2  
   $z  
   $angle  

[ Top ]

method EraseBackground [line 462]

void EraseBackground( $left, $top, $right, $bottom)



Tags:

access:  public


Parameters:

   $left  
   $top  
   $right  
   $bottom  

[ Top ]

method FillRegion [line 418]

void FillRegion( $brush, $region)



Tags:

access:  public


Parameters:

   $brush  
   $region  

[ Top ]

method FloatToStr [line 302]

void FloatToStr( $value)



Tags:

access:  protected


Parameters:

   $value  

[ Top ]

method getImagePath [line 665]

void getImagePath( )



Tags:

access:  public


[ Top ]

method getStream [line 673]

void getStream( )



Tags:

access:  public


[ Top ]

method horizontalLine [line 604]

void horizontalLine( $left, $right, $y, [ $z = 0])



Tags:

access:  public


Overrides GraphicsGD::horizontalLine() (Draws a Horizontal at z depth position.)

Parameters:

   $left  
   $right  
   $y  
   $z  

[ Top ]

method HTMLPoint [line 550]

void HTMLPoint( $X, $Y)



Parameters:

   $X  
   $Y  

[ Top ]

method imagegradientellipse [line 423]

void imagegradientellipse( $image, $cx, $cy, $w, $h, $ic, $oc)



Overrides GraphicsGD::imagegradientellipse() (parent method not documented)

Parameters:

   $image  
   $cx  
   $cy  
   $w  
   $h  
   $ic  
   $oc  

[ Top ]

method line [line 648]

void line( $x1, $y1, $x2, $y2, [ $color = null], [ $width = -1])



Overrides GraphicsGD::line() (Draws a straight line)

Parameters:

   $x1  
   $y1  
   $x2  
   $y2  
   $color  
   $width  

[ Top ]

method LineTo [line 619]

void LineTo( $x, $y)



Tags:

access:  public


Parameters:

   $x  
   $y  

[ Top ]

method Pixel [line 600]

void Pixel( $x, $y, $z, $color)



Tags:

access:  public


Parameters:

   $x  
   $y  
   $z  
   $color  

[ Top ]

method Polygon [line 508]

void Polygon( $p)



Tags:

access:  public


Parameters:

   $p  

[ Top ]

method polyLine [line 581]

void polyLine( $z, $p)



Tags:

access:  public


Overrides GraphicsGD::polyLine() (Draws a series of line segments to join point array p at z displacement.)

Parameters:

   $z  
   $p  

[ Top ]

method PrepareDrawImage [line 661]

void PrepareDrawImage( )



Tags:

access:  public


[ Top ]

method Rectangle [line 144]

void Rectangle( $r)



Tags:

access:  public


Parameters:

   $r  

[ Top ]

method rotateLabel [line 596]

void rotateLabel( $x, $y, $z, $text, $rotDegree)



Tags:

access:  public


Overrides GraphicsGD::rotateLabel() (Draws a rotated text String at the specified x,y and z coordinates with the RotDegree rotation angle.
RotDegree values must be between 0 and 360.
The string is drawn on the Chart Drawing Canvas.)

Parameters:

   $x  
   $y  
   $z  
   $text  
   $rotDegree  

[ Top ]

method SetClipRegion [line 566]

void SetClipRegion( $region)



Tags:

access:  public


Parameters:

   $region  

[ Top ]

method setImagePath [line 669]

void setImagePath( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method ShowImage [line 329]

void ShowImage( $g)



Tags:

access:  public


Parameters:

   $g  

[ Top ]

method textOut [line 70]

void textOut( $x, $y, $z, $text, [ $align = -1])



Tags:

access:  public


Overrides GraphicsGD::textOut() (Displays the 2D non-rotated label at the specified X Y screen)

Parameters:

   $x  
   $y  
   $z  
   $text  
   $align  

[ Top ]

method ToFloat [line 545]

void ToFloat( $Value)



Parameters:

   $Value  

[ Top ]

method TransparentEllipse [line 457]

void TransparentEllipse( $x1, $y1, $x2, $y2)



Tags:

access:  protected


Parameters:

   $x1  
   $y1  
   $x2  
   $y2  

[ Top ]

method UnClip [line 588]

void UnClip( )



Tags:

access:  public


[ Top ]

method verticalLine [line 612]

void verticalLine( $x, $top, $bottom, [ $z = 0])



Tags:

access:  public


Overrides GraphicsGD::verticalLine() (Draws a Vertical Line from (X,Top) to (X,Bottom) at z depth position.)

Parameters:

   $x  
   $top  
   $bottom  
   $z  

[ Top ]

method _Arc [line 368]

void _Arc( $x1, $y1, $x2, $y2, $x3, $y3, $x4, $y4)



Tags:

access:  public


Parameters:

   $x1  
   $y1  
   $x2  
   $y2  
   $x3  
   $y3  
   $x4  
   $y4  

[ Top ]

method _drawImage [line 472]

void _drawImage( $destRect, $srcRect, $image, $transparent)



Tags:

access:  public


Parameters:

   $destRect  
   $srcRect  
   $image  
   $transparent  

[ Top ]

method _SetClipRegion [line 571]

void _SetClipRegion( $region, $intersect)



Tags:

access:  public


Parameters:

   $region  
   $intersect  

[ Top ]

method __get [line 23]

void __get( $property)



Overrides GraphicsGD::__get() (parent method not documented)

Parameters:

   $property  

[ Top ]

method __set [line 30]

void __set( $property, $value)



Overrides GraphicsGD::__set() (parent method not documented)

Parameters:

   $property  
   $value  

[ Top ]


Documentation generated on Mon, 12 Nov 2012 12:07:54 +0100 by phpDocumentor 1.4.3