NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
GraphHelper Class Reference

This class encapsulates the mglGraph object during transmission from the kernel to the GUI. More...

#include <graph_helper.hpp>

Inheritance diagram for GraphHelper:
Collaboration diagram for GraphHelper:

Public Member Functions

 GraphHelper (mglGraph *__graph, const PlotData &_pData)
 Constructor. More...
 
 ~GraphHelper ()
 Destructor. Deletes the internal mglGraph pointer. More...
 
int Draw (mglGraph *_graph)
 Empty virtual function implementation. More...
 
void Reload ()
 Empty virtual function implementation. More...
 
mglGraph * setGrapher ()
 
bool getLighting ()
 
bool getAlpha ()
 
bool getHires ()
 
double getAspect ()
 
void setAspect (double aspect)
 
std::string getTitle ()
 

Private Attributes

mglGraph * _graph
 
bool bAlphaActive
 
bool bLightActive
 
bool bHires
 
double dAspect
 
std::string sTitle
 

Detailed Description

This class encapsulates the mglGraph object during transmission from the kernel to the GUI.

Definition at line 32 of file graph_helper.hpp.

Constructor & Destructor Documentation

◆ GraphHelper()

GraphHelper::GraphHelper ( mglGraph *  __graph,
const PlotData _pData 
)

Constructor.

Parameters
__graphmglGraph*
_pDataconst PlotData&

Definition at line 30 of file graph_helper.cpp.

References _graph, bAlphaActive, bHires, bLightActive, dAspect, PlotData::FLOAT_ASPECT, PlotData::getSettings(), PlotData::INT_HIGHRESLEVEL, PlotData::INT_LIGHTING, PlotData::LOG_ALPHA, sTitle, and PlotData::STR_COMPOSEDTITLE.

Here is the call graph for this function:

◆ ~GraphHelper()

GraphHelper::~GraphHelper ( )

Destructor. Deletes the internal mglGraph pointer.

Definition at line 45 of file graph_helper.cpp.

References _graph.

Member Function Documentation

◆ Draw()

int GraphHelper::Draw ( mglGraph *  _graph)

Empty virtual function implementation.

Parameters
_graphmglGraph*
Returns
int

Definition at line 59 of file graph_helper.cpp.

◆ getAlpha()

bool GraphHelper::getAlpha ( )
inline

Definition at line 52 of file graph_helper.hpp.

References bAlphaActive.

◆ getAspect()

double GraphHelper::getAspect ( )
inline

Definition at line 56 of file graph_helper.hpp.

References dAspect.

◆ getHires()

bool GraphHelper::getHires ( )
inline

Definition at line 54 of file graph_helper.hpp.

References bHires.

◆ getLighting()

bool GraphHelper::getLighting ( )
inline

Definition at line 50 of file graph_helper.hpp.

References bLightActive.

◆ getTitle()

std::string GraphHelper::getTitle ( )
inline

Definition at line 60 of file graph_helper.hpp.

References sTitle.

Referenced by NumeReWindow::showGraph().

◆ Reload()

void GraphHelper::Reload ( )

Empty virtual function implementation.

Returns
void

Definition at line 71 of file graph_helper.cpp.

◆ setAspect()

void GraphHelper::setAspect ( double  aspect)
inline

Definition at line 58 of file graph_helper.hpp.

References dAspect.

Referenced by createPlotForHist1D(), and createPlotsForHist2D().

◆ setGrapher()

mglGraph * GraphHelper::setGrapher ( )
inline

Definition at line 48 of file graph_helper.hpp.

References _graph.

Referenced by CustomWindow::setItemGraph().

Member Data Documentation

◆ _graph

mglGraph* GraphHelper::_graph
private

Definition at line 35 of file graph_helper.hpp.

Referenced by GraphHelper(), setGrapher(), and ~GraphHelper().

◆ bAlphaActive

bool GraphHelper::bAlphaActive
private

Definition at line 36 of file graph_helper.hpp.

Referenced by getAlpha(), and GraphHelper().

◆ bHires

bool GraphHelper::bHires
private

Definition at line 38 of file graph_helper.hpp.

Referenced by getHires(), and GraphHelper().

◆ bLightActive

bool GraphHelper::bLightActive
private

Definition at line 37 of file graph_helper.hpp.

Referenced by getLighting(), and GraphHelper().

◆ dAspect

double GraphHelper::dAspect
private

Definition at line 39 of file graph_helper.hpp.

Referenced by getAspect(), GraphHelper(), and setAspect().

◆ sTitle

std::string GraphHelper::sTitle
private

Definition at line 40 of file graph_helper.hpp.

Referenced by getTitle(), and GraphHelper().


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