org.kde.qt
Class QGLWidget

java.lang.Object
  extended by org.kde.qt.QGL
      extended by org.kde.qt.QGLWidget
All Implemented Interfaces:
QtSupport

public class QGLWidget
extends QGL


Field Summary
 
Fields inherited from class org.kde.qt.QGL
AccumBuffer, AlphaChannel, ColorIndex, DepthBuffer, DirectRendering, DoubleBuffer, HasOverlay, IndirectRendering, NoAccumBuffer, NoAlphaChannel, NoDepthBuffer, NoOverlay, NoStencilBuffer, NoStereoBuffers, Rgba, SingleBuffer, StencilBuffer, StereoBuffers
 
Constructor Summary
  QGLWidget()
           
protected QGLWidget(java.lang.Class dummy)
           
  QGLWidget(QGLContext context, QWidget parent)
           
  QGLWidget(QGLContext context, QWidget parent, java.lang.String name)
           
  QGLWidget(QGLContext context, QWidget parent, java.lang.String name, QGLWidget shareWidget)
           
  QGLWidget(QGLContext context, QWidget parent, java.lang.String name, QGLWidget shareWidget, int f)
           
  QGLWidget(QGLFormat format)
           
  QGLWidget(QGLFormat format, QWidget parent)
           
  QGLWidget(QGLFormat format, QWidget parent, java.lang.String name)
           
  QGLWidget(QGLFormat format, QWidget parent, java.lang.String name, QGLWidget shareWidget)
           
  QGLWidget(QGLFormat format, QWidget parent, java.lang.String name, QGLWidget shareWidget, int f)
           
  QGLWidget(QWidget parent)
           
  QGLWidget(QWidget parent, java.lang.String name)
           
  QGLWidget(QWidget parent, java.lang.String name, QGLWidget shareWidget)
           
  QGLWidget(QWidget parent, java.lang.String name, QGLWidget shareWidget, int f)
           
 
Method Summary
protected  boolean autoBufferSwap()
           
 java.lang.String className()
           
 QGLColormap colormap()
           
 QGLContext context()
           
static QImage convertToGLFormat(QImage img)
           
 void dispose()
          Delete the wrapped C++ instance ahead of finalize()
 void doneCurrent()
           
 boolean doubleBuffer()
           
protected  void finalize()
          Deletes the wrapped C++ instance
 QGLFormat format()
           
protected  void glDraw()
           
protected  void glInit()
           
 QImage grabFrameBuffer()
           
 QImage grabFrameBuffer(boolean withAlpha)
           
protected  void initializeGL()
           
protected  void initializeOverlayGL()
           
 boolean isDisposed()
          Has the wrapped C++ instance been deleted?
 boolean isSharing()
           
 boolean isValid()
           
 void makeCurrent()
           
 void makeOverlayCurrent()
           
 QMetaObject metaObject()
           
 QGLContext overlayContext()
           
protected  void paintEvent(QPaintEvent arg1)
           
protected  void paintGL()
           
protected  void paintOverlayGL()
           
 void qglClearColor(QColor c)
           
 void qglColor(QColor c)
           
 QPixmap renderPixmap()
           
 QPixmap renderPixmap(int w)
           
 QPixmap renderPixmap(int w, int h)
           
 QPixmap renderPixmap(int w, int h, boolean useContext)
           
 void renderText(double x, double y, double z, java.lang.String str)
           
 void renderText(double x, double y, double z, java.lang.String str, QFont fnt)
           
 void renderText(double x, double y, double z, java.lang.String str, QFont fnt, int listBase)
           
 void renderText(int x, int y, java.lang.String str)
           
 void renderText(int x, int y, java.lang.String str, QFont fnt)
           
 void renderText(int x, int y, java.lang.String str, QFont fnt, int listBase)
           
 void reparent(QWidget parent, int f, QPoint p)
           
 void reparent(QWidget parent, int f, QPoint p, boolean showIt)
           
protected  void resizeEvent(QResizeEvent arg1)
           
protected  void resizeGL(int w, int h)
           
protected  void resizeOverlayGL(int w, int h)
           
protected  void setAutoBufferSwap(boolean on)
           
 void setColormap(QGLColormap map)
           
 void setContext(QGLContext context)
           
 void setContext(QGLContext context, QGLContext shareContext)
           
 void setContext(QGLContext context, QGLContext shareContext, boolean deleteOldContext)
           
 void setFormat(QGLFormat format)
           
 void setMouseTracking(boolean enable)
           
 void swapBuffers()
           
static java.lang.String tr(java.lang.String arg1)
           
static java.lang.String tr(java.lang.String arg1, java.lang.String arg2)
           
 void updateGL()
           
 void updateOverlayGL()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QGLWidget

protected QGLWidget(java.lang.Class dummy)

QGLWidget

public QGLWidget(QWidget parent,
                 java.lang.String name,
                 QGLWidget shareWidget,
                 int f)

QGLWidget

