org.scilab.forge.scirenderer.implementation.jogl.clipping
Class JoGLClippingManager

java.lang.Object
  extended by org.scilab.forge.scirenderer.implementation.jogl.clipping.JoGLClippingManager
All Implemented Interfaces:
ClippingManager

public class JoGLClippingManager
extends java.lang.Object
implements ClippingManager

Author:
Pierre Lando

Constructor Summary
JoGLClippingManager(JoGLDrawingTools drawingTools)
          Default constructor.
 
Method Summary
 void disableClipping()
          Disable all clipping plane.
 JoGLClippingPlane getClippingPlane(int i)
          Return the i-th clipping plane.
 int getClippingPlaneNumber()
          Return the number of available clipping plane.
 void reload()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JoGLClippingManager

public JoGLClippingManager(JoGLDrawingTools drawingTools)
Default constructor.

Parameters:
drawingTools - used drawing tools.
Method Detail

getClippingPlaneNumber

public int getClippingPlaneNumber()
Description copied from interface: ClippingManager
Return the number of available clipping plane. At least 6 clipping plane are supported.

Specified by:
getClippingPlaneNumber in interface ClippingManager
Returns:
the number of available clipping plane.

getClippingPlane

public JoGLClippingPlane getClippingPlane(int i)
Description copied from interface: ClippingManager
Return the i-th clipping plane. null is returned if i is not a valid index.

Specified by:
getClippingPlane in interface ClippingManager
Parameters:
i - the given index.
Returns:
the i-th clipping plane.

disableClipping

public void disableClipping()
Description copied from interface: ClippingManager
Disable all clipping plane.

Specified by:
disableClipping in interface ClippingManager

reload

public void reload()