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 PlotGL PlotGRASS PlotPie PlotPolar PlotQWT3D PlotTernary PlotVTK 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 axisnr, int atlf, int prec, QString dtf, double value)
 build the tic label string according to atlf

virtual AxisgetAxis (int i)=0
LegendgetLegend ()
void setType (PType i)
PType Type ()
LabelTitle ()
virtual void setRanges (LRange *)=0
LRangeRanges ()
virtual void setActRanges (LRange *)=0
LRangeActRanges ()
void setRegionMin (double min)
void setRegionMax (double max)
double RegionMin ()
double RegionMax ()
bool regionEnabled ()
void setRegionEnabled (bool e)
void setTransparent (bool t)
bool Transparent ()
void setClipOffset (int c)
int ClipOffset ()
virtual void enableGrid (int index, bool b)=0
virtual bool gridEnabled (int index)=0
virtual void enableBorder (int index, bool b)=0
virtual bool borderEnabled (int index)=0
bool baselineEnabled ()
double Baseline ()
void setBaselineEnabled (bool e)
void setBaseline (double b)
virtual void draw (QPainter *p, int w, int h)=0
void drawStyle (QPainter *p, Style s, int oldx, int oldy, int x, int y, int xmin, int xmax, int ymin, int ymax)
void drawErrorBar (QPainter *p, int x, int y, int xleft, int xright, int ytop, int ybottom)
 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 ()
void setBackground (QColor c)
QColor Background ()
void setGraphBackground (QColor c)
QColor graphBackground ()
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 ()

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
LRange region
bool region_enabled
bool transparent
int clipoffset

Constructor & Destructor Documentation

Plot::Plot class Worksheet p  ) 
 

general Plot class

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


Member Function Documentation

LRange* Plot::ActRanges  )  [inline]
 

void Plot::autoScaleX  )  [inline]
 

void Plot::autoScaleY  )  [inline]
 

void Plot::autoScaleZ  )  [inline]
 

QColor Plot::Background  )  [inline]
 

double Plot::Baseline  )  [inline]
 

bool Plot::baselineEnabled  )  [inline]
 

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

Implemented in Plot2D, Plot3D, PlotGL, PlotGRASS, PlotPie, PlotPolar, PlotQWT3D, PlotTernary, and PlotVTK.

void Plot::clear  )  [inline]
 

int Plot::ClipOffset  )  [inline]
 

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

Implemented in Plot2D, Plot3D, PlotGL, PlotGRASS, PlotPie, PlotPolar, PlotQWT3D, PlotTernary, and PlotVTK.

void Plot::drawErrorBar QPainter *  p,
int  x,
int  y,
int  xleft,
int  xright,
int  ytop,
int  ybottom
 

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

void Plot::drawStyle QPainter *  p,
Style  s,
int  oldx,
int  oldy,
int  x,
int  y,
int  xmin,
int  xmax,
int  ymin,
int  ymax
 

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

Implemented in Plot2D, Plot3D, PlotGL, PlotGRASS, PlotPie, PlotPolar, PlotQWT3D, PlotTernary, and PlotVTK.

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

Implemented in Plot2D, Plot3D, PlotGL, PlotGRASS, PlotPie, PlotPolar, PlotQWT3D, PlotTernary, and PlotVTK.

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

Implemented in Plot2D, Plot3D, PlotGL, PlotGRASS, PlotPie, PlotPolar, PlotQWT3D, PlotTernary, and PlotVTK.

GraphList* Plot::getGraphList  )  [inline]
 

class Legend* Plot::getLegend  )  [inline]
 

QColor Plot::graphBackground  )  [inline]
 

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

Implemented in Plot2D, Plot3D, PlotGL, PlotGRASS, PlotPie, PlotPolar, PlotQWT3D, PlotTernary, and PlotVTK.

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]
 

void Plot::open QTextStream *  t,
int  version
 

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

Implemented in Plot2D, Plot3D, PlotGL, PlotGRASS, PlotPie, PlotPolar, PlotQWT3D, PlotTernary, and PlotVTK.

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::Ranges  )  [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, PlotGL, PlotGRASS, PlotPie, PlotPolar, PlotQWT3D, PlotTernary, and PlotVTK.

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

void Plot::scaleXDown  )  [inline]
 

void Plot::scaleXUp  )  [inline]
 

void Plot::scaleYDown  )  [inline]
 

void Plot::scaleYUp  )  [inline]
 

void Plot::scaleZDown  )  [inline]
 

void Plot::scaleZUp  )  [inline]
 

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

Implemented in Plot2D, Plot3D, PlotGL, PlotGRASS, PlotPie, PlotPolar, PlotQWT3D, PlotTernary, and PlotVTK.

void Plot::setBackground QColor  c  )  [inline]
 

void Plot::setBaseline double  b  )  [inline]
 

void Plot::setBaselineEnabled bool  e  )  [inline]
 

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

Implemented in Plot2D, Plot3D, PlotGL, PlotGRASS, PlotPie, PlotPolar, PlotQWT3D, PlotTernary, and PlotVTK.

void Plot::setClipOffset int  c  )  [inline]
 

void Plot::setGraphBackground QColor  c  )  [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::setRanges LRange  )  [pure virtual]
 

Implemented in Plot2D, Plot3D, PlotGL, PlotGRASS, PlotPie, PlotPolar, PlotQWT3D, PlotTernary, and PlotVTK.

void Plot::setRegionEnabled bool  e  )  [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::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  )  [inline]
 

void Plot::shiftLeft  )  [inline]
 

void Plot::shiftRight  )  [inline]
 

void Plot::shiftUp  )  [inline]
 

Point Plot::Size  )  [inline]
 

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

build the tic label string according to atlf

Label* Plot::Title  )  [inline]
 

bool Plot::Transparent  )  [inline]
 

PType Plot::Type  )  [inline]
 


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]
 

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]
 


The documentation for this class was generated from the following files:
Generated on Sun Nov 28 22:31:18 2004 for LabPlot by doxygen 1.3.6