Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

Plot Class Reference

#include <Plot.h>

Inheritance diagram for Plot:

Plot2D Plot3D PlotPie PlotPolar PlotQWT3D PlotTernary Plot2DSimple Plot2DSurface List of all members.

Public Member Functions

 Plot (class Worksheet *p)
 general Plot class

virtual ~Plot ()
GraphListgetGraphList ()
void clear ()
void save (QTextStream *t)
virtual void saveAxes (QTextStream *t)=0
void saveAxis (QTextStream *t, Axis *axis, int gridenabled, int borderenabled, int minorgridenabled)
void open (QTextStream *t, int version)
void openAxis (QTextStream *t, int version, Axis *axis, bool *gridenabled, bool *borderenabled, bool *minorgridenabled)
virtual void openAxes (QTextStream *t, int version)=0
QString TicLabel (int atlf, int prec, QString dtf, double value)
 build the tic label string according to atlf

double TicLabelValue (int atlf, QString string)
 get the tic label value from the string according to atlf (range of axes)

virtual AxisgetAxis (int i)=0
LegendgetLegend ()
void setType (PType i)
PType Type ()
LabelTitle ()
virtual void setRange (LRange *, int i)=0
LRangeRange (int i)
virtual void setActRange (LRange *, int i)=0
LRangeActRange (int i)
virtual void setRanges (LRange *)=0
LRangeRanges ()
virtual void setActRanges (LRange *)=0
LRangeActRanges ()
void setRegionMin (double min)
void setRegionMax (double max)
void setRegion (double min, double max)
void setRegion (LRange *r)
double RegionMin ()
double RegionMax ()
LRangeRegion ()
bool regionEnabled ()
void setRegionEnabled (bool e=true)
void setTransparent (bool t)
bool Transparent ()
void setClipOffset (int c)
int ClipOffset ()
virtual void enableGrid (int index, bool b=true)=0
virtual bool gridEnabled (int index)=0
virtual void enableBorder (int index, bool b=true)=0
virtual bool borderEnabled (int index)=0
bool baselineEnabled ()
void setBaselineEnabled (bool e=true)
double Baseline ()
void setBaseline (double b)
double XBaseline ()
void setXBaseline (double b)
bool xbaselineEnabled ()
void setXBaselineEnabled (bool e=true)
bool marksEnabled ()
void setMarksEnabled (bool m=true)
LRangemarkX ()
void setMarkX (LRange *l)
LRangemarkY ()
void setMarkY (LRange *l)
virtual void draw (QPainter *p, int w, int h)=0
void drawStyle (QPainter *p, Style *s, Symbol *symbol, QPointArray pa, int xmin, int xmax, int ymin, int ymax)
void drawErrorBar (QPainter *p, QPointArray pa, QPointArray hpa, QPointArray vpa)
 draw errorbars for x-y-dy, x-y-dx-dy and x-y-dy1-dy2

virtual void setBorder (int, bool)=0
bool inside (double x, double y)
bool insideLegend (int x, int y)
bool insidePlottingArea (double x, double y)
bool insideF1Corner (double x, double y)
bool insideF2Corner (double x, double y)
bool insideB1Corner (double x, double y)
bool insideB2Corner (double x, double y)
bool insideX1Border (double x, double y)
bool insideX2Border (double x, double y)
bool insideY1Border (double x, double y)
bool insideY2Border (double x, double y)
bool insideCenter (double x, double y)
void setPosition (Point p)
void setPosition (double x, double y)
Point Position ()
void setSize (Point s)
void setSize (double x, double y)
Point Size ()
QColor Background ()
void setBackground (QColor c)
void setBackground (QString c)
QColor graphBackground ()
void setGraphBackground (QColor c)
void setGraphBackground (QString c)
void autoScaleX ()
void autoScaleY ()
void autoScaleZ ()
void setXRange (double x1, double x2)
void setYRange (double y1, double y2)
void setZRange (double z1, double z2)
Point P1 ()
Point P2 ()
void setP1 (Point p)
void setP2 (Point p)
void setXMin (int xmin, int X)
void setXMax (int xmax, int X)
void setYMin (int ymin, int Y)
void setYMax (int ymax, int Y)
void shiftRight ()
void shiftLeft ()
void shiftUp ()
void shiftDown ()
void scaleXUp ()
void scaleXDown ()
void scaleYUp ()
void scaleYDown ()
void scaleZUp ()
void scaleZDown ()
void zoomIn ()
void zoomOut ()
Point dataValue (double x)

Protected Member Functions

int autoTics (double min, double max)
 calcuate tic number for auto tics


Protected Attributes

Worksheetworksheet
PType type
GraphListgraphlist
Point position
Point size
Labeltitle
Legend legend
QColor bgcolor
QColor gbgcolor
Point p1
Point p2
LRange range [3]
LRange actrange [3]
double baseline
bool baseline_enabled
double xbaseline
bool xbaseline_enabled
LRangeregion
bool region_enabled
bool transparent
int clipoffset
bool marks_enabled
LRangemarkx
LRangemarky

Constructor & Destructor Documentation

