GEMC  2.3
Geant4 Monte-Carlo Framework
Public Member Functions | Data Fields
graph Class Reference

#include <graph.h>

+ Inheritance diagram for graph:
+ Collaboration diagram for graph:

Public Member Functions

 graph (QWidget *parent=0)
 
 ~graph ()
 
void setAxis (int a, int b, int c, int d, int e, int f)
 
void setInside (double a, double b, double c)
 
void setDataAxisLimits (vector< double >, vector< double >)
 
void setPensWidth (int a, int b)
 
void setFixedAxis (int xmi, int xma, int ymi, int yma)
 
void plots_bg (string xtit, string ytit, vector< double > x, vector< double > y, string title)
 
void plot_graph (vector< double > x, vector< double > y, vector< int > pid)
 
void plotLabel (string, int, double, double, int)
 

Data Fields

QGraphicsScene * scene
 
int xorig
 
int yorig
 
int xaxil
 
int yaxil
 
int nticksx
 
int nticksy
 
double xmin
 
double ymin
 
double xmax
 
double ymax
 
double dx
 
double dy
 
int fixedAxis
 
double inside
 
double DX
 
double DY
 
double axisPenWidth
 
double dataPenWidth
 
map< int, QPen > pcolors
 

Detailed Description

Definition at line 13 of file graph.h.

Constructor & Destructor Documentation

graph::graph ( QWidget parent = 0)

Definition at line 8 of file graph.cc.

graph::~graph ( )
inline

Definition at line 20 of file graph.h.

Member Function Documentation

void graph::plot_graph ( vector< double >  x,
vector< double >  y,
vector< int >  pid 
)

Definition at line 132 of file graph.cc.

void graph::plotLabel ( string  lab,
int  pid,
double  xpos,
double  ypos,
int  labSize 
)

Definition at line 194 of file graph.cc.

void graph::plots_bg ( string  xtit,
string  ytit,
vector< double >  x,
vector< double >  y,
string  title 
)

Definition at line 39 of file graph.cc.

void graph::setAxis ( int  a,
int  b,
int  c,
int  d,
int  e,
int  f 
)
inline

Definition at line 38 of file graph.h.

void graph::setDataAxisLimits ( vector< double >  x,
vector< double >  y 
)

Definition at line 151 of file graph.cc.

void graph::setFixedAxis ( int  xmi,
int  xma,
int  ymi,
int  yma 
)

Definition at line 206 of file graph.cc.

void graph::setInside ( double  a,
double  b,
double  c 
)
inline

Definition at line 39 of file graph.h.

void graph::setPensWidth ( int  a,
int  b 
)
inline

Definition at line 41 of file graph.h.

Field Documentation

double graph::axisPenWidth

Definition at line 36 of file graph.h.

double graph::dataPenWidth

Definition at line 36 of file graph.h.

double graph::dx

Definition at line 30 of file graph.h.

double graph::DX

Definition at line 34 of file graph.h.

double graph::dy

Definition at line 30 of file graph.h.

double graph::DY

Definition at line 34 of file graph.h.

int graph::fixedAxis

Definition at line 31 of file graph.h.

double graph::inside

Definition at line 33 of file graph.h.

int graph::nticksx

Definition at line 26 of file graph.h.

int graph::nticksy

Definition at line 26 of file graph.h.

map<int, QPen> graph::pcolors

Definition at line 44 of file graph.h.

QGraphicsScene* graph::scene

Definition at line 22 of file graph.h.

int graph::xaxil

Definition at line 25 of file graph.h.

double graph::xmax

Definition at line 29 of file graph.h.

double graph::xmin

Definition at line 28 of file graph.h.

int graph::xorig

Definition at line 24 of file graph.h.

int graph::yaxil

Definition at line 25 of file graph.h.

double graph::ymax

Definition at line 29 of file graph.h.

double graph::ymin

Definition at line 28 of file graph.h.

int graph::yorig

Definition at line 24 of file graph.h.