g4tools  5.4.0
Public Member Functions | Protected Attributes | List of all members
tools::Qt::plots_glarea Class Reference
Inheritance diagram for tools::Qt::plots_glarea:
Inheritance graph
[legend]
Collaboration diagram for tools::Qt::plots_glarea:
Collaboration graph
[legend]

Public Member Functions

virtual void initialieGL ()
 
virtual void resizeGL (int a_w, int a_h)
 
virtual void paintGL ()
 
 plots_glarea (QWidget *a_parent, tools::sg::GL_plots_viewer &a_viewer)
 
virtual ~plots_glarea ()
 

Protected Attributes

tools::sg::GL_plots_viewerm_viewer
 

Detailed Description

Definition at line 14 of file plots_glarea.

Constructor & Destructor Documentation

◆ plots_glarea()

tools::Qt::plots_glarea::plots_glarea ( QWidget *  a_parent,
tools::sg::GL_plots_viewer a_viewer 
)
inline

Definition at line 39 of file plots_glarea.

39 :parent(a_parent),m_viewer(a_viewer){}

◆ ~plots_glarea()

virtual tools::Qt::plots_glarea::~plots_glarea ( )
inlinevirtual

Definition at line 40 of file plots_glarea.

40 {}

Member Function Documentation

◆ initialieGL()

virtual void tools::Qt::plots_glarea::initialieGL ( )
inlinevirtual

Definition at line 17 of file plots_glarea.

17 {}

◆ paintGL()

virtual void tools::Qt::plots_glarea::paintGL ( )
inlinevirtual

Definition at line 27 of file plots_glarea.

27  {
28 #if QT_VERSION < 0x050000
29  //::printf("debug : tools::Qt::plots_glarea::paintGL %d %d\n",width(),height());
30  m_viewer.set_size(width(),height());
31 #else
32  //::printf("debug : tools::Qt::plots_glarea::paintGL %d %d\n",m_width,m_height);
33  m_viewer.set_size(m_width,m_height);
34 #endif
35  m_viewer.render();
36  }

◆ resizeGL()

virtual void tools::Qt::plots_glarea::resizeGL ( int  a_w,
int  a_h 
)
inlinevirtual

Definition at line 18 of file plots_glarea.

18  {
19  //::printf("debug : resize : %d %d\n",a_w,a_h);
20 #if QT_VERSION < 0x050000
21 #else
22  m_width = a_w;
23  m_height = a_h;
24 #endif
25  }

Member Data Documentation

◆ m_viewer

tools::sg::GL_plots_viewer& tools::Qt::plots_glarea::m_viewer
protected

Definition at line 42 of file plots_glarea.


The documentation for this class was generated from the following file:
tools::sg::plots_viewer::set_size
virtual void set_size(unsigned int a_width, unsigned int a_height)
Definition: plots_viewer:31
tools::Qt::plots_glarea::m_viewer
tools::sg::GL_plots_viewer & m_viewer
Definition: plots_glarea:42
tools::sg::GL_plots_viewer::render
void render()
Definition: GL_plots_viewer:22