MNE-CPP  0.1.9
A Framework for Electrophysiology
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DISPLIB::Graph Class Reference

Base class for graphs. More...

#include <graph.h>

Public Types

typedef QSharedPointer< GraphSPtr
typedef QSharedPointer< const GraphConstSPtr

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 *event)
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 80 of file graph.h.

Inheritance diagram for DISPLIB::Graph:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

typedef QSharedPointer<const Graph> DISPLIB::Graph::ConstSPtr

Const shared pointer type for Graph class.

Definition at line 86 of file graph.h.

◆ SPtr

typedef QSharedPointer<Graph> DISPLIB::Graph::SPtr

Shared pointer type for Graph class.

Definition at line 85 of file graph.h.

Constructor & Destructor Documentation

◆ Graph()

Graph::Graph ( QWidget *  parent = 0)

The constructor.

[in]parentThe parent widget.

Definition at line 64 of file graph.cpp.

Member Function Documentation

◆ drawLabels()

void Graph::drawLabels ( qint32  p_iContentWidth,
qint32  p_iContentHeight 

Draw the labels.

[in]p_iContentWidthThe contents width.
[in]p_iContentHeightThe contents height.

Definition at line 120 of file graph.cpp.

◆ init()

void Graph::init ( )

Init this class.

Definition at line 72 of file graph.cpp.

◆ resizeEvent()

void Graph::resizeEvent ( QResizeEvent *  event)

Reimplemented resizeEvent

[in]eventThe resize event.

Definition at line 166 of file graph.cpp.

◆ setTitle()

void Graph::setTitle ( const QString &  p_sTitle)

Sets the scaled image view title.

[in]p_sTitleThe title.

Definition at line 96 of file graph.cpp.

◆ setXLabel()

void Graph::setXLabel ( const QString &  p_sXLabel)

Sets the label of the y axes

[in]p_sXLabelThe x axes label.

Definition at line 104 of file graph.cpp.

◆ setYLabel()

void Graph::setYLabel ( const QString &  p_sYLabel)

Sets the label of the y axes

[in]p_sXLabelThe y axes label.

Definition at line 112 of file graph.cpp.

Member Data Documentation

◆ m_iBorderLeftRight

qint32 DISPLIB::Graph::m_iBorderLeftRight

distance to left and right.

Definition at line 153 of file graph.h.

◆ m_iBorderTopBottom

qint32 DISPLIB::Graph::m_iBorderTopBottom

distance to top and bottom.

Definition at line 152 of file graph.h.

◆ m_qFontAxes

QFont DISPLIB::Graph::m_qFontAxes

Axes font.

Definition at line 157 of file graph.h.

◆ m_qFontTitle

QFont DISPLIB::Graph::m_qFontTitle

Title font.

Definition at line 149 of file graph.h.

◆ m_qPenAxes

QPen DISPLIB::Graph::m_qPenAxes

Axes pen.

Definition at line 158 of file graph.h.

◆ m_qPenTitle

QPen DISPLIB::Graph::m_qPenTitle

Title pen.

Definition at line 150 of file graph.h.

◆ m_qSizeWidget

QSize DISPLIB::Graph::m_qSizeWidget

current widget size.

Definition at line 146 of file graph.h.

◆ m_sTitle

QString DISPLIB::Graph::m_sTitle


Definition at line 148 of file graph.h.

◆ m_sXLabel

QString DISPLIB::Graph::m_sXLabel

X axes label.

Definition at line 155 of file graph.h.

◆ m_sYLabel

QString DISPLIB::Graph::m_sYLabel

Y axes label.

Definition at line 156 of file graph.h.

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