![]() |
anatomist
5.1.2
3D neuroimaging data viewer
|
#include <anatomist/window3D/glwidget3D.h>
Public Member Functions | |
QAGLWidget3D (anatomist::AWindow *win, QWidget *parent=0, const char *name=0, const QGLWidget *shareWidget=0, Qt::WindowFlags f=Qt::WindowFlags()) | |
virtual | ~QAGLWidget3D () |
virtual std::string | name () const |
![]() | |
QAGLWidget (anatomist::AWindow *win, QWidget *parent=0, const char *name=0, const QGLWidget *shareWidget=0, Qt::WindowFlags f=Qt::WindowFlags()) | |
virtual | ~QAGLWidget () |
virtual QSize | sizeHint () const |
virtual QSize | minimumSizeHint () const |
int | width () |
int | height () |
![]() | |
GLWidget (QWidget *parent=0, const char *name=0, const QGLWidget *shareWidget=0, Qt::WindowFlags f=Qt::WindowFlags()) | |
GLWidget (const QGLFormat &format, QWidget *parent=0, const char *name=0, const QGLWidget *shareWidget=0, Qt::WindowFlags f=Qt::WindowFlags()) | |
virtual | ~GLWidget () |
![]() | |
virtual void | updateGL () |
void | renderBackBuffer (ViewState::glSelectRenderMode selectmode) |
void | copyBackBuffer2Texture (void) |
virtual void | paintScene () |
basically calls paintGL() More... | |
GLWidgetManager (anatomist::AWindow *win, QGLWidget *widget) | |
virtual | ~GLWidgetManager () |
QGLWidget * | qglWidget () |
QObject * | qobject () |
this QObject is used for slots: updateZBuffer, saveContents, recordStart, recordStop More... | |
void | setPrimitives (const anatomist::GLPrimitives &li) |
anatomist::GLPrimitives | primitives () const |
void | setSelectionPrimitives (const anatomist::GLPrimitives &li) |
anatomist::GLPrimitives | selectionPrimitives () const |
void | clearLists () |
void | setExtrema (const Point3df &bmin, const Point3df &bmax) |
set objects extrema, this also automatically sets the window bounding box More... | |
void | setWindowExtrema (const Point3df &bmin, const Point3df &bmax) |
set window extrema (in the local orientation) More... | |
Point3df | boundingMin () const |
Point3df | boundingMax () const |
Point3df | windowBoundingMin () const |
Point3df | windowBoundingMax () const |
void | setLightGLList (GLuint l) |
GLuint | lightGLList () const |
void | setPreferredSize (int, int) |
void | setMinimumSizeHint (const QSize &) |
virtual bool | positionFromCursor (int x, int y, Point3df &position) |
virtual bool | cursorFromPosition (const Point3df &position, Point3df &cursor) |
virtual Point3df | objectPositionFromWindow (const Point3df &winpos) |
virtual void | readBackBuffer (int x, int y, GLubyte &red, GLubyte &green, GLubyte &blue) |
GLubyte * | getTextureFromBackBuffer () |
virtual bool | translateCursorPosition (float x, float y, Point3df &position) |
void | setZoom (float z) |
float | zoom () const |
const aims::Quaternion & | quaternion () const |
The quaternion rotates the initial eye direction (0, 0, 1) into the view coordinates, before Z axis inversion. More... | |
void | setQuaternion (const Point4df &q) |
void | setQuaternion (const aims::Quaternion &q) |
const float * | rotation () const |
void | setXDirection (bool invert) |
void | setYDirection (bool invert) |
void | setZDirection (bool invert) |
bool | invertedX () const |
bool | invertedY () const |
bool | invertedZ () const |
void | setRotationCenter (const Point3df &) |
Point3df | rotationCenter () const |
bool | perspectiveEnabled () const |
void | enablePerspective (bool) |
float | perspectiveAngle () const |
void | setPerspectiveAngle (float a) |
bool | perspectiveAutoFarPlane () const |
void | setPerspectiveAutoFarPlane (bool x) |
float | perspectiveFarPlane () const |
void | setPerspectiveFarPlane (float d) |
float | perspectiveNearPlane () const |
float | perspectiveNearPlaneRatio () const |
void | setPerspectiveNearPlaneRatio (float d) |
void | setAutoCentering (bool) |
bool | autoCentering () const |
virtual void | recordStart (const QString &basename, const QString &format=QString(), int width=0, int height=0) |
void | saveContents (const QString &filename, const QString &format, int width=0, int height=0) |
QImage | snapshotImage (int bufmode, int width=0, int height=0) |
void | saveOtherBuffer (const QString &filename, const QString &format, int mode, int width=0, int height=0) |
void | setOtherBuffersSaveMode (int mode) |
int | otherBuffersSaveMode () const |
bool | hasTransparentObjects () const |
void | setTransparentObjects (bool) |
bool | depthPeelingAllowed () const |
bool | depthPeelingEnabled () const |
void | enableDepthPeeling (bool) |
unsigned | depthPeelingPasses () const |
void | setDepthPeelingPasses (unsigned n) |
unsigned | numTextureUnits () const |
bool | recording () const |
void | setBackgroundAlpha (float a) |
GLWidgetManager * | rightEye () |
GLWidgetManager * | leftEye () |
void | setRightEye (GLWidgetManager *) |
void | setLeftEye (GLWidgetManager *) |
AWindow * | aWindow () |
const AWindow * | aWindow () const |
virtual void | saveContents () |
void | saveContentsWithCustomSize () |
virtual void | recordStart () |
void | recordStartWithCustomSize () |
virtual void | recordStop () |
bool | hasCameraChanged () const |
void | bindOtherFramebuffer (DrawMode m) |
void | restoreFramebuffer () |
void | resizeOtherFramebuffers (int w, int h) |
![]() | |
View (AWindow *win) | |
virtual | ~View () |
ControlSwitch * | controlSwitch () |
Additional Inherited Members | |
![]() | |
enum | DrawMode { Normal , ZSelect , ObjectSelect , ObjectsSelect , PolygonSelect } |
![]() | |
virtual void | updateGL () |
to be reimplemented in "public slots" More... | |
void | debugPrint () |
![]() | |
void | viewRendered () |
![]() | |
static QGLWidget * | sharedWidget () |
![]() | |
virtual void | initializeGL () Q_DECL_OVERRIDE |
virtual void | resizeGL (int w, int h) Q_DECL_OVERRIDE |
virtual void | paintGL () Q_DECL_OVERRIDE |
virtual void | mousePressEvent (QMouseEvent *me) |
virtual void | mouseReleaseEvent (QMouseEvent *me) |
virtual void | mouseMoveEvent (QMouseEvent *me) |
virtual void | mouseDoubleClickEvent (QMouseEvent *) |
virtual void | keyPressEvent (QKeyEvent *ev) |
virtual void | keyReleaseEvent (QKeyEvent *ev) |
virtual void | focusInEvent (QFocusEvent *) |
virtual void | focusOutEvent (QFocusEvent *) |
virtual void | wheelEvent (QWheelEvent *) |
![]() | |
virtual void | project (int virtualWidth=0, int virtualHeight=0) |
virtual void | setupView (int virtualWidth=0, int virtualHeight=0) |
void | drawObjects (DrawMode m=Normal) |
void | depthPeelingRender (DrawMode m=Normal) |
virtual void | paintGL (DrawMode m, int virtualWidth=0, int virtualHeight=0) |
Virtual width and height are used to perform off-screen rendering. More... | |
void | record () |
virtual void | updateZBuffer () |
bool | isZBufferUpToDate () const |
void | setZBufferUpdated (bool) |
void | stopZBufferTimer () |
bool | isRGBBufferUpToDate () const |
void | setRGBBufferUpdated (bool) |
![]() | |
anatomist::GLPrimitives | _primitives |
anatomist::GLPrimitives | _selectprimitives |
Definition at line 46 of file glwidget3D.h.
QAGLWidget3D::QAGLWidget3D | ( | anatomist::AWindow * | win, |
QWidget * | parent = 0 , |
||
const char * | name = 0 , |
||
const QGLWidget * | shareWidget = 0 , |
||
Qt::WindowFlags | f = Qt::WindowFlags() |
||
) |
|
virtual |
|
virtual |
Reimplemented from QAGLWidget.