Home

Download

Features

Screenshots

Handbook

Browse Source

Authors

SourceForge.net Logo
Hosted by SourceForge.net

OSI Certified


Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages   Search  

CommonGraph Class Reference

An abstract class of which both 3-D and 2-D graphs are a member of. It contains abstract functions which both 3-D and 2-D graphs implement in their own way such as toggling the grid and calculating distance. Interface.ui.h casts all graphs into this base class so that both 3-D and 2-D graphs can be treated alike. More...

#include <commongraph.h>

Inheritance diagram for CommonGraph:

Inheritance graph
[legend]
List of all members.

Public Types

enum  {
  FUNCTIONGRAPH = 0, POLARGRAPH, PARAMETRICGRAPH, STATGRAPH,
  DENSITYPLOT
}

Public Methods

 CommonGraph ()
virtual ~CommonGraph ()
virtual void load (std::ifstream &)
virtual void load_key (const char *key, const char *value)
virtual int execMathFunction (const char *)
virtual bool isTracing () const
virtual void setSnapToGrid (bool)
virtual bool isSnapToGrid () const
virtual int getAngle () const
virtual void setAngle (int)
virtual int getGraphType () const=0
virtual void print (QPrinter *)=0
 Prints graph as is.

virtual void exportAsImage (const QString &, const QString &)=0
 Saves the graph as an image.

virtual void getPixmap (QPixmap &)=0
virtual bool getAxisState () const=0
virtual bool getGridState () const=0
virtual bool getScaleState () const=0
virtual void zoomStat ()
virtual void zoomIn ()=0
virtual void zoomOut ()=0
virtual void zoomStd ()=0
virtual void zoomBox ()
virtual QColor axisColor () const=0
virtual QColor gridColor () const=0
virtual QColor backgroundColor () const=0
virtual QColor scaleColor () const=0
virtual void setAxis (bool)=0
virtual void setGrid (bool)=0
virtual void setScale (bool)=0
virtual void setTrace (bool)=0
virtual void setDrawConnected (bool)
virtual bool isDrawConnected () const
virtual void setAxisColor (const QColor &)=0
virtual void setGridColor (const QColor &)=0
virtual void setBackgroundColor (const QColor &)=0
virtual void setScaleColor (const QColor &)=0
virtual int getXZoomFactor () const=0
virtual int getYZoomFactor () const=0
virtual void setXZoomFactor (int)=0
virtual void setYZoomFactor (int)=0

Static Public Attributes

const int RECTANGULAR = 0
const int POLAR = 1
const enum CommonGraph:: { ... }  graphType

Detailed Description

An abstract class of which both 3-D and 2-D graphs are a member of. It contains abstract functions which both 3-D and 2-D graphs implement in their own way such as toggling the grid and calculating distance. Interface.ui.h casts all graphs into this base class so that both 3-D and 2-D graphs can be treated alike.

Author:
Fungmeista

Definition at line 41 of file commongraph.h.


Member Function Documentation

virtual void CommonGraph::exportAsImage const QString &   ,
const QString &   
[pure virtual]
 

Saves the graph as an image.

Parameters:
filename  Path plus the complete name of the image file to save to. This should include the suffix of the file name if one is desired.
suffix  This specifies what type of image format export the graph as. This should be the standard file suffix of the desired image format (png, jpg, bmp, etc.).

Implemented in ExpressionGraph, StatPlotGraph, and GLBasicGraph.

virtual void CommonGraph::print QPrinter *    [pure virtual]
 

Prints graph as is.

A printer setup dialog will be opened.

Implemented in BasicGraph, ExpressionGraph, StatPlotGraph, and GLBasicGraph.


The documentation for this class was generated from the following files: