maspack.render
Class GLSelector

java.lang.Object
  extended by maspack.render.GLSelector
Direct Known Subclasses:
GLColorSelector, GLOcclusionSelector, GLSelectSelector

public abstract class GLSelector
extends java.lang.Object

Base class for helper classes that enable GLViewer to perform selection operations.


Constructor Summary
GLSelector(GLViewer viewer)
           
 
Method Summary
abstract  void beginSelectionForObject(GLSelectable s, int idx)
           
abstract  void beginSelectionQuery(int idx)
           
abstract  void endSelectionForObject()
           
abstract  void endSelectionQuery()
           
abstract  void processSelection(javax.media.opengl.GLAutoDrawable drawable)
           
 void setRectangle(double x, double y, double w, double h)
           
abstract  void setupSelection(javax.media.opengl.GLAutoDrawable drawable)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GLSelector

public GLSelector(GLViewer viewer)
Method Detail

setRectangle

public void setRectangle(double x,
                         double y,
                         double w,
                         double h)

setupSelection

public abstract void setupSelection(javax.media.opengl.GLAutoDrawable drawable)

processSelection

public abstract void processSelection(javax.media.opengl.GLAutoDrawable drawable)

beginSelectionQuery

public abstract void beginSelectionQuery(int idx)

endSelectionQuery

public abstract void endSelectionQuery()

beginSelectionForObject

public abstract void beginSelectionForObject(GLSelectable s,
                                             int idx)

endSelectionForObject

public abstract void endSelectionForObject()