

Public Member Functions | |
| ZTicksDrawerGL () | |
| Vector3D | findTicksDirection (double xCoordinate, double yCoordinate) |
| double | drawTicks () |
Protected Member Functions | |
| Vector3D | getAxisSegmentStart (double xCoordinate, double yCoordinate) |
| Vector3D | getAxisSegmentEnd (double xCoordinate, double yCoordinate) |
| Vector3D[] | getTicksPositions (double xCoordinate, double yCoordinate) |
| Vector3D[] | getSubTicksPositions (double xCoordinate, double yCoordinate) |
Private Member Functions | |
| Vector3D[] | getTicksPosition (double xCoordinate, double yCoordinate, double[] zCoordinates) |
Definition at line 25 of file ZTicksDrawerGL.java.
| org::scilab::modules::renderer::subwinDrawing::ZTicksDrawerGL::ZTicksDrawerGL | ( | ) | [inline] |
| Vector3D org::scilab::modules::renderer::subwinDrawing::ZTicksDrawerGL::getAxisSegmentStart | ( | double | xCoordinate, | |
| double | yCoordinate | |||
| ) | [inline, protected] |
| xCoordinate | X coordinate of the Z axis | |
| yCoordinate | Y coordinate of the Z axis |
Definition at line 39 of file ZTicksDrawerGL.java.
References org::scilab::modules::renderer::subwinDrawing::BoxTrimmingObjectGL::getZmin().
Referenced by drawTicks().
00039 { 00040 return new Vector3D(xCoordinate, yCoordinate, getZmin()); 00041 }


| Vector3D org::scilab::modules::renderer::subwinDrawing::ZTicksDrawerGL::getAxisSegmentEnd | ( | double | xCoordinate, | |
| double | yCoordinate | |||
| ) | [inline, protected] |
| xCoordinate | X coordinate of the Z axis | |
| yCoordinate | Y coordinate of the Z axis |
Definition at line 48 of file ZTicksDrawerGL.java.
References org::scilab::modules::renderer::subwinDrawing::BoxTrimmingObjectGL::getZmax().
Referenced by drawTicks().
00048 { 00049 return new Vector3D(xCoordinate, yCoordinate, getZmax()); 00050 }


| Vector3D org::scilab::modules::renderer::subwinDrawing::ZTicksDrawerGL::findTicksDirection | ( | double | xCoordinate, | |
| double | yCoordinate | |||
| ) | [inline] |
| xCoordinate | X coordinate of the Z axis | |
| yCoordinate | Y coordinate of the Z axis |
Definition at line 57 of file ZTicksDrawerGL.java.
References org::scilab::modules::renderer::subwinDrawing::BoxTrimmingObjectGL::findZTicksDirection(), res, and org::scilab::modules::renderer::subwinDrawing::TicksDrawerGL::setTicksDirectionLength().
Referenced by drawTicks().
00057 { 00058 Vector3D res = findZTicksDirection(xCoordinate, yCoordinate); 00059 00060 return setTicksDirectionLength(res); 00061 00062 }


| Vector3D [] org::scilab::modules::renderer::subwinDrawing::ZTicksDrawerGL::getTicksPosition | ( | double | xCoordinate, | |
| double | yCoordinate, | |||
| double[] | zCoordinates | |||
| ) | [inline, private] |
Compute ticks positions from an array of Y coordinates
| xCoordinate | X coordinates common for all ticks | |
| yCoordinate | Y coordinates common for all ticks | |
| zCoordinates | Z coordinates of ticks |
Definition at line 71 of file ZTicksDrawerGL.java.
References org::scilab::modules::renderer::utils::CoordinateTransformation::getCanvasCoordinates(), org::scilab::modules::renderer::ObjectGL::getGL(), org::scilab::modules::renderer::subwinDrawing::TicksDrawerGL::getTransform(), org::scilab::modules::renderer::subwinDrawing::BoxTrimmingObjectGL::getYmax(), org::scilab::modules::renderer::subwinDrawing::BoxTrimmingObjectGL::getYmin(), and res.
Referenced by getSubTicksPositions(), and getTicksPositions().
00071 { 00072 int nbTicks = zCoordinates.length; 00073 Vector3D[] res = new Vector3D[nbTicks]; 00074 00075 GL gl = getGL(); 00076 00077 for (int i = 0; i < nbTicks; i++) { 00078 double zCoordinate = zCoordinates[i]; 00079 // remove ticks wich are out of bounds 00080 if (yCoordinate <= getYmax() && yCoordinate >= getYmin()) { 00081 res[i] = new Vector3D(xCoordinate, yCoordinate, zCoordinate); 00082 res[i] = getTransform().getCanvasCoordinates(gl, res[i]); 00083 } else { 00084 res[i] = null; 00085 } 00086 } 00087 00088 return res; 00089 }


| Vector3D [] org::scilab::modules::renderer::subwinDrawing::ZTicksDrawerGL::getTicksPositions | ( | double | xCoordinate, | |
| double | yCoordinate | |||
| ) | [inline, protected] |
Get the base of each ticks segment.
| xCoordinate | X coordinate of the Z axis | |
| yCoordinate | Y coordinate of the Z axis |
Definition at line 97 of file ZTicksDrawerGL.java.
References getTicksPosition(), and org::scilab::modules::renderer::subwinDrawing::TicksDrawerGL::getTicksPositions().
00097 { 00098 return getTicksPosition(xCoordinate, yCoordinate, getTicksPositions()); 00099 }

| Vector3D [] org::scilab::modules::renderer::subwinDrawing::ZTicksDrawerGL::getSubTicksPositions | ( | double | xCoordinate, | |
| double | yCoordinate | |||
| ) | [inline, protected] |
Get the base of each ticks segment.
| xCoordinate | X coordinate of the Z axis | |
| yCoordinate | Y coordinate of the Z axis |
Definition at line 107 of file ZTicksDrawerGL.java.
References org::scilab::modules::renderer::subwinDrawing::TicksDrawerGL::getSubTicksPositions(), and getTicksPosition().
00107 { 00108 return getTicksPosition(xCoordinate, yCoordinate, getSubTicksPositions()); 00109 }

| double org::scilab::modules::renderer::subwinDrawing::ZTicksDrawerGL::drawTicks | ( | void | ) | [inline, virtual] |
Implements org::scilab::modules::renderer::subwinDrawing::TicksDrawerGL.
Definition at line 114 of file ZTicksDrawerGL.java.
References org::scilab::modules::renderer::subwinDrawing::BoxTrimmingObjectGL::findLeftMostXCoordinate(), org::scilab::modules::renderer::subwinDrawing::BoxTrimmingObjectGL::findLeftMostYCoordinate(), findTicksDirection(), getAxisSegmentEnd(), getAxisSegmentStart(), org::scilab::modules::renderer::utils::CoordinateTransformation::getCanvasCoordinates(), org::scilab::modules::renderer::ObjectGL::getGL(), org::scilab::modules::renderer::subwinDrawing::TicksDrawerGL::getSubTicksPositions(), org::scilab::modules::renderer::subwinDrawing::TicksDrawerGL::getTicksPositions(), and org::scilab::modules::renderer::subwinDrawing::TicksDrawerGL::getTransform().
00114 { 00115 double yCoordinate = findLeftMostYCoordinate(); 00116 double xCoordinate = findLeftMostXCoordinate(); 00117 00118 Vector3D[] ticksPosition = getTicksPositions(xCoordinate, yCoordinate); 00119 Vector3D[] subticksPosition = getSubTicksPositions(xCoordinate, yCoordinate); 00120 Vector3D ticksDirection = findTicksDirection(xCoordinate, yCoordinate); 00121 00122 GL gl = getGL(); 00123 Vector3D axisStartPix = getTransform().getCanvasCoordinates(gl, getAxisSegmentStart(xCoordinate, yCoordinate)); 00124 Vector3D axisStartEnd = getTransform().getCanvasCoordinates(gl, getAxisSegmentEnd(xCoordinate, yCoordinate)); 00125 00126 return drawTicks(ticksPosition, subticksPosition, ticksDirection, 00127 axisStartPix, axisStartEnd); 00128 00129 }

1.5.4