Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | 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 *w)
 general Plot class
virtual ~Plot ()
GraphList * getGraphList ()
void clear ()
void save (QTextStream *t)
void open (QTextStream *t, int version)
QDomElement savePlotXML (QDomDocument doc)
void openPlotXML (QDomNode node)
virtual void saveXML (QDomDocument doc, QDomElement plottag)=0
virtual void openXML (QDomElement e)=0
virtual void saveAxes (QTextStream *t)=0
virtual void openAxes (QTextStream *t, int version)=0
void saveAxis (QTextStream *t, Axis *axis)
void openAxis (QTextStream *t, int version, Axis *axis)
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 Axis * getAxis (int i)=0
Legend * getLegend ()
void setType (PType i)
PType Type ()
Label * Title ()
virtual void setRange (LRange *, int i)=0
LRange * Range (int i)
virtual void setActRange (LRange *, int i)=0
LRange * ActRange (int i)
virtual void setRanges (LRange *)=0
LRange * Ranges ()
virtual void setActRanges (LRange *)=0
LRange * ActRanges ()
void setRegionMin (double min)
void setRegionMax (double max)
void setRegion (double min, double max)
void setRegion (LRange *r)
double RegionMin ()
double RegionMax ()
LRange * Region ()
bool regionEnabled ()
void enableRegion (bool e=true)
void setRegionEnabled (bool e=true)
void setTransparent (bool t=true)
bool Transparent ()
void setClipOffset (int c)
int ClipOffset ()
bool BaselineEnabled ()
void enableBaseline (bool e=true)
void setBaselineEnabled (bool e=true)
double Baseline ()
void setBaseline (double b)
double XBaseline ()
void setXBaseline (double b)
bool XBaselineEnabled ()
void enableXBaseline (bool e=true)
void setXBaselineEnabled (bool e=true)
bool marksEnabled ()
void enableMarks (bool m=true)
void setMarksEnabled (bool m=true)
LRange * markX ()
void setMarkX (LRange *l)
LRange * markY ()
void setMarkY (LRange *l)
void setFill (bool f=true)
bool Fill ()
void setFillType (int t)
int FillType ()
void setFillG1 (int f)
int FillG1 ()
void setFillG2 (int f)
int FillG2 ()
void setFillBrush (QBrush b)
QBrush FillBrush ()
void setDataModeGraph (int i)
int DataModeGraph ()
virtual void draw (QPainter *p, int w, int h)=0
void sortPoints (QPointArray pa, int s, int e)
void drawStyle (QPainter *p, Style *s, Symbol *symbol, QPointArray pa, int xmin, int xmax, int ymin, int ymax)
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 ()
void enableAspectRatio (bool a=true)
bool AspectRatioEnabled ()
QBrush Background ()
void setBackground (QBrush c)
void setBackground (QString c)
QBrush graphBackground ()
void setGraphBackground (QBrush c)
void setGraphBackground (QString c)
void autoScaleX ()
void autoScaleY ()
void autoScaleZ ()
void autoScaleAll ()
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 setLeftPanel ()
void setRightPanel ()
void setTopPanel ()
void setBottomPanel ()
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 autoTicks (double min, double max)
 calcuate tic number for auto tics
void readAxisSettings (Axis *a, int type, int item=0)

Protected Attributes

Worksheet * worksheet
PType type
GraphList * graphlist
Point position
Point size
bool aspect_enabled
Label * title
Legend legend
QBrush bgcolor
QBrush gbgcolor
Point p1
Point p2
LRange range [3]
LRange actrange [3]
double baseline
bool baseline_enabled
double xbaseline
bool xbaseline_enabled
LRange * region
bool region_enabled
bool transparent
int clipoffset
bool marks_enabled
LRange * markx
LRange * marky
bool fill_enabled
int filltype
int fillg1
int fillg2
QBrush fillbrush
int datamodegraph

Constructor & Destructor Documentation

Plot::Plot (  class Worksheet *  w  ) 
 

general Plot class

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


Member Function Documentation

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

LRange* Plot::ActRanges (   )  [inline]
 

