|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.hermetica.magician.GLOffscreenBuffer
Field Summary | |
protected static int |
DISPLAY_EVENT
|
protected static int |
INITIALIZE_EVENT
Event types this component can deal with |
protected static int |
RESHAPE_EVENT
|
static java.lang.String |
VERSION
Version information |
Constructor Summary | |
GLOffscreenBuffer()
|
Method Summary | |
void |
addConsumer(java.awt.image.ImageConsumer ic)
Registers an ImageConsumer with this GLOffscreenBuffer as the target to which image data will be sent |
void |
addGLEventListener(GLEventListener listener)
This method registers a component listener with this component. |
protected void |
createChoke()
Creates a new mutex for this component. |
void |
destroy()
Destroys the component completely. |
protected void |
generateID()
Generates a new unique id for the component. |
protected CriticalSection |
getChoke()
Returns the mutex associated with this component |
GLContext |
getContext()
Returns the rendering context associated with this component |
boolean |
getFlushOnRepaint()
Returns the current status of whether or not flushing the buffers after each listener display() method has been called will occur. |
int |
getGLContext()
Method used to fetch the OpenGL rendering context from this component's associated GLContext. |
protected int |
getID()
Returns the internal ID of a particular component |
GLEventListener |
getListener()
Returns the listener chain |
int |
getpData()
|
int |
getReadBuffer()
Returns the buffer from which pixel data reading will take place for image production. |
protected GLDrawable |
getSharedComponent()
Returns the shared component. |
java.awt.Dimension |
getSize()
Returns the dimensions of this offscreen buffer |
boolean |
getTraceStatus()
Returns the warning level that a component is running at. |
int |
getWidget()
Method used to fetch the Widget / device context for this GLOffscreenBuffer. |
int |
getWindow()
Method used to fetch the window information of this component. |
int |
getX()
Returns the X coordinate |
int |
getY()
Returns the Y coordinate |
protected void |
init(GLDrawable component,
GLContext context,
int width,
int height)
Deferred initialization method |
boolean |
initialize()
Initializes the component. |
boolean |
isConsumer(java.awt.image.ImageConsumer ic)
Determines if a given ImageConsumer object is currently registered with this ImageProducer as one of its consumers. |
boolean |
isInitialized()
Tests to see whether the component is initialized |
boolean |
isOffscreen()
|
boolean |
isRunning()
Returns whether or not the internal thread is running |
boolean |
isSuspended()
Returns whether or not the GLOffscreenBuffer is suspended |
void |
processDisplayEvent(GLEventListener listener)
Processes a display event |
void |
processInitializeEvent(GLEventListener listener)
Processes an initialize event |
void |
processReshapeEvent(GLEventListener listener)
Processes a reshape event |
void |
removeConsumer(java.awt.image.ImageConsumer ic)
Removes the given consumer from the list of consumers currently registered to receive image data from this ImageProducer |
void |
removeGLEventListener(GLEventListener listener)
This method removes a GLEventListener from the listener chain |
void |
requestTopDownLeftRightResend(java.awt.image.ImageConsumer ic)
This method, used by an ImageConsumer, requests that the data be resent as soon as possible in TOPDOWNLEFTRIGHT order so that high quality image conversion might occur |
void |
restart()
Reinitializes the component completely. |
void |
resume()
Resumes the component allowing it to process reshape, repaint and initialize events. |
void |
run()
The main driving thread of the GLOffscreenBuffer |
void |
setContext(GLContext context)
Sets the OpenGL context associated with this component. |
void |
setFlushOnRepaint(boolean mode)
Specifies whether or not the component should flush its buffers after all the pending repainting calls have been made in each listener. |
protected void |
setInitialized(boolean initializedStatus)
Sets the value of whether or not a component is initialized. |
protected void |
setListener(GLEventListener listener)
Sets the listener. |
void |
setReadBuffer(int buffer)
Sets the buffer from which pixel data should be read for image production |
protected void |
setRunning(boolean runningStatus)
Sets the running status of this component. |
protected void |
setSharedComponent(GLDrawable component)
Sets the shared Component, if necessary. |
void |
setSleepDuration(int ms)
Sets the sleep duration of the thread between iterations |
protected void |
setSuspended(boolean suspendedStatus)
Sets the status of whether or not the component is suspended. |
void |
setTraceStatus(boolean mode)
Sets the verbosity of Exception warning. |
void |
start()
Starts up the GLOffscreenBuffer handling. |
void |
startProduction(java.awt.image.ImageConsumer ic)
This method registers the given ImageConsumer as a consumer of pixel data produced by this ImageProducer and starts delivering data in pixel blocks to the registered ImageConsumers |
void |
stop()
Shuts down the internal thread safely. |
void |
suspend()
Stops the component from processing reshape, repaint and initialize events. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String VERSION
protected static final int INITIALIZE_EVENT
protected static final int RESHAPE_EVENT
protected static final int DISPLAY_EVENT
Constructor Detail |
public GLOffscreenBuffer()
Method Detail |
public final int getpData()
protected void init(GLDrawable component, GLContext context, int width, int height)
public final void setTraceStatus(boolean mode)
mode
- The new mode for verbose warnings or notpublic final boolean getTraceStatus()
public final void setContext(GLContext context)
context
- The context to associate with the componentpublic final GLContext getContext()
protected void createChoke()
protected CriticalSection getChoke()
protected void generateID()
protected int getID()
public final boolean initialize()
public final boolean isInitialized()
protected final void setInitialized(boolean initializedStatus)
public final void restart()
public final boolean isRunning()
protected final void setRunning(boolean runningStatus)
public final void start()
public final void suspend()
public final boolean isSuspended()
protected final void setSuspended(boolean suspendedStatus)
public final void resume()
public final void destroy()
public final void stop()
public java.awt.Dimension getSize()
public final GLEventListener getListener()
protected final void setListener(GLEventListener listener)
protected void setSharedComponent(GLDrawable component)
protected GLDrawable getSharedComponent()
public void setFlushOnRepaint(boolean mode)
mode
- Specifies whether flushing should or should not occurpublic boolean getFlushOnRepaint()
public void setSleepDuration(int ms)
public void run()
public void processInitializeEvent(GLEventListener listener)
public void processReshapeEvent(GLEventListener listener)
public void processDisplayEvent(GLEventListener listener)
public void addGLEventListener(GLEventListener listener)
public void removeGLEventListener(GLEventListener listener)
public void setReadBuffer(int buffer)
buffer
- The OpenGL buffer to read frompublic int getReadBuffer()
public int getWindow()
public int getGLContext()
public int getWidget()
public void addConsumer(java.awt.image.ImageConsumer ic)
public boolean isConsumer(java.awt.image.ImageConsumer ic)
public void removeConsumer(java.awt.image.ImageConsumer ic)
public void requestTopDownLeftRightResend(java.awt.image.ImageConsumer ic)
public void startProduction(java.awt.image.ImageConsumer ic)
public int getX()
public int getY()
public boolean isOffscreen()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |