public abstract class GLSelector extends GLResourceBase
Constructor and Description |
---|
GLSelector(GLViewer viewer) |
Modifier and Type | Method and Description |
---|---|
GLSelector |
acquire()
Signal the resource that something is holding a reference to it.
|
void |
activateFBO(com.jogamp.opengl.GL gl,
int width,
int height) |
void |
beginSelectionForObject(IsSelectable s,
int idx) |
abstract void |
beginSelectionQuery(int idx) |
void |
deactivateFBO(com.jogamp.opengl.GL gl) |
void |
dispose(com.jogamp.opengl.GL gl)
Clean up any resources
|
void |
endSelectionForObject() |
abstract void |
endSelectionQuery() |
FrameBufferObject |
getFBO() |
boolean |
isDisposed()
Returns true if resource has been disposed
|
void |
processSelection(com.jogamp.opengl.GL gl) |
void |
setRectangle(double x,
double y,
double w,
double h) |
void |
setupSelection(com.jogamp.opengl.GL gl) |
disposeInvalid, disposeUnreferenced, isValid, releaseDispose
acquireAndCount, getReferenceCount, release, releaseAndCount
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
acquireAndCount, getReferenceCount, release, releaseAndCount
public GLSelector(GLViewer viewer)
public void setRectangle(double x, double y, double w, double h)
public void setupSelection(com.jogamp.opengl.GL gl)
public void processSelection(com.jogamp.opengl.GL gl)
public void beginSelectionForObject(IsSelectable s, int idx)
public void endSelectionForObject()
public abstract void beginSelectionQuery(int idx)
public abstract void endSelectionQuery()
public FrameBufferObject getFBO()
public void activateFBO(com.jogamp.opengl.GL gl, int width, int height)
public void deactivateFBO(com.jogamp.opengl.GL gl)
public GLSelector acquire()
ReferenceCounted
acquire
in interface GLResource
acquire
in interface ReferenceCounted
acquire
in class GLResourceBase
public boolean isDisposed()
GLResource
isDisposed
in interface GLResource
isDisposed
in class GLResourceBase
public void dispose(com.jogamp.opengl.GL gl)
dispose
in interface GLResource
dispose
in class GLResourceBase
gl
- context