OpenStructure
Signals | Public Member Functions | Protected Member Functions
GLCanvas Class Reference

#include <gl_canvas.hh>

Inherits QOpenGLWindow, and GLWinBase.

Signals

void CustomContextMenuRequested (const QPoint &point)
 

Public Member Functions

 GLCanvas ()
 
virtual ~GLCanvas ()
 
virtual void MakeActive ()
 
virtual void DoRefresh ()
 
virtual void StatusMessage (const String &m)
 
virtual bool HasStereo () const
 
virtual bool HasMultisample () const
 
void SetDefaultFormat ()
 
void SetStereoFormat ()
 
void OnTransform (gfx::InputCommand, int indx, gfx::TransformTarget, Real val)
 
void SetTestMode (bool f)
 
virtual void Export (const String &fname, unsigned int width, unsigned int height, bool transparent)
 
virtual void Export (const String &fname, unsigned int width, unsigned int height, int max_samples, bool transparent)
 
virtual void Export (const String &fname, bool transparent)
 
- Public Member Functions inherited from GLWinBase
virtual ~GLWinBase ()
 

Protected Member Functions

virtual void initializeGL ()
 
virtual void paintGL ()
 
virtual void resizeGL (int w, int h)
 
virtual void mouseMoveEvent (QMouseEvent *event)
 
virtual void mousePressEvent (QMouseEvent *event)
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 
virtual void mouseDoubleClickEvent (QMouseEvent *event)
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void keyReleaseEvent (QKeyEvent *event)
 
virtual void wheelEvent (QWheelEvent *event)
 
virtual bool event (QEvent *event)
 

Detailed Description

Definition at line 38 of file gl_canvas.hh.

Constructor & Destructor Documentation

◆ GLCanvas()

GLCanvas ( )

◆ ~GLCanvas()

virtual ~GLCanvas ( )
virtual

Member Function Documentation

◆ CustomContextMenuRequested

void CustomContextMenuRequested ( const QPoint &  point)
signal

◆ DoRefresh()

virtual void DoRefresh ( )
inlinevirtual

Implements GLWinBase.

Definition at line 47 of file gl_canvas.hh.

◆ event()

virtual bool event ( QEvent *  event)
protectedvirtual

◆ Export() [1/3]

virtual void Export ( const String fname,
bool  transparent 
)
virtual

Reimplemented from GLWinBase.

◆ Export() [2/3]

virtual void Export ( const String fname,
unsigned int  width,
unsigned int  height,
bool  transparent 
)
virtual

Reimplemented from GLWinBase.

◆ Export() [3/3]

virtual void Export ( const String fname,
unsigned int  width,
unsigned int  height,
int  max_samples,
bool  transparent 
)
virtual

Reimplemented from GLWinBase.

◆ HasMultisample()

virtual bool HasMultisample ( ) const
inlinevirtual

Implements GLWinBase.

Definition at line 50 of file gl_canvas.hh.

◆ HasStereo()

virtual bool HasStereo ( ) const
inlinevirtual

Implements GLWinBase.

Definition at line 49 of file gl_canvas.hh.

◆ initializeGL()

virtual void initializeGL ( )
protectedvirtual

◆ keyPressEvent()

virtual void keyPressEvent ( QKeyEvent *  event)
protectedvirtual

◆ keyReleaseEvent()

virtual void keyReleaseEvent ( QKeyEvent *  event)
protectedvirtual

◆ MakeActive()

virtual void MakeActive ( )
virtual

Reimplemented from GLWinBase.

◆ mouseDoubleClickEvent()

virtual void mouseDoubleClickEvent ( QMouseEvent *  event)
protectedvirtual

◆ mouseMoveEvent()

virtual void mouseMoveEvent ( QMouseEvent *  event)
protectedvirtual

◆ mousePressEvent()

virtual void mousePressEvent ( QMouseEvent *  event)
protectedvirtual

◆ mouseReleaseEvent()

virtual void mouseReleaseEvent ( QMouseEvent *  event)
protectedvirtual

◆ OnTransform()

void OnTransform ( gfx::InputCommand  ,
int  indx,
gfx::TransformTarget  ,
Real  val 
)

◆ paintGL()

virtual void paintGL ( )
protectedvirtual

◆ resizeGL()

virtual void resizeGL ( int  w,
int  h 
)
protectedvirtual

◆ SetDefaultFormat()

void SetDefaultFormat ( )

◆ SetStereoFormat()

void SetStereoFormat ( )

◆ SetTestMode()

void SetTestMode ( bool  f)

◆ StatusMessage()

virtual void StatusMessage ( const String m)
virtual

Implements GLWinBase.

◆ wheelEvent()

virtual void wheelEvent ( QWheelEvent *  event)
protectedvirtual

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