XeGraph Class Reference

Extension to TGraph. More...

#include <XeCore.h>

Inheritance diagram for XeGraph:
XeStylized XeGraphics XeObject XeCore XeCore XeGraphPositive

List of all members.

Public Member Functions

void addGraph (TGraph &gr)
void applyStyle ()
 Virtual method applying the XeStyle to the object.
XeGraphdivide (XeGraph *reference)
void draw (string options="L", int flag=WITH_LEGEND)
 Draw the graph.
void drawInsideS1S2 (string opt="")
void drawS1S2 (string opt="")
 void Draw a graph in S1S2 plane, according to current display mode
double getMaxX ()
 Pure virtual method returning X maximum value.
double getMaxY ()
 Pure virtual method returning Y maximum value.
double getMinX ()
 Pure virtual method returning X minimum value.
double getMinY ()
 Pure virtual method returning Y minimum value.
double getMinYNotZero ()
 Get the minimum value of all values>0.
int getN ()
double getSumX ()
 Get the sum of all X values.
double getSumY ()
 Get the sum of all Y values.
TGraph * getTGraph ()
 Get pointer to TGraph the pointer.
double getX (int i)
double * getX ()
double getY (int i)
double * getY ()
bool isCompatible (XeGraph *reference)
bool printGraph (int n=0, bool stat=false, double xNorm=1., double yNorm=1.)
 Print the graph.
void printHeader ()
bool printIt (int level=1)
 method to print the object
void set (int i)
void setPoint (int i, double x, double y)
void setTheNames (string n, string leg="")
 XeGraph (string name, TGraph &gr, string Xlab="", string Ylab="", XeStyle *st=NULL, string legend="")
 constructor from a TGraph
 XeGraph (string name, int n, string Xlab="", string Ylab="", XeStyle *st=NULL, string legend="")
 constructor with all details but the actual values
 XeGraph (string name, int n, double *x, double *y, string Xlab="", string Ylab="", XeStyle *st=NULL, string legend="", double norm=1.)
 constructor with all details
 XeGraph (string fn, string name, int dummy, string Xlab="", string Ylab="", XeStyle *st=NULL, string legend="")
 constructor reading directly from a text file
 XeGraph (string name, string xLab="", string yLab="")
 Constructor with minimum information.

Protected Attributes

TGraph graph

Detailed Description

Extension to TGraph.


Constructor & Destructor Documentation

XeGraph::XeGraph ( string  name,
string  xLab = "",
string  yLab = "" 
)

Constructor with minimum information.

Parameters:
name name of the graph
xLab X-Label
yLab Y-Label
XeGraph::XeGraph ( string  fn,
string  name,
int  dummy,
string  Xlab = "",
string  Ylab = "",
XeStyle st = NULL,
string  legend = "" 
)

constructor reading directly from a text file

Parameters:
fn name of the file to be read from name name of the XeObject
Xlab X-Label
Ylab Y-Label
st XeStyle of the graph (useful in MultiGraphs)
legend Legend to be drawn (useful in MultiGraphs)
XeGraph::XeGraph ( string  name,
int  n,
double *  x,
double *  y,
string  Xlab = "",
string  Ylab = "",
XeStyle st = NULL,
string  legend = "",
double  norm = 1. 
)

constructor with all details

Parameters:
name name of the object
n number of points in the graph
x pointer to array of X's
y pointer to array of Y's
Xlab X-Label
Ylab Y-Label
st XeStyle of the graph (useful in MultiGraphs)
legend Legend to be drawn (useful in MultiGraphs)
norm Normalisation of overall integral
XeGraph::XeGraph ( string  name,
int  n,
string  Xlab = "",
string  Ylab = "",
XeStyle st = NULL,
string  legend = "" 
)

constructor with all details but the actual values

Parameters:
name name of the object
n number of points in the graph
Xlab X-Label
Ylab Y-Label
st XeStyle of the graph (useful in MultiGraphs)
legend Legend to be drawn (useful in MultiGraphs)
XeGraph::XeGraph ( string  name,
TGraph &  gr,
string  Xlab = "",
string  Ylab = "",
XeStyle st = NULL,
string  legend = "" 
)

constructor from a TGraph

Parameters:
name name of the object
gr original TGraph
Xlab X-Label
Ylab Y-Label
st XeStyle of the graph (useful in MultiGraphs)
legend Legend to be drawn (useful in MultiGraphs)

Member Function Documentation

void XeGraph::draw ( string  options = "L",
int  flag = WITH_LEGEND 
) [virtual]

Draw the graph.

Parameters:
options drawing options
flag = WITH_LEGEND or NO_LEGEND

Implements XeStylized.

void XeGraph::drawS1S2 ( string  opt = ""  ) 

void Draw a graph in S1S2 plane, according to current display mode

Parameters:
opt extra Drawing options
bool XeGraph::printGraph ( int  n = 0,
bool  stat = false,
double  xNorm = 1.,
double  yNorm = 1. 
)

Print the graph.

Returns:
true for compatibility reasons
Parameters:
n number of points (0 means all)
stat also print min,max,sum of X and Y
xNorm all x values are mutilplied by xNorm
yNorm all y values are mutilplied by xNorm
bool XeGraph::printIt ( int  level = 1  )  [virtual]

method to print the object

Returns:
true if no error was found
Parameters:
level print level

Reimplemented from XeObject.


The documentation for this class was generated from the following file:
 All Classes Functions Variables

Generated on 10 Apr 2015 for Xephyr by  doxygen 1.6.1