org::scilab::modules::renderer::AutoDrawableObjectGL Class Reference

Inheritance diagram for org::scilab::modules::renderer::AutoDrawableObjectGL:

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

Collaboration graph
[legend]

Public Member Functions

 AutoDrawableObjectGL ()
void show (int parentFigureIndex)
void initializeDrawing (int parentFigureIndex)
void endDrawing ()

Detailed Description

Class which can be automatically shown.
Author:
Jean-Baptiste Silvy

Definition at line 20 of file AutoDrawableObjectGL.java.


Constructor & Destructor Documentation

org::scilab::modules::renderer::AutoDrawableObjectGL::AutoDrawableObjectGL (  )  [inline]

Default constructor

Definition at line 26 of file AutoDrawableObjectGL.java.

00026                                       {
00027                 super();
00028         }


Member Function Documentation

void org::scilab::modules::renderer::AutoDrawableObjectGL::show ( int  parentFigureIndex  )  [inline, virtual]

Display the object by displaying its display list

Parameters:
parentFigureIndex index of the parent figure in which the object will be drawn

Implements org::scilab::modules::renderer::DrawableObjectGL.

Definition at line 34 of file AutoDrawableObjectGL.java.

References org::scilab::modules::renderer::DrawableObjectGL::displayDL(), org::scilab::modules::renderer::DrawableObjectGL::getDlIndex(), and org::scilab::modules::renderer::ObjectGL::getGL().

Referenced by org::scilab::modules::renderer::arcDrawing::ArcLineDrawerGL::redrawArc(), and org::scilab::modules::renderer::arcDrawing::ArcFillDrawerGL::redrawArc().

00034                                                 {
00035                 // the display list should already have been created.
00036                 if (getGL().glIsList(getDlIndex())) {
00037                         super.initializeDrawing(parentFigureIndex);
00038                         displayDL();
00039                         super.endDrawing();
00040                 }
00041         }

Here is the call graph for this function:

Here is the caller graph for this function:

void org::scilab::modules::renderer::AutoDrawableObjectGL::initializeDrawing ( int  parentFigureIndex  )  [inline]

Function called before beginning to use OpenGL methods.

Parameters:
parentFigureIndex index of the parent figure. Needed to get the GL context to draw in.

Reimplemented from org::scilab::modules::renderer::DrawableObjectGL.

Reimplemented in org::scilab::modules::renderer::drawers::FillDrawerGL.

Definition at line 49 of file AutoDrawableObjectGL.java.

References org::scilab::modules::renderer::DrawableObjectGL::startRecordDL().

00049                                                              {
00050                 // get the context from the drawing canvas
00051                 super.initializeDrawing(parentFigureIndex);
00052                 startRecordDL();
00053         }

Here is the call graph for this function:

void org::scilab::modules::renderer::AutoDrawableObjectGL::endDrawing ( void   )  [inline]

Function called at the end of the OpenGL use.

Reimplemented from org::scilab::modules::renderer::DrawableObjectGL.

Reimplemented in org::scilab::modules::renderer::drawers::FillDrawerGL.

Definition at line 59 of file AutoDrawableObjectGL.java.

References org::scilab::modules::renderer::DrawableObjectGL::endRecordDL().

00059                                  {
00060                 endRecordDL();
00061                 super.endDrawing();
00062         }

Here is the call graph for this function:


The documentation for this class was generated from the following file:

Generated on Tue Sep 9 18:27:20 2008 for Scilab [trunk] by  doxygen 1.5.5