org::scilab::modules::renderer::ObjectGLCleaner Class Reference


Public Member Functions

 ObjectGLCleaner ()
synchronized void addObjectToDestroy (ObjectGL obj)
synchronized void destroyAll (int parentFigureIndex)

Private Attributes

List< ObjectGLdestroyedObjects

Detailed Description

Class dedicated in destroying ObjectJoGL objects. Actually destroy method of ObjectJoGL can only be destroyed from the OpenGL context. So we store in this class every object which need to be destroyed. Someone must destroy them from within the display function.
Author:
Jean-Baptiste Silvy

Definition at line 31 of file ObjectGLCleaner.java.


Constructor & Destructor Documentation

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

Default constructor

Definition at line 39 of file ObjectGLCleaner.java.

References destroyedObjects.

00039                                  {
00040                 destroyedObjects = new LinkedList<ObjectGL>();
00041         }


Member Function Documentation

synchronized void org::scilab::modules::renderer::ObjectGLCleaner::addObjectToDestroy ( ObjectGL  obj  )  [inline]

Add an obkect in the list of objects which will be destroyed

Parameters:
obj object to add.

Definition at line 47 of file ObjectGLCleaner.java.

References destroyedObjects.

00047                                                                   {
00048                 destroyedObjects.add(obj);
00049         }

synchronized void org::scilab::modules::renderer::ObjectGLCleaner::destroyAll ( int  parentFigureIndex  )  [inline]

Destroy all object inserted in the list Should be called within OpenGL context

Parameters:
parentFigureIndex index of the figure containing this objects

Definition at line 56 of file ObjectGLCleaner.java.

References destroyedObjects.

Referenced by org::scilab::modules::renderer::figureDrawing::DrawableFigureGL::initializeDrawing().

00056                                                                    {
00057                 ListIterator<ObjectGL> it = destroyedObjects.listIterator();
00058                 
00059                 while (it.hasNext()) {
00060                         it.next().clean(parentFigureIndex);
00061                 }
00062                 
00063                 // everything has been destroyed
00064                 destroyedObjects.clear();
00065         }

Here is the caller graph for this function:


Field Documentation

list of objects to be destroyed

Definition at line 34 of file ObjectGLCleaner.java.

Referenced by addObjectToDestroy(), destroyAll(), and ObjectGLCleaner().


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

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