Plot::Plot class Worksheet p  ) 
 

general Plot class

virtual Plot::~Plot  )  [inline, virtual]
 


Member Function Documentation

LRange* Plot::ActRange int  i  )  [inline]
 

LRange* Plot::ActRanges  )  [inline]
 

void Plot::autoScaleX  ) 
 

void Plot::autoScaleY  ) 
 

void Plot::autoScaleZ  ) 
 

int Plot::autoTics double  min,
double  max
[protected]
 

calcuate tic number for auto tics

QColor Plot::Background  )  [inline]
 

double Plot::Baseline  )  [inline]
 

bool Plot::baselineEnabled  )  [inline]
 

virtual bool Plot::borderEnabled int  index  )  [pure virtual]
 

Implemented in Plot2D, Plot3D, PlotPie, PlotPolar, PlotQWT3D, and PlotTernary.

void Plot::clear  )  [inline]
 

int Plot::ClipOffset  )  [inline]
 

Point Plot::dataValue double  x  ) 
 

virtual void Plot::draw QPainter *  p,
int  w,
int  h
[pure virtual]
 

Implemented in Plot2D, Plot3D, PlotPie, PlotPolar, PlotQWT3D, and PlotTernary.

void Plot::drawErrorBar QPainter *  p,
QPointArray  pa,
QPointArray  hpa,
QPointArray  vpa
 

draw errorbars for x-y-dy, x-y-dx-dy and x-y-dy1-dy2

void Plot::drawStyle QPainter *  p,
Style s,
Symbol symbol,
QPointArray  pa,
int  xmin,
int  xmax,
int  ymin,
int  ymax
 

virtual void Plot::enableBorder int  index,
bool  b = true
[pure virtual]
 

Implemented in Plot2D, Plot3D, PlotPie, PlotPolar, PlotQWT3D, and PlotTernary.

virtual void Plot::enableGrid int  index,
bool  b = true
[pure virtual]
 

Implemented in Plot2D, Plot3D, PlotPie, PlotPolar, PlotQWT3D, and PlotTernary.

virtual Axis* Plot::getAxis int  i  )  [pure virtual]
 

Implemented in Plot2D, Plot3D, PlotPie, PlotPolar, PlotQWT3D, and PlotTernary.

GraphList* Plot::getGraphList  )  [inline]
 

Legend* Plot::getLegend  )  [inline]
 

QColor Plot::graphBackground  )  [inline]
 

virtual bool Plot::gridEnabled int  index  )  [pure virtual]
 

Implemented in Plot2D, Plot3D, PlotPie, PlotPolar, PlotQWT3D, and PlotTernary.

bool Plot::inside double  x,
double  y
[inline]
 

bool Plot::insideB1Corner double  x,
double  y
[inline]
 

bool Plot::insideB2Corner double  x,
double  y
[inline]
 

bool Plot::insideCenter double  x,
double  y
[inline]
 

bool Plot::insideF1Corner double  x,
double  y
[inline]
 

bool Plot::insideF2Corner double  x,
double  y
[inline]
 

bool Plot::insideLegend int  x,
int  y
[inline]
 

bool Plot::insidePlottingArea double  x,
double  y
[inline]
 

bool Plot::insideX1Border double  x,
double  y
[inline]
 

bool Plot::insideX2Border double  x,
double  y
[inline]
 

bool Plot::insideY1Border double  x,
double  y
[inline]
 

bool Plot::insideY2Border double  x,
double  y
[inline]
 

bool Plot::marksEnabled  )  [inline]
 

LRange* Plot::markX  )  [inline]
 

LRange* Plot::markY  )  [inline]
 

void Plot::open QTextStream *  t,
int  version
 

virtual void Plot::openAxes QTextStream *  t,
int  version
[pure virtual]
 

Implemented in Plot2D, Plot3D, PlotPie, PlotPolar, PlotQWT3D, and PlotTernary.

void Plot::openAxis QTextStream *  t,
int  version,
Axis axis,
bool *  gridenabled,
bool *  borderenabled,
bool *  minorgridenabled
 

Point Plot::P1  )  [inline]
 

Point Plot::P2  )  [inline]
 

Point Plot::Position  )  [inline]
 

LRange* Plot::Range int  i  )  [inline]
 

LRange* Plot::Ranges  )  [inline]
 

LRange* Plot::Region  )  [inline]
 

bool Plot::regionEnabled  )  [inline]
 

double Plot::RegionMax  )  [inline]
 

double Plot::RegionMin  )  [inline]
 

void Plot::save QTextStream *  t  ) 
 

virtual void Plot::saveAxes QTextStream *  t  )  [pure virtual]
 

Implemented in Plot2D, Plot3D, PlotPie, PlotPolar, PlotQWT3D, and PlotTernary.

void Plot::saveAxis QTextStream *  t,
Axis axis,
int  gridenabled,
int  borderenabled,
int  minorgridenabled
 

void Plot::scaleXDown  ) 
 

void Plot::scaleXUp  ) 
 

void Plot::scaleYDown  ) 
 

void Plot::scaleYUp  ) 
 

