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

Class: Graphics3DFlex

Source Location: /drawing/CanvasFlex.php

Class Overview

TeeBase
   |
   --GraphicsGD
      |
      --Graphics3DFlex

GraphicsGD class


Author(s):

Version:

  • 1.0

Copyright:

  • (c) 1995-2010 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::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::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::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::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::__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 3]
GraphicsGD class

Description: Class with all Chart drawing methods.




Tags:

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


[ Top ]


Class Methods


static method rgbhex [line 504]

static void rgbhex( $red, $green, $blue)



Parameters:

   $red  
   $green  
   $blue  

[ Top ]

constructor Graphics3DFlex [line 22]

Graphics3DFlex Graphics3DFlex( $fhandle, $c)



Tags:

access:  public


Parameters:

   $fhandle  
   $c  

[ Top ]

method AddLink [line 1322]

void AddLink( $x, $y, $Text, $URL, $Hint)



Tags:

access:  public


Parameters:

   $x  
   $y  
   $Text  
   $URL  
   $Hint  

[ Top ]

method AddToolTip [line 1330]

void AddToolTip( $Entity, $ToolTip)



Tags:

access:  public


Parameters:

   $Entity  
   $ToolTip  

[ Top ]

method AddToStream [line 679]

void AddToStream( $text)



Tags:

access:  protected


Parameters:

   $text  

[ Top ]

method Arc [line 865]

void Arc( $x1, $y1, $x2, $y2, $startAngle, $sweepAngle)



Tags:

access:  public


Parameters:

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

[ Top ]

method ClearClipRegions [line 1087]

void ClearClipRegions( )



Tags:

access:  public


[ Top ]

method ClipEllipse [line 1034]

void ClipEllipse( $r)



Tags:

access:  public


Parameters:

   $r  

[ Top ]

method ClipPolygon [line 1039]

void ClipPolygon( $p)



Tags:

access:  public


Parameters:

   $p  

[ Top ]

method ClipRectangle [line 1044]

void ClipRectangle( $r)



Tags:

access:  public


Parameters:

   $r  

[ Top ]

method Draw [line 1000]

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



Tags:

access:  public


Parameters:

   $x  
   $y  
   $image  

[ Top ]

method DrawBeziers [line 1312]

void DrawBeziers( $p)



Tags:

access:  public


Parameters:

   $p  

[ Top ]

method DrawPath [line 1054]

void DrawPath( $pen, $path)



Tags:

access:  public


Parameters:

   $pen  
   $path  

[ Top ]

method ellipse [line 896]

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

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



Tags:

access:  public


Parameters:

   $left  
   $top  
   $right  
   $bottom  

[ Top ]

method FillRegion [line 891]

void FillRegion( $brush, $region)



Tags:

access:  public


Parameters:

   $brush  
   $region  

[ Top ]

method getEmbeddedImages [line 849]

void getEmbeddedImages( )



Tags:

access:  public


[ Top ]

method getImagePath [line 857]

void getImagePath( )



Tags:

access:  public


[ Top ]

method GradientFill [line 1060]

void GradientFill( $left, $top, $right, $bottom, $startColor, $endColor, $direction)



Tags:

access:  public


Parameters:

   $left  
   $top  
   $right  
   $bottom  
   $startColor  
   $endColor  
   $direction  

[ Top ]

method horizontalLine [line 1267]

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

Draws a Horizontal at z depth position.



Tags:

access:  public


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

Parameters:

left   $left   int
right   $right   int
y   $y   int
z   $z   int

[ Top ]

method InitWindow [line 729]

void InitWindow( $a, $r, $MaxDepth)



Tags:

access:  public


Parameters:

   $a  
   $r  
   $MaxDepth  

[ Top ]

method line [line 1174]

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

Draws a straight line



Tags:

access:  public


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

Parameters:

integer   $x1   line start (X)
integer   $y1   line start (Y)
integer   $x2   line end (X)
integer   $y2   line end (Y)
Color   $color   line color
integer   $width   line width

[ Top ]

method LineTo [line 1145]

void LineTo( $x, $y)



Tags:

access:  public


Parameters:

   $x  
   $y  

[ Top ]

method Pixel [line 1066]

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



Tags:

access:  public


Parameters:

   $x  
   $y  
   $z  
   $color  

[ Top ]

method PointToStr [line 755]

void PointToStr( $X, $Y)



Tags:

access:  protected


Parameters:

   $X  
   $Y  

[ Top ]

method Polygon [line 1027]

void Polygon( $p)



Tags:

access:  public


Parameters:

   $p  

[ Top ]

method polyLine [line 1071]

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

void PrepareDrawImage( )



Tags:

access:  public


[ Top ]

method rectangle [line 828]

void rectangle( $r)



Tags:

access:  public


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

Parameters:

   $r  

[ Top ]

method RotateLabel [line 1077]

void RotateLabel( $x, $y, $text, $rotDegree)



Tags:

access:  public


Parameters:

   $x  
   $y  
   $text  
   $rotDegree  

[ Top ]

method SetClipRegion [line 1049]

void SetClipRegion( $region)



Tags:

access:  public


Parameters:

   $region  

[ Top ]

method setEmbeddedImages [line 853]

void setEmbeddedImages( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setImagePath [line 861]

void setImagePath( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method ShowImage [line 760]

void ShowImage( $g)



Tags:

access:  public


Parameters:

   $g  

[ Top ]

method textOut [line 771]

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 TransparentEllipse [line 766]

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



Tags:

access:  protected


Parameters:

   $x1  
   $y1  
   $x2  
   $y2  

[ Top ]

method UnClip [line 1082]

void UnClip( )



Tags:

access:  public


[ Top ]

method verticalLine [line 1293]

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

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



Tags:

access:  public


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

Parameters:

x   $x   int
top   $top   int
bottom   $bottom   int
z   $z   int

[ Top ]

method zLine [line 1237]

void zLine( x $x, y $y, z0 $z0, z1 $z1)

Draws a Line from (X,Y,Z0) to (X,Y,Z1).



Tags:

access:  public


Overrides GraphicsGD::zLine() (Draws a Line from (X,Y,Z0) to (X,Y,Z1).)

Parameters:

x   $x   int
y   $y   int
z0   $z0   int
z1   $z1   int

[ Top ]

method _Arc [line 880]

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



Tags:

access:  public


Parameters:

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

[ Top ]

method _Draw [line 1008]

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



Tags:

access:  public


Parameters:

   $destRect  
   $srcRect  
   $image  
   $transparent  

[ Top ]

method ___line [line 1208]

void ___line( pen $pen, p0 $p0, p1 $p1)

Draws a Line between point p0 and point p1 using specific pen.



Tags:

access:  public


Overrides GraphicsGD::___line() (Draws a Line between point p0 and point p1 using specific pen.)

Parameters:

pen   $pen   ChartPen id the pen used
p0   $p0   Point is origin xy
p1   $p1   Point is destination xy

[ Top ]


Documentation generated on Wed, 16 Jun 2010 12:03:51 +0200 by phpDocumentor 1.4.1