bool Plot::AspectRatioEnabled (   )  [inline]
 

void Plot::autoScaleAll (   )  [inline]
 

void Plot::autoScaleX (   ) 
 

void Plot::autoScaleY (   ) 
 

void Plot::autoScaleZ (   ) 
 

int Plot::autoTicks (  double  min,
double  max
)  [protected]
 

calcuate tic number for auto tics

QBrush Plot::Background (   )  [inline]
 

double Plot::Baseline (   )  [inline]
 

bool Plot::BaselineEnabled (   )  [inline]
 

void Plot::clear (   )  [inline]
 

int Plot::ClipOffset (   )  [inline]
 

int Plot::DataModeGraph (   )  [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::drawStyle (  QPainter *  p,
Style *  s,
Symbol *  symbol,
QPointArray  pa,
int  xmin,
int  xmax,
int  ymin,
int  ymax
) 
 

void Plot::enableAspectRatio (  bool  a = true  )  [inline]
 

void Plot::enableBaseline (  bool  e = true  )  [inline]
 

void Plot::enableMarks (  bool  m = true  )  [inline]
 

void Plot::enableRegion (  bool  e = true  )  [inline]
 

void Plot::enableXBaseline (  bool  e = true  )  [inline]
 

bool Plot::Fill (   )  [inline]
 

QBrush Plot::FillBrush (   )  [inline]
 

int Plot::FillG1 (   )  [inline]
 

int Plot::FillG2 (   )  [inline]
 

int Plot::FillType (   )  [inline]
 

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]
 

QBrush Plot::graphBackground (   )  [inline]
 

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
) 
 

void Plot::openPlotXML (  QDomNode  node  ) 
 

virtual void Plot::openXML (  QDomElement  e  )  [pure virtual]
 

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

Point Plot::P1 (   )  [inline]
 

Point Plot::P2 (   )  [inline]
 

Point Plot::Position (   )  [inline]
 

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

LRange* Plot::Ranges (   )  [inline]
 

void Plot::readAxisSettings (  Axis *  a,
int  type,
int  item = 0
)  [protected]
 

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
) 
 

QDomElement Plot::savePlotXML (  QDomDocument  doc  ) 
 

virtual void Plot::saveXML (  QDomDocument  doc,
QDomElement  plottag
)  [pure virtual]
 

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

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 (  QBrush  c  )  [inline]
 

void Plot::setBaseline (  double  b  )  [inline]
 

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

void Plot::setBottomPanel (   )  [inline]
 

void Plot::setClipOffset (  int  c  )  [inline]
 

void Plot::setDataModeGraph (  int  i  )  [inline]
 

void Plot::setFill (  bool  f = true  )  [inline]
 

void Plot::setFillBrush (  QBrush  b  )  [inline]
 

void Plot::setFillG1 (  int  f  )  [inline]
 

void Plot::setFillG2 (  int  f  )  [inline]
 

void Plot::setFillType (  int  t  )  [inline]
 

void Plot::setGraphBackground (  QString  c  )  [inline]
 

void Plot::setGraphBackground (  QBrush  c  )  [inline]
 

void Plot::setLeftPanel (   )  [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::setRightPanel (   )  [inline]
 

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

void Plot::setSize (  Point  s  )  [inline]
 

void Plot::setTopPanel (   )  [inline]
 

void Plot::setTransparent (  bool  t = true  )  [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]
 

void Plot::sortPoints (  QPointArray  pa,
int  s,
int  e
) 
 

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]
 

bool Plot::aspect_enabled [protected]
 

double Plot::baseline [protected]
 

bool Plot::baseline_enabled [protected]
 

QBrush Plot::bgcolor [protected]
 

int Plot::clipoffset [protected]
 

int Plot::datamodegraph [protected]
 

bool Plot::fill_enabled [protected]
 

QBrush Plot::fillbrush [protected]
 

int Plot::fillg1 [protected]
 

int Plot::fillg2 [protected]
 

int Plot::filltype [protected]
 

QBrush 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 Sat Oct 13 21:55:02 2007 for LabPlot by  doxygen 1.4.4