void Plot::scaleZDown  ) 
 

void Plot::scaleZUp  ) 
 

virtual void Plot::setActRange LRange ,
int  i
[pure virtual]
 

Implemented in Plot2D, Plot3D, PlotPie, PlotPolar, PlotQWT3D, and PlotTernary.

virtual void Plot::setActRanges LRange  )  [pure virtual]
 

Implemented in Plot2D, Plot3D, PlotPie, PlotPolar, PlotQWT3D, and PlotTernary.

void Plot::setBackground QString  c  )  [inline]
 

void Plot::setBackground QColor  c  )  [inline]
 

void Plot::setBaseline double  b  )  [inline]
 

void Plot::setBaselineEnabled bool  e = true  )  [inline]
 

virtual void Plot::setBorder int  ,
bool 
[pure virtual]
 

Implemented in Plot2D, Plot3D, PlotPie, PlotPolar, PlotQWT3D, and PlotTernary.

void Plot::setClipOffset int  c  )  [inline]
 

void Plot::setGraphBackground QString  c  )  [inline]
 

void Plot::setGraphBackground QColor  c  )  [inline]
 

void Plot::setMarksEnabled bool  m = true  )  [inline]
 

void Plot::setMarkX LRange l  )  [inline]
 

void Plot::setMarkY LRange l  )  [inline]
 

void Plot::setP1 Point  p  )  [inline]
 

void Plot::setP2 Point  p  )  [inline]
 

void Plot::setPosition double  x,
double  y
[inline]
 

void Plot::setPosition Point  p  )  [inline]
 

virtual void Plot::setRange LRange ,
int  i
[pure virtual]
 

Implemented in Plot2D, Plot3D, PlotPie, PlotPolar, PlotQWT3D, and PlotTernary.

virtual void Plot::setRanges LRange  )  [pure virtual]
 

Implemented in Plot2D, Plot3D, PlotPie, PlotPolar, PlotQWT3D, and PlotTernary.

void Plot::setRegion LRange r  )  [inline]
 

void Plot::setRegion double  min,
double  max
[inline]
 

void Plot::setRegionEnabled bool  e = true  )  [inline]
 

void Plot::setRegionMax double  max  )  [inline]
 

void Plot::setRegionMin double  min  )  [inline]
 

void Plot::setSize double  x,
double  y
[inline]
 

void Plot::setSize Point  s  )  [inline]
 

void Plot::setTransparent bool  t  )  [inline]
 

void Plot::setType PType  i  )  [inline]
 

void Plot::setXBaseline double  b  )  [inline]
 

void Plot::setXBaselineEnabled bool  e = true  )  [inline]
 

void Plot::setXMax int  xmax,
int  X
[inline]
 

void Plot::setXMin int  xmin,
int  X
[inline]
 

void Plot::setXRange double  x1,
double  x2
[inline]
 

void Plot::setYMax int  ymax,
int  Y
[inline]
 

void Plot::setYMin int  ymin,
int  Y
[inline]
 

void Plot::setYRange double  y1,
double  y2
[inline]
 

void Plot::setZRange double  z1,
double  z2
[inline]
 

void Plot::shiftDown  ) 
 

void Plot::shiftLeft  ) 
 

void Plot::shiftRight  ) 
 

void Plot::shiftUp  ) 
 

Point Plot::Size  )  [inline]
 

QString Plot::TicLabel int  atlf,
int  prec,
QString  dtf,
double  value
 

build the tic label string according to atlf

double Plot::TicLabelValue int  atlf,
QString  string
 

get the tic label value from the string according to atlf (range of axes)

Label* Plot::Title  )  [inline]
 

bool Plot::Transparent  )  [inline]
 

PType Plot::Type  )  [inline]
 

double Plot::XBaseline  )  [inline]
 

bool Plot::xbaselineEnabled  )  [inline]
 

void Plot::zoomIn  ) 
 

void Plot::zoomOut  ) 
 


Member Data Documentation

LRange Plot::actrange[3] [protected]
 

double Plot::baseline [protected]
 

bool Plot::baseline_enabled [protected]
 

QColor Plot::bgcolor [protected]
 

int Plot::clipoffset [protected]
 

QColor Plot::gbgcolor [protected]
 

GraphList* Plot::graphlist [protected]
 

Legend Plot::legend [protected]
 

bool Plot::marks_enabled [protected]
 

LRange* Plot::markx [protected]
 

LRange * Plot::marky [protected]
 

Point Plot::p1 [protected]
 

Point Plot::p2 [protected]
 

Point Plot::position [protected]
 

LRange Plot::range[3] [protected]
 

LRange* Plot::region [protected]
 

bool Plot::region_enabled [protected]
 

Point Plot::size [protected]
 

Label* Plot::title [protected]
 

bool Plot::transparent [protected]
 

PType Plot::type [protected]
 

Worksheet* Plot::worksheet [protected]
 

double Plot::xbaseline [protected]
 

bool Plot::xbaseline_enabled [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Aug 19 21:34:46 2005 for LabPlot by doxygen 1.3.6