MNE-CPP  beta 1.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DISPLIB::Graph Class Reference

Base class for graphs. More...

#include <graph.h>

Inheritance diagram for DISPLIB::Graph:
DISPLIB::ImageSc DISPLIB::Plot DISPLIB::RtPlot

Public Member Functions

 Graph (QWidget *parent=0)
 
void init ()
 
void setTitle (const QString &p_sTitle)
 
void setXLabel (const QString &p_sXLabel)
 
void setYLabel (const QString &p_sYLabel)
 

Protected Member Functions

void resizeEvent (QResizeEvent *)
 
void drawLabels (qint32 p_iContentWidth, qint32 p_iContentHeight)
 

Protected Attributes

QSize m_qSizeWidget
 
QString m_sTitle
 
QFont m_qFontTitle
 
QPen m_qPenTitle
 
qint32 m_iBorderTopBottom
 
qint32 m_iBorderLeftRight
 
QString m_sXLabel
 
QString m_sYLabel
 
QFont m_qFontAxes
 
QPen m_qPenAxes
 

Detailed Description

Base class for graphs.

Graph base class

Definition at line 95 of file graph.h.

Member Function Documentation

void Graph::setTitle ( const QString &  p_sTitle)

Sets the scaled image view title.

Parameters
[in]p_sTitleThe title

Definition at line 101 of file graph.cpp.

void Graph::setXLabel ( const QString &  p_sXLabel)

Sets the label of the y axes

Parameters
[in]p_sXLabelThe x axes label

Definition at line 110 of file graph.cpp.

void Graph::setYLabel ( const QString &  p_sYLabel)

Sets the label of the y axes

Parameters
[in]p_sXLabelThe y axes label

Definition at line 119 of file graph.cpp.

Member Data Documentation

qint32 DISPLIB::Graph::m_iBorderLeftRight
protected

distance to left and right

Definition at line 138 of file graph.h.

qint32 DISPLIB::Graph::m_iBorderTopBottom
protected

distance to top and bottom

Definition at line 137 of file graph.h.

QFont DISPLIB::Graph::m_qFontAxes
protected

Axes font

Definition at line 142 of file graph.h.

QFont DISPLIB::Graph::m_qFontTitle
protected

Title font

Definition at line 134 of file graph.h.

QPen DISPLIB::Graph::m_qPenAxes
protected

Axes pen

Definition at line 143 of file graph.h.

QPen DISPLIB::Graph::m_qPenTitle
protected

Title pen

Definition at line 135 of file graph.h.

QSize DISPLIB::Graph::m_qSizeWidget
protected

current widget size

Definition at line 131 of file graph.h.

QString DISPLIB::Graph::m_sTitle
protected

Title

Definition at line 133 of file graph.h.

QString DISPLIB::Graph::m_sXLabel
protected

X axes label

Definition at line 140 of file graph.h.

QString DISPLIB::Graph::m_sYLabel
protected

Y axes label

Definition at line 141 of file graph.h.


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