public QGLWidget(QWidget parent,
                 java.lang.String name,
                 QGLWidget shareWidget)

QGLWidget

public QGLWidget(QWidget parent,
                 java.lang.String name)

QGLWidget

public QGLWidget(QWidget parent)

QGLWidget

public QGLWidget()

QGLWidget

public QGLWidget(QGLContext context,
                 QWidget parent,
                 java.lang.String name,
                 QGLWidget shareWidget,
                 int f)

QGLWidget

public QGLWidget(QGLContext context,
                 QWidget parent,
                 java.lang.String name,
                 QGLWidget shareWidget)

QGLWidget

public QGLWidget(QGLContext context,
                 QWidget parent,
                 java.lang.String name)

QGLWidget

public QGLWidget(QGLContext context,
                 QWidget parent)

QGLWidget

public QGLWidget(QGLFormat format,
                 QWidget parent,
                 java.lang.String name,
                 QGLWidget shareWidget,
                 int f)

QGLWidget

public QGLWidget(QGLFormat format,
                 QWidget parent,
                 java.lang.String name,
                 QGLWidget shareWidget)

QGLWidget

public QGLWidget(QGLFormat format,
                 QWidget parent,
                 java.lang.String name)

QGLWidget

public QGLWidget(QGLFormat format,
                 QWidget parent)

QGLWidget

public QGLWidget(QGLFormat format)
Method Detail

metaObject

public QMetaObject metaObject()

className

public java.lang.String className()

qglColor

public void qglColor(QColor c)

qglClearColor

public void qglClearColor(QColor c)

isValid

public boolean isValid()

isSharing

public boolean isSharing()

makeCurrent

public void makeCurrent()

doneCurrent

public void doneCurrent()

doubleBuffer

public boolean doubleBuffer()

swapBuffers

public void swapBuffers()

format

public QGLFormat format()

setFormat

public void setFormat(QGLFormat format)

context

public QGLContext context()

setContext

public void setContext(QGLContext context,
                       QGLContext shareContext,
                       boolean deleteOldContext)

setContext

public void setContext(QGLContext context,
                       QGLContext shareContext)

setContext

public void setContext(QGLContext context)

renderPixmap

public QPixmap renderPixmap(int w,
                            int h,
                            boolean useContext)

renderPixmap

public QPixmap renderPixmap(int w,
                            int h)

renderPixmap

public QPixmap renderPixmap(int w)

renderPixmap

public QPixmap renderPixmap()

grabFrameBuffer

public QImage grabFrameBuffer(boolean withAlpha)

grabFrameBuffer

public QImage grabFrameBuffer()

makeOverlayCurrent

public void makeOverlayCurrent()

overlayContext

public QGLContext overlayContext()

setMouseTracking

public void setMouseTracking(boolean enable)

reparent

public void reparent(QWidget parent,
                     int f,
                     QPoint p,
                     boolean showIt)

reparent

public void reparent(QWidget parent,
                     int f,
                     QPoint p)

colormap

public QGLColormap colormap()

setColormap

public void setColormap(QGLColormap map)

renderText

public void renderText(int x,
                       int y,
                       java.lang.String str,
                       QFont fnt,
                       int listBase)

renderText

public void renderText(int x,
                       int y,
                       java.lang.String str,
                       QFont fnt)

renderText

public void renderText(int x,
                       int y,
                       java.lang.String str)

renderText

public void renderText(double x,
                       double y,
                       double z,
                       java.lang.String str,
                       QFont fnt,
                       int listBase)

renderText

public void renderText(double x,
                       double y,
                       double z,
                       java.lang.String str,
                       QFont fnt)

renderText

public void renderText(double x,
                       double y,
                       double z,
                       java.lang.String str)

updateGL

public void updateGL()

updateOverlayGL

public void updateOverlayGL()

tr

public static java.lang.String tr(java.lang.String arg1,
                                  java.lang.String arg2)

tr

public static java.lang.String tr(java.lang.String arg1)

convertToGLFormat

public static QImage convertToGLFormat(QImage img)

initializeGL

protected void initializeGL()

resizeGL

protected void resizeGL(int w,
                        int h)

paintGL

protected void paintGL()

initializeOverlayGL

protected void initializeOverlayGL()

resizeOverlayGL

protected void resizeOverlayGL(int w,
                               int h)

paintOverlayGL

protected void paintOverlayGL()

setAutoBufferSwap

protected void setAutoBufferSwap(boolean on)

autoBufferSwap

protected boolean autoBufferSwap()

paintEvent

protected void paintEvent(QPaintEvent arg1)

resizeEvent

protected void resizeEvent(QResizeEvent arg1)

glInit

protected void glInit()

glDraw

protected void glDraw()

finalize

protected void finalize()
                 throws java.lang.InternalError
Deletes the wrapped C++ instance

Overrides:
finalize in class QGL
Throws:
java.lang.InternalError

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

Overrides:
dispose in class QGL

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

Overrides:
isDisposed in class QGL