org::scilab::modules::renderer::axesDrawing::AxesTicksDrawerGL Class Reference

Inheritance diagram for org::scilab::modules::renderer::axesDrawing::AxesTicksDrawerGL:

Inheritance graph
[legend]
Collaboration diagram for org::scilab::modules::renderer::axesDrawing::AxesTicksDrawerGL:

Collaboration graph
[legend]

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

Detailed Description

Class drawing ticks for Axis objects
Author:
Jean-Baptiste Silvy

Definition at line 24 of file AxesTicksDrawerGL.java.


Constructor & Destructor Documentation

org::scilab::modules::renderer::axesDrawing::AxesTicksDrawerGL::AxesTicksDrawerGL (  )  [inline]

Default constructor

Definition at line 31 of file AxesTicksDrawerGL.java.

00031                                    {
00032                 super();
00033         }


Member Function Documentation

boolean org::scilab::modules::renderer::axesDrawing::AxesTicksDrawerGL::checkTicks (  )  [inline]

Returns:
always true, we don't check axes

Definition at line 38 of file AxesTicksDrawerGL.java.

00038                                     {
00039                 return true;
00040         }

void org::scilab::modules::renderer::axesDrawing::AxesTicksDrawerGL::setTicksDirection ( String  dir  )  [inline]

Specify the direction to use for ticks

Parameters:
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]

Returns:
direction of the ticks

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         }

Here is the call graph for this function:

Here is the caller graph for this function:

double org::scilab::modules::renderer::axesDrawing::AxesTicksDrawerGL::drawTicks ( void   )  [inline, virtual]

Draw ticks from the recorded data.

Returns:
maximum distance from ticks to the axis.

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         }

Here is the call graph for this function:

abstract Vector3D [] org::scilab::modules::renderer::axesDrawing::AxesTicksDrawerGL::findTicksPositions (  )  [protected, pure virtual]

Returns:
an array containing positions of ticks along the axis

Implemented in org::scilab::modules::renderer::axesDrawing::XAxesDrawerGL, and org::scilab::modules::renderer::axesDrawing::YAxesDrawerGL.

Referenced by drawTicks().

Here is the caller graph for this function:

abstract Vector3D [] org::scilab::modules::renderer::axesDrawing::AxesTicksDrawerGL::findSubticksPositions (  )  [protected, pure virtual]

Returns:
an array containing positions of subticks along the axis

Implemented in org::scilab::modules::renderer::axesDrawing::XAxesDrawerGL, and org::scilab::modules::renderer::axesDrawing::YAxesDrawerGL.

Referenced by drawTicks().

Here is the caller graph for this function:

abstract Vector3D org::scilab::modules::renderer::axesDrawing::AxesTicksDrawerGL::getAxisSegmentStart (  )  [protected, pure virtual]

Returns:
position of the beginning of the axis

Implemented in org::scilab::modules::renderer::axesDrawing::XAxesDrawerGL, and org::scilab::modules::renderer::axesDrawing::YAxesDrawerGL.

Referenced by drawTicks().

Here is the caller graph for this function:

abstract Vector3D org::scilab::modules::renderer::axesDrawing::AxesTicksDrawerGL::getAxisSegmentEnd (  )  [protected, pure virtual]

Returns:
position of the end of the axis

Implemented in org::scilab::modules::renderer::axesDrawing::XAxesDrawerGL, and org::scilab::modules::renderer::axesDrawing::YAxesDrawerGL.

Referenced by drawTicks().

Here is the caller graph for this function:


Field Documentation

Vector3D org::scilab::modules::renderer::axesDrawing::AxesTicksDrawerGL::ticksDirection [private]

Definition at line 26 of file AxesTicksDrawerGL.java.

Referenced by getTicksDirection(), and setTicksDirection().


The documentation for this class was generated from the following file:
Generated on Sun Apr 27 16:21:34 2008 for Scilab [trunk] by  doxygen 1.5.4