

Public Member Functions | |
| AsteriskMarkDrawer () | |
| void | drawMark (GL gl, double[] backColor, double[] frontColor) |
Static Private Attributes | |
| static final double | DIAG_END = Math.sqrt(2.0) / 2.0 |
Definition at line 23 of file AsteriskMarkDrawer.java.
| org::scilab::modules::renderer::utils::MarkDrawing::AsteriskMarkDrawer::AsteriskMarkDrawer | ( | ) | [inline] |
| void org::scilab::modules::renderer::utils::MarkDrawing::AsteriskMarkDrawer::drawMark | ( | GL | gl, | |
| double[] | backColor, | |||
| double[] | frontColor | |||
| ) | [inline, virtual] |
Draw aan asterisk, a plus and a dot whose edges are on a circle
| gl | OpenGL pipeline to use | |
| backColor | RGB color of mark background | |
| frontColor | RGB color of mark foreground |
Implements org::scilab::modules::renderer::utils::MarkDrawing::MarkDrawingStrategy.
Definition at line 41 of file AsteriskMarkDrawer.java.
References DIAG_END.
00041 { 00042 gl.glColor3d(frontColor[0], frontColor[1], frontColor[2]); 00043 gl.glBegin(GL.GL_LINES); 00044 // plus 00045 gl.glVertex3d(-1.0, 0.0, 0.0); 00046 gl.glVertex3d(1.0 , 0.0, 0.0); 00047 gl.glVertex3d(0.0 , -1.0, 0.0); 00048 gl.glVertex3d(0.0 , 1.0, 0.0); 00049 00050 // cross 00051 gl.glVertex3d(-DIAG_END, DIAG_END, 0.0); 00052 gl.glVertex3d(DIAG_END , -DIAG_END, 0.0); 00053 gl.glVertex3d(-DIAG_END, -DIAG_END, 0.0); 00054 gl.glVertex3d(DIAG_END , DIAG_END, 0.0); 00055 gl.glEnd(); 00056 }
final double org::scilab::modules::renderer::utils::MarkDrawing::AsteriskMarkDrawer::DIAG_END = Math.sqrt(2.0) / 2.0 [static, private] |
1.5.5