

Public Member Functions | |
| AxesTicksDrawerGL () | |
| boolean | checkTicks () |
| void | setTicksDirection (String dir) |
| Vector3D | getTicksDirection () |
| double | drawTicks () |
Protected Member Functions | |
| abstract Vector3D[] | findTicksPositions () |
| abstract Vector3D[] | findSubticksPositions () |
| abstract Vector3D | getAxisSegmentStart () |
| abstract Vector3D | getAxisSegmentEnd () |
Private Attributes | |
| Vector3D | ticksDirection |
Definition at line 24 of file AxesTicksDrawerGL.java.
| org::scilab::modules::renderer::axesDrawing::AxesTicksDrawerGL::AxesTicksDrawerGL | ( | ) | [inline] |
| boolean org::scilab::modules::renderer::axesDrawing::AxesTicksDrawerGL::checkTicks | ( | ) | [inline] |
| void org::scilab::modules::renderer::axesDrawing::AxesTicksDrawerGL::setTicksDirection | ( | String | dir | ) | [inline] |
Specify the direction to use for ticks
| dir | scilab char defining direction of the ticks ('u', 'd', 'l', 'r'). |
Definition at line 46 of file AxesTicksDrawerGL.java.
References ticksDirection.
00046 { 00047 char direction = dir.charAt(0); 00048 switch (direction) { 00049 case 'u': 00050 ticksDirection = new Vector3D(0.0, 1.0, 0.0); 00051 break; 00052 case 'd': 00053 ticksDirection = new Vector3D(0.0, -1.0, 0.0); 00054 break; 00055 case 'l': 00056 ticksDirection = new Vector3D(-1.0, 0.0, 0.0); 00057 break; 00058 case 'r': 00059 ticksDirection = new Vector3D(1.0, 0.0, 0.0); 00060 break; 00061 default: 00062 break; 00063 } 00064 }
| Vector3D org::scilab::modules::renderer::axesDrawing::AxesTicksDrawerGL::getTicksDirection | ( | ) | [inline] |
Definition at line 69 of file AxesTicksDrawerGL.java.
References org::scilab::modules::renderer::subwinDrawing::TicksDrawerGL::setTicksDirectionLength(), and ticksDirection.
Referenced by drawTicks().
00069 { 00070 return setTicksDirectionLength(ticksDirection); 00071 }


| double org::scilab::modules::renderer::axesDrawing::AxesTicksDrawerGL::drawTicks | ( | void | ) | [inline, virtual] |
Draw ticks from the recorded data.
Implements org::scilab::modules::renderer::subwinDrawing::TicksDrawerGL.
Definition at line 77 of file AxesTicksDrawerGL.java.
References findSubticksPositions(), findTicksPositions(), getAxisSegmentEnd(), getAxisSegmentStart(), and getTicksDirection().
00077 { 00078 00079 Vector3D[] ticksPosition = findTicksPositions(); 00080 Vector3D[] subticksPosition = findSubticksPositions(); 00081 Vector3D ticksDir = getTicksDirection(); 00082 00083 return drawTicks(ticksPosition, subticksPosition, ticksDir, 00084 getAxisSegmentStart(), getAxisSegmentEnd()); 00085 }

| abstract Vector3D [] org::scilab::modules::renderer::axesDrawing::AxesTicksDrawerGL::findTicksPositions | ( | ) | [protected, pure virtual] |
Implemented in org::scilab::modules::renderer::axesDrawing::XAxesDrawerGL, and org::scilab::modules::renderer::axesDrawing::YAxesDrawerGL.
Referenced by drawTicks().

| abstract Vector3D [] org::scilab::modules::renderer::axesDrawing::AxesTicksDrawerGL::findSubticksPositions | ( | ) | [protected, pure virtual] |
Implemented in org::scilab::modules::renderer::axesDrawing::XAxesDrawerGL, and org::scilab::modules::renderer::axesDrawing::YAxesDrawerGL.
Referenced by drawTicks().

| abstract Vector3D org::scilab::modules::renderer::axesDrawing::AxesTicksDrawerGL::getAxisSegmentStart | ( | ) | [protected, pure virtual] |
Implemented in org::scilab::modules::renderer::axesDrawing::XAxesDrawerGL, and org::scilab::modules::renderer::axesDrawing::YAxesDrawerGL.
Referenced by drawTicks().

| abstract Vector3D org::scilab::modules::renderer::axesDrawing::AxesTicksDrawerGL::getAxisSegmentEnd | ( | ) | [protected, pure virtual] |
Implemented in org::scilab::modules::renderer::axesDrawing::XAxesDrawerGL, and org::scilab::modules::renderer::axesDrawing::YAxesDrawerGL.
Referenced by drawTicks().

Definition at line 26 of file AxesTicksDrawerGL.java.
Referenced by getTicksDirection(), and setTicksDirection().
1.5.4