anatomist  5.1.2
3D neuroimaging data viewer
QAGLWidget3D Class Reference

#include <anatomist/window3D/glwidget3D.h>

Inheritance diagram for QAGLWidget3D:
Collaboration diagram for QAGLWidget3D:

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
 
- Public Member Functions inherited from QAGLWidget
 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 ()
 
- Public Member Functions inherited from carto::GLWidget
 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 ()
 
- Public Member Functions inherited from anatomist::GLWidgetManager
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::Quaternionquaternion () 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)
 
GLWidgetManagerrightEye ()
 
GLWidgetManagerleftEye ()
 
void setRightEye (GLWidgetManager *)
 
void setLeftEye (GLWidgetManager *)
 
AWindowaWindow ()
 
const AWindowaWindow () 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)
 
- Public Member Functions inherited from anatomist::View
 View (AWindow *win)
 
virtual ~View ()
 
ControlSwitchcontrolSwitch ()
 

Additional Inherited Members

- Public Types inherited from anatomist::GLWidgetManager
enum  DrawMode {
  Normal , ZSelect , ObjectSelect , ObjectsSelect ,
  PolygonSelect
}
 
- Public Slots inherited from QAGLWidget
virtual void updateGL ()
 to be reimplemented in "public slots" More...
 
void debugPrint ()
 
- Signals inherited from QAGLWidget
void viewRendered ()
 
- Static Public Member Functions inherited from anatomist::GLWidgetManager
static QGLWidget * sharedWidget ()
 
- Protected Member Functions inherited from QAGLWidget
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 *)
 
- Protected Member Functions inherited from anatomist::GLWidgetManager
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)
 
- Protected Attributes inherited from anatomist::GLWidgetManager
anatomist::GLPrimitives _primitives
 
anatomist::GLPrimitives _selectprimitives
 

Detailed Description

Definition at line 46 of file glwidget3D.h.

Constructor & Destructor Documentation

◆ QAGLWidget3D()

QAGLWidget3D::QAGLWidget3D ( anatomist::AWindow win,
QWidget *  parent = 0,
const char *  name = 0,
const QGLWidget *  shareWidget = 0,
Qt::WindowFlags  f = Qt::WindowFlags() 
)

◆ ~QAGLWidget3D()

virtual QAGLWidget3D::~QAGLWidget3D ( )
virtual

Member Function Documentation

◆ name()

virtual std::string QAGLWidget3D::name ( ) const
virtual

Reimplemented from QAGLWidget.


The documentation for this class was generated from the following file: