QtiPlot  0.9.8.2
Public Types | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
Graph3D Class Reference

3D graph widget. More...

#include <Graph3D.h>

Inheritance diagram for Graph3D:
MdiSubWindow

Public Types

enum  AxisNumericFormat { Default = 0, Decimal = 1, Scientific = 2, Engineering = 3 }
enum  PlotType {
  NoTable = -1, Scatter = 0, Trajectory = 1, Bars = 2,
  Ribbon = 3
}
enum  PointStyle {
  None = 0, Dots = 1, VerticalBars = 2, HairCross = 3,
  Cones = 4
}
- Public Types inherited from MdiSubWindow
enum  CaptionPolicy { Name = 0, Label = 1, Both = 2 }
 Possible window captions. More...
enum  Status { Hidden = -1, Normal = 0, Minimized = 1, Maximized = 2 }

Public Slots

void addData (Table *table, int xCol, int yCol, int zCol, int type=0)
void addFunction (const QString &s, double xl, double xr, double yl, double yr, double zl, double zr, int columns=40, int rows=30)
void addMatrixData (Matrix *m)
void addMatrixData (Matrix *m, double xl, double xr, double yl, double yr, double zl, double zr)
void addParametricSurface (const QString &xFormula, const QString &yFormula, const QString &zFormula, double ul, double ur, double vl, double vr, int columns, int rows, bool uPeriodic, bool vPeriodic)
void addRibbon (Table *table, const QString &xColName, const QString &yColName)
void addRibbon (Table *table, const QString &xColName, const QString &yColName, double xl, double xr, double yl, double yr, double zl, double zr)
void animate (bool on=true)
bool antialiasing ()
bool autoscale ()
void changeDataColumn (Table *table, const QString &colName, int type=0)
void clearData ()
Qwt3D::CoordinateSystem * coordinateSystem ()
Qwt3D::COORDSTYLE coordStyle ()
void copy (Graph3D *g)
void copyImage ()
void customPlotStyle (int style)
void exportImage (const QString &fileName, int quality=100, bool transparent=false, int dpi=0, const QSizeF &customSize=QSizeF(), int unit=FrameWidget::Pixel, double fontsFactor=1.0, int compression=0)
void exportPDF (const QString &fileName)
void exportToFile (const QString &fileName)
void exportVector (const QString &fileName, int textExportMode=0, int sortMode=1, const QSizeF &customSize=QSizeF(), int unit=FrameWidget::Pixel, double fontsFactor=1.0)
void findBestLayout ()
Qwt3D::FLOORSTYLE floorStyle ()
bool hasData ()
void initCoord ()
void initPlot ()
void insertNewData (Table *table, const QString &colName)
bool isAnimated ()
void loadData (Table *table, int xCol, int yCol, int zCol, double xl=0.0, double xr=0.0, double yl=0.0, double yr=0.0, double zl=0.0, double zr=0.0, int axis=-1)
Matrixmatrix ()
QPixmap pixmap (int dpi=0, const QSizeF &customSize=QSizeF(), int unit=FrameWidget::Pixel, double fontsFactor=1.0)
Qwt3D::PLOTSTYLE plotStyle ()
void print ()
void print (QPrinter *printer)
void resetNonEmptyStyle ()
void rotate ()
 Used for the animation: rotates the scene with 1/360 degrees.
void rotationChanged (double, double, double)
void save (const QString &fn, const QString &geometry, bool=false)
void scaleChanged (double, double, double)
void setAntialiasing (bool smooth=true)
void setAutoscale (bool on=true)
 Enables/Disables autoscaling using findBestLayout().
void setOptions (bool legend, int r, int dist)
void setOptions (const QStringList &lst)
void setPlotAssociation (const QString &s)
void setRotation (double xVal, double yVal, double zVal)
void setScale (double xVal, double yVal, double zVal)
void setScale (int axis, double start, double end, int majorTicks, int minorTicks, Qwt3D::SCALETYPE type)
void setShift (double xVal, double yVal, double zVal)
void setStyle (const QStringList &st)
void setZoom (double val)
void shiftChanged (double, double, double)
void showWorksheet ()
Tabletable ()
PlotType tablePlotType ()
void update ()
void updateData (Table *table)
void updateDataXY (Table *table, int xCol, int yCol)
void updateMatrixData (Matrix *m)
double xRotation ()
double xScale ()
double xShift ()
double yRotation ()
double yScale ()
double yShift ()
double zoom ()
void zoomChanged (double)
double zRotation ()
double zScale ()
double zShift ()
User Functions
UserParametricSurfaceparametricSurface ()
UserFunctionuserFunction ()
QString formula ()
Event Handlers
void dropEvent (QDropEvent *)
void dragEnterEvent (QDragEnterEvent *)
bool eventFilter (QObject *object, QEvent *e)
void resizeEvent (QResizeEvent *)
void scaleFonts (double factor)
void setIgnoreFonts (bool ok)
Axes
void setFramed ()
void setBoxed ()
void setNoAxes ()
bool isOrthogonal ()
void setOrthogonal (bool on=true)
QStringList axesLabels ()
void setAxesLabels (const QStringList &lst)
void resetAxesLabels ()
void setXAxisLabel (const QString &)
void setYAxisLabel (const QString &)
void setZAxisLabel (const QString &)
QFont xAxisLabelFont ()
QFont yAxisLabelFont ()
QFont zAxisLabelFont ()
void setXAxisLabelFont (const QFont &fnt)
void setYAxisLabelFont (const QFont &fnt)
void setZAxisLabelFont (const QFont &fnt)
void setXAxisLabelFont (const QStringList &lst)
void setYAxisLabelFont (const QStringList &lst)
void setZAxisLabelFont (const QStringList &lst)
QFont numbersFont ()
void setNumbersFont (const QFont &font)
double xStart ()
double xStop ()
double yStart ()
double yStop ()
double zStart ()
double zStop ()
int axisType (int axis)
void setAxisType (int axis, int type)
int axisNumericFormat (int axis)
int axisNumericPrecision (int axis)
void setAxisNumericFormat (int axis, int format, int precision)
void setScales (double xl, double xr, double yl, double yr, double zl, double zr, int axis=-1)
void updateScales (double xl, double xr, double yl, double yr, double zl, double zr, int xcol, int ycol)
void updateScalesFromMatrix (double xl, double xr, double yl, double yr, double zl, double zr)
QStringList scaleTicks ()
void setTicks (const QStringList &options)
void setXAxisTickLength (double majorLength, double minorLength)
void setYAxisTickLength (double majorLength, double minorLength)
void setZAxisTickLength (double majorLength, double minorLength)
void setAxisTickLength (int axis, double majorLength, double minorLength)
void setLabelsDistance (int val)
int labelsDistance ()
QStringList axisTickLengths ()
void setTickLengths (const QStringList &lst)
Mesh
void setPolygonStyle ()
void setHiddenLineStyle ()
void setWireframeStyle ()
void setFilledMeshStyle ()
void setDotStyle ()
void setBarStyle ()
void setFloorData ()
void setFloorIsolines ()
void setEmptyFloor ()
void setMeshLineWidth (double lw)
double meshLineWidth ()
Grid
int grids ()
void setGrid (int s, bool b)
void setGrid (int grids)
void setLeftGrid (bool b=true)
void setRightGrid (bool b=true)
void setCeilGrid (bool b=true)
void setFloorGrid (bool b=true)
void setFrontGrid (bool b=true)
void setBackGrid (bool b=true)
Colors
void setDataColors (const QColor &cMin, const QColor &cMax)
void setDataColorMap (const LinearColorMap &colorMap)
void setDataColorMap (const QString &fileName)
void setDataColorMap (const ColorVector &colors)
void setDataColorMap (const ColorVector &colors, const LinearColorMap &colorMap)
void changeTransparency (double t)
void setTransparency (double t)
double transparency ()
QColor meshColor ()
QColor axesColor ()
QColor labelColor ()
QColor numColor ()
QColor bgColor ()
QColor gridColor ()
QString colorMapFile ()
LinearColorMap colorMap ()
LinearColorMapcolorMapPointer ()
static bool openColorMapFile (ColorVector &cv, QString fname)
void setMeshColor (const QColor &)
void setAxesColor (const QColor &)
void setNumbersColor (const QColor &)
void setLabelsColor (const QColor &)
void setBackgroundColor (const QColor &)
void setGridColor (const QColor &)
Title
QFont titleFont ()
void setTitleFont (const QFont &font)
QString plotTitle ()
QColor titleColor ()
void setTitle (const QStringList &lst)
void setTitle (const QString &s, const QColor &color=QColor(Qt::black), const QFont &font=QFont())
Resolution
void setResolution (int r)
int resolution ()
Legend
void showColorLegend (bool show=true)
bool isLegendOn ()
Bars
double barsRadius ()
void setBarRadius (double rad)
bool barLines ()
void setBarLines (bool lines=true)
bool filledBars ()
void setFilledBars (bool filled=true)
Scatter Plots
double pointsSize ()
bool smoothPoints ()
void setDotOptions (double size, bool smooth)
bool smoothCrossHair ()
bool boxedCrossHair ()
double crossHairRadius ()
double crossHairLinewidth ()
void setCrossOptions (double rad, double linewidth, bool smooth, bool boxed)
void setCrossStyle ()
double coneRadius ()
int coneQuality ()
void setConeOptions (double rad, int quality)
void setConeStyle ()
PointStyle pointType ()
- Public Slots inherited from MdiSubWindow
void notifyChanges ()
 Notifies the main application that the window has been modified.
virtual void print ()
virtual void print (QPrinter *)

Signals

void modified ()
void showOptionsDialog ()
- Signals inherited from MdiSubWindow
void closedWindow (MdiSubWindow *)
 Emitted when the window was closed.
void hiddenWindow (MdiSubWindow *)
 Emitted when the window was hidden.
void modifiedWindow (MdiSubWindow *)
void resizedWindow (MdiSubWindow *)
void showContextMenu ()
 Show the context menu.
void statusChanged (MdiSubWindow *)
 Emitted when the window status changed.

Public Member Functions

 Graph3D (const QString &label, ApplicationWindow *parent, const char *name=0, Qt::WFlags f=0)
void printCropmarks (bool on)
bool printCropmarksEnabled ()
bool scaleOnPrint ()
void setScaleOnPrint (bool on)
Qwt3D::Plot3D * surface ()
 ~Graph3D ()
- Public Member Functions inherited from MdiSubWindow
ApplicationWindowapplicationWindow ()
 Returns a pointer to the parent application.
void askOnCloseEvent (bool ask)
 Toggle the "ask on close" flag.
QString aspect ()
 Return the window status as a string.
QString birthDate ()
 Return the creation date.
CaptionPolicy captionPolicy ()
 Return the caption policy.
void closeEvent (QCloseEvent *)
 Close event handler.
bool eventFilter (QObject *object, QEvent *e)
 Filters other object's events (customizes title bar's context menu)
virtual void exportPDF (const QString &)
Folderfolder ()
 Returns the pointer to the parent folder of the window.
 MdiSubWindow (const QString &label=QString(), ApplicationWindow *app=0, const QString &name=QString(), Qt::WFlags f=0)
 Constructor.
QSize minRestoreSize ()
 Returns the size the window had before a change state event to minimized.
QString name ()
 Return the window name.
void resizeEvent (QResizeEvent *)
virtual void restore (const QStringList &)
 Not implemented yet.
void restoreWindow ()
 Show window making sure that layers in MultiLayer windows are not resized.
virtual void save (const QString &, const QString &, bool=false)
void setBirthDate (const QString &s)
 Set the creation date.
void setCaptionPolicy (CaptionPolicy policy)
 Set the caption policy.
void setFolder (Folder *f)
 Initializes the pointer to the parent folder of the window.
virtual void setHidden ()
 Notifies that a window was hidden by a direct user action.
void setMaximized ()
void setMinimized ()
void setName (const QString &s)
 Set the window name.
void setNormal ()
void setStatus (Status s)
 Set the window status flag (hidden, normal, minimized or maximized)
void setWindowLabel (const QString &s)
 Set the window label.
virtual QString sizeToString ()
 Size of the widget as a string.
Status status ()
 Return the window status flag (hidden, normal, minimized or maximized)
QString windowLabel ()
 Return the window label.

Static Public Member Functions

static Graph3Drestore (ApplicationWindow *app, const QStringList &lst, int fileVersion)
- Static Public Member Functions inherited from MdiSubWindow
static QString parseAsciiFile (const QString &fname, const QString &commentString, int endLine, int ignoreFirstLines, int maxRows, int &rows)
 Static function used as a workaround for ASCII files having end line char != '
'.

Private Member Functions

Curve * addCurve ()
void addHiddenConstantCurve (double xl, double xr, double yl, double yr, double zl, double zr)
void changeScales (double xl, double xr, double yl, double yr, double zl, double zr)
void removeCurve ()
void resetAxesType ()

Private Attributes

int animation_redraw_wait
 Wait this many msecs before redraw 3D plot (used for animations)
QColor axesCol
QColor bgCol
Qwt3D::StandardColor * col_
int conesQuality
double conesRad
bool crossHairBoxed
double crossHairLineWidth
double crossHairRad
bool crossHairSmooth
Curve * d_active_curve
double d_alpha
 Transparency.
bool d_autoscale
LinearColorMap d_color_map
QString d_color_map_file
 File name of the color map used for the data (if any)
Curve * d_const_curve
ConstFunctiond_const_func
UserFunctiond_func
Matrixd_matrix
double d_point_size
bool d_print_cropmarks
bool d_scale_on_print
bool d_smooth_points
 Draw 3D points with smoothed angles.
UserParametricSurfaced_surface
Tabled_table
PlotType d_table_plot_type
QTimer * d_timer
QColor gridCol
bool ignoreFonts
QStringList labels
QColor labelsCol
int labelsDist
int legendMajorTicks
bool legendOn
QColor meshCol
QColor numCol
QString plotAssociation
PointStyle pointStyle
QVector< int > scaleType
Qwt3D::Plot3D * sp
Qwt3D::PLOTSTYLE style_
QString title
QColor titleCol
QFont titleFnt
Bar options
double d_bars_rad
bool d_filled_bars
bool d_bar_lines

Additional Inherited Members

- Protected Member Functions inherited from MdiSubWindow
virtual void changeEvent (QEvent *event)
 Catches status changes.

Detailed Description

3D graph widget.

This provides 3D plotting using Qwt3D.

Future Plans

If MultiLayer is extended to accept any QWidget, Graph3D wouldn't have to inherit from MdiSubWindow any more. It could also make sense to unify the interface with other plot types; see documentation of Graph. Big problem here: export to vector formats. Qwt3D's export filters write directly to a file, so they can't be combined with output generated via QPrinter.

Member Enumeration Documentation

Enumerator:
Default 
Decimal 
Scientific 
Engineering 
Enumerator:
NoTable 
Scatter 
Trajectory 
Bars 
Ribbon 
Enumerator:
None 
Dots 
VerticalBars 
HairCross 
Cones 

Constructor & Destructor Documentation

Graph3D::Graph3D ( const QString &  label,
ApplicationWindow parent,
const char *  name = 0,
Qt::WFlags  f = 0 
)

References initPlot().

Graph3D::~Graph3D ( )

References removeCurve(), and sp.

Member Function Documentation

Curve * Graph3D::addCurve ( )
private
void Graph3D::addData ( Table table,
int  xCol,
int  yCol,
int  zCol,
int  type = 0 
)
slot
void Graph3D::addFunction ( const QString &  s,
double  xl,
double  xr,
double  yl,
double  yr,
double  zl,
double  zr,
int  columns = 40,
int  rows = 30 
)
slot
void Graph3D::addHiddenConstantCurve ( double  xl,
double  xr,
double  yl,
double  yr,
double  zl,
double  zr 
)
private

References d_const_curve, d_const_func, and sp.

Referenced by changeScales().

void Graph3D::addMatrixData ( Matrix m)
slot
void Graph3D::addMatrixData ( Matrix m,
double  xl,
double  xr,
double  yl,
double  yr,
double  zl,
double  zr 
)
slot
void Graph3D::addParametricSurface ( const QString &  xFormula,
const QString &  yFormula,
const QString &  zFormula,
double  ul,
double  ur,
double  vl,
double  vr,
int  columns,
int  rows,
bool  uPeriodic,
bool  vPeriodic 
)
slot
void Graph3D::addRibbon ( Table table,
const QString &  xColName,
const QString &  yColName 
)
slot
void Graph3D::addRibbon ( Table table,
const QString &  xColName,
const QString &  yColName,
double  xl,
double  xr,
double  yl,
double  yr,
double  zl,
double  zr 
)
slot
void Graph3D::animate ( bool  on = true)
slot

Turns 3D animation on or off

References animation_redraw_wait, and d_timer.

Referenced by copy(), and ApplicationWindow::toggle3DAnimation().

bool Graph3D::antialiasing ( )
inlineslot

Referenced by copy().

bool Graph3D::autoscale ( )
inlineslot
QColor Graph3D::axesColor ( )
inlineslot
QStringList Graph3D::axesLabels ( )
inlineslot

Referenced by copy(), and Plot3DDialog::setPlot().

int Graph3D::axisNumericFormat ( int  axis)
slot

References sp.

Referenced by save(), and Plot3DDialog::viewAxisOptions().

int Graph3D::axisNumericPrecision ( int  axis)
slot

References sp.

Referenced by save(), and Plot3DDialog::viewAxisOptions().

QStringList Graph3D::axisTickLengths ( )
slot
int Graph3D::axisType ( int  axis)
inlineslot
bool Graph3D::barLines ( )
inlineslot

Referenced by copy(), and Plot3DDialog::showBarsTab().

double Graph3D::barsRadius ( )
slot

References d_active_curve, and d_bars_rad.

Referenced by copy(), and Plot3DDialog::showBarsTab().

QColor Graph3D::bgColor ( )
inlineslot
bool Graph3D::boxedCrossHair ( )
inlineslot

Referenced by copy(), and Plot3DDialog::setPlot().

void Graph3D::changeDataColumn ( Table table,
const QString &  colName,
int  type = 0 
)
slot
void Graph3D::changeScales ( double  xl,
double  xr,
double  yl,
double  yr,
double  zl,
double  zr 
)
private
void Graph3D::changeTransparency ( double  t)
slot
void Graph3D::clearData ( )
slot
LinearColorMap Graph3D::colorMap ( )
inlineslot
QString Graph3D::colorMapFile ( )
inlineslot

Referenced by copy(), and Plot3DDialog::setPlot().

LinearColorMap* Graph3D::colorMapPointer ( )
inlineslot
int Graph3D::coneQuality ( )
inlineslot

Referenced by copy(), and Plot3DDialog::setPlot().

double Graph3D::coneRadius ( )
inlineslot

Referenced by copy(), and Plot3DDialog::setPlot().

Qwt3D::CoordinateSystem* Graph3D::coordinateSystem ( )
inlineslot
Qwt3D::COORDSTYLE Graph3D::coordStyle ( )
slot
void Graph3D::copy ( Graph3D g)
slot

References addFunction(), addMatrixData(), addParametricSurface(), addRibbon(), animate(), antialiasing(), axesColor(), axesLabels(), axisTickLengths(), axisType(), barLines(), barsRadius(), bgColor(), boxedCrossHair(), Table::colIndex(), colorMap(), colorMapFile(), UserFunction::columns(), UserParametricSurface::columns(), coneQuality(), coneRadius(), Cones, conesQuality, conesRad, coordStyle(), crossHairBoxed, crossHairLinewidth(), crossHairLineWidth, crossHairRad, crossHairRadius(), crossHairSmooth, customPlotStyle(), d_active_curve, d_bar_lines, d_bars_rad, d_filled_bars, d_point_size, d_print_cropmarks, d_scale_on_print, d_smooth_points, Dots, filledBars(), floorStyle(), formula(), UserFunction::function(), grids(), HairCross, isAnimated(), isLegendOn(), isOrthogonal(), labelColor(), labelsDistance(), loadData(), matrix(), meshColor(), meshLineWidth(), None, numbersFont(), numColor(), parametricSurface(), plotStyle(), plotTitle(), pointsSize(), pointStyle, pointType(), printCropmarksEnabled(), resetAxesType(), resolution(), UserFunction::rows(), UserParametricSurface::rows(), scaleOnPrint(), scaleTicks(), scaleType, setAxesColor(), setAxesLabels(), setBackgroundColor(), setBarRadius(), setConeOptions(), setCrossOptions(), setDataColorMap(), setGrid(), setLabelsColor(), setMeshColor(), setMeshLineWidth(), setNumbersColor(), setNumbersFont(), setOptions(), setOrthogonal(), setRotation(), setScale(), setShift(), setTickLengths(), setTicks(), setTitle(), setTransparency(), setXAxisLabelFont(), setYAxisLabelFont(), setZAxisLabelFont(), setZoom(), smoothCrossHair(), smoothPoints(), sp, style_, surface(), table(), titleColor(), titleFont(), transparency(), UserParametricSurface::uEnd(), UserParametricSurface::uPeriodic(), userFunction(), UserParametricSurface::uStart(), UserParametricSurface::vEnd(), VerticalBars, UserParametricSurface::vPeriodic(), UserParametricSurface::vStart(), xAxisLabelFont(), UserParametricSurface::xFormula(), xRotation(), xScale(), xShift(), xStart(), xStop(), yAxisLabelFont(), UserParametricSurface::yFormula(), yRotation(), yScale(), yShift(), yStart(), yStop(), zAxisLabelFont(), UserParametricSurface::zFormula(), zoom(), zRotation(), zScale(), zShift(), zStart(), and zStop().

void Graph3D::copyImage ( )
slot

References sp.

double Graph3D::crossHairLinewidth ( )
inlineslot

Referenced by copy(), and Plot3DDialog::setPlot().

double Graph3D::crossHairRadius ( )
inlineslot

Referenced by copy(), and Plot3DDialog::setPlot().

void Graph3D::customPlotStyle ( int  style)
slot
void Graph3D::dragEnterEvent ( QDragEnterEvent *  e)
slot
void Graph3D::dropEvent ( QDropEvent *  event)
slot
bool Graph3D::eventFilter ( QObject *  object,
QEvent *  e 
)
slot

References showOptionsDialog(), sp, and TRUE.

void Graph3D::exportImage ( const QString &  fileName,
int  quality = 100,
bool  transparent = false,
int  dpi = 0,
const QSizeF &  customSize = QSizeF(),
int  unit = FrameWidget::Pixel,
double  fontsFactor = 1.0,
int  compression = 0 
)
slot
void Graph3D::exportPDF ( const QString &  fileName)
slot

References exportVector().

void Graph3D::exportToFile ( const QString &  fileName)
slot

References exportImage(), and exportVector().

void Graph3D::exportVector ( const QString &  fileName,
int  textExportMode = 0,
int  sortMode = 1,
const QSizeF &  customSize = QSizeF(),
int  unit = FrameWidget::Pixel,
double  fontsFactor = 1.0 
)
slot
bool Graph3D::filledBars ( )
inlineslot

Referenced by copy(), and Plot3DDialog::showBarsTab().

void Graph3D::findBestLayout ( )
slot
Qwt3D::FLOORSTYLE Graph3D::floorStyle ( )
slot
QString Graph3D::formula ( )
slot
QColor Graph3D::gridColor ( )
inlineslot

Referenced by setGridColor().

int Graph3D::grids ( )
slot
bool Graph3D::hasData ( )
inlineslot
void Graph3D::initCoord ( )
slot

References labels, and sp.

Referenced by initPlot().

void Graph3D::initPlot ( )
slot

References animation_redraw_wait, MdiSubWindow::applicationWindow(), col_, conesQuality, conesRad, crossHairBoxed, crossHairLineWidth, crossHairRad, crossHairSmooth, ApplicationWindow::d_3D_autoscale, ApplicationWindow::d_3D_axes_color, ApplicationWindow::d_3D_axes_font, ApplicationWindow::d_3D_background_color, ApplicationWindow::d_3D_color_map, ApplicationWindow::d_3D_grid_color, ApplicationWindow::d_3D_labels_color, ApplicationWindow::d_3D_legend, ApplicationWindow::d_3D_major_grids, ApplicationWindow::d_3D_major_style, ApplicationWindow::d_3D_major_width, ApplicationWindow::d_3D_mesh_color, ApplicationWindow::d_3D_minor_grid_color, ApplicationWindow::d_3D_minor_grids, ApplicationWindow::d_3D_minor_style, ApplicationWindow::d_3D_minor_width, ApplicationWindow::d_3D_numbers_color, ApplicationWindow::d_3D_numbers_font, ApplicationWindow::d_3D_orthogonal, ApplicationWindow::d_3D_projection, ApplicationWindow::d_3D_smooth_mesh, ApplicationWindow::d_3D_title_font, d_active_curve, d_alpha, d_autoscale, d_bar_lines, d_bars_rad, d_color_map, d_color_map_file, d_const_curve, d_const_func, d_filled_bars, d_func, d_matrix, d_point_size, d_print_cropmarks, ApplicationWindow::d_print_cropmarks, d_scale_on_print, ApplicationWindow::d_scale_plots_on_print, d_smooth_points, d_surface, d_table, d_table_plot_type, d_timer, ignoreFonts, initCoord(), labelsDist, legendMajorTicks, legendOn, None, NoTable, plotAssociation, pointStyle, rotate(), rotationChanged(), scaleChanged(), scaleType, setAxesColor(), setBackgroundColor(), setLabelsColor(), setMeshColor(), setNumbersColor(), setNumbersFont(), shiftChanged(), sp, style_, title, titleCol, titleFnt, and zoomChanged().

Referenced by Graph3D().

void Graph3D::insertNewData ( Table table,
const QString &  colName 
)
slot
bool Graph3D::isAnimated ( )
inlineslot
bool Graph3D::isLegendOn ( )
inlineslot

Referenced by copy(), and Plot3DDialog::setPlot().

bool Graph3D::isOrthogonal ( )
inlineslot
QColor Graph3D::labelColor ( )
inlineslot
int Graph3D::labelsDistance ( )
inlineslot

Referenced by copy(), and Plot3DDialog::setPlot().

void Graph3D::loadData ( Table table,
int  xCol,
int  yCol,
int  zCol,
double  xl = 0.0,
double  xr = 0.0,
double  yl = 0.0,
double  yr = 0.0,
double  zl = 0.0,
double  zr = 0.0,
int  axis = -1 
)
slot
Matrix* Graph3D::matrix ( )
inlineslot
QColor Graph3D::meshColor ( )
inlineslot
double Graph3D::meshLineWidth ( )
inlineslot

Referenced by copy(), save(), and Plot3DDialog::setPlot().

void Graph3D::modified ( )
signal
QFont Graph3D::numbersFont ( )
slot

References sp.

Referenced by addCurve(), copy(), and Plot3DDialog::setPlot().

QColor Graph3D::numColor ( )
inlineslot
bool Graph3D::openColorMapFile ( ColorVector &  cv,
QString  fname 
)
staticslot
UserParametricSurface* Graph3D::parametricSurface ( )
inlineslot
QPixmap Graph3D::pixmap ( int  dpi = 0,
const QSizeF &  customSize = QSizeF(),
int  unit = FrameWidget::Pixel,
double  fontsFactor = 1.0 
)
slot

References Graph::customPrintSize(), scaleFonts(), and sp.

Referenced by exportImage().

Qwt3D::PLOTSTYLE Graph3D::plotStyle ( )
slot
QString Graph3D::plotTitle ( )
inlineslot

Referenced by copy(), and Plot3DDialog::setPlot().

double Graph3D::pointsSize ( )
inlineslot

Referenced by copy(), and Plot3DDialog::setPlot().

PointStyle Graph3D::pointType ( )
inlineslot
void Graph3D::print ( )
slot
void Graph3D::print ( QPrinter *  printer)
slot
void Graph3D::printCropmarks ( bool  on)
inline
bool Graph3D::printCropmarksEnabled ( )
inline

Referenced by copy(), and Plot3DDialog::setPlot().

void Graph3D::removeCurve ( )
private
void Graph3D::resetAxesLabels ( )
slot

References d_matrix, labels, plotAssociation, and sp.

Referenced by changeDataColumn(), and update().

void Graph3D::resetAxesType ( )
private

References scaleType, and sp.

Referenced by copy(), and restore().

void Graph3D::resetNonEmptyStyle ( )
slot
void Graph3D::resizeEvent ( QResizeEvent *  e)
slot
int Graph3D::resolution ( )
inlineslot

Referenced by copy(), save(), and Plot3DDialog::setPlot().

Graph3D * Graph3D::restore ( ApplicationWindow app,
const QStringList &  lst,
int  fileVersion 
)
static
void Graph3D::rotate ( )
slot

Used for the animation: rotates the scene with 1/360 degrees.

References sp.

Referenced by initPlot().

void Graph3D::rotationChanged ( double  ,
double  ,
double   
)
slot

References modified().

Referenced by initPlot().

void Graph3D::save ( const QString &  fn,
const QString &  geometry,
bool  = false 
)
slot
void Graph3D::scaleChanged ( double  ,
double  ,
double   
)
slot

References modified().

Referenced by initPlot().

void Graph3D::scaleFonts ( double  factor)
slot
bool Graph3D::scaleOnPrint ( )
inline

Referenced by copy(), and Plot3DDialog::setPlot().

QStringList Graph3D::scaleTicks ( )
slot

References sp.

Referenced by copy(), and save().

void Graph3D::setAntialiasing ( bool  smooth = true)
slot
void Graph3D::setAutoscale ( bool  on = true)
inlineslot

Enables/Disables autoscaling using findBestLayout().

Referenced by ApplicationWindow::setPlot3DOptions().

void Graph3D::setAxesColor ( const QColor &  axesColor)
slot

References axesCol, axesColor(), and sp.

Referenced by copy(), initPlot(), restore(), and Plot3DDialog::updatePlot().

void Graph3D::setAxesLabels ( const QStringList &  lst)
slot

References labels, and sp.

Referenced by copy(), and restore().

void Graph3D::setAxisNumericFormat ( int  axis,
int  format,
int  precision 
)
slot

References modified(), and sp.

Referenced by restore(), and Plot3DDialog::updatePlot().

void Graph3D::setAxisTickLength ( int  axis,
double  majorLength,
double  minorLength 
)
slot

References sp.

Referenced by findBestLayout().

void Graph3D::setAxisType ( int  axis,
int  type 
)
slot

References scaleType.

Referenced by restore().

void Graph3D::setBackGrid ( bool  b = true)
slot
void Graph3D::setBackgroundColor ( const QColor &  bgColor)
slot

References bgCol, bgColor(), and sp.

Referenced by copy(), initPlot(), restore(), and Plot3DDialog::updatePlot().

void Graph3D::setBarLines ( bool  lines = true)
slot

References d_bar_lines.

Referenced by Plot3DDialog::updatePlot().

void Graph3D::setBarRadius ( double  rad)
slot

References d_bars_rad.

Referenced by copy(), and Plot3DDialog::updatePlot().

void Graph3D::setBarStyle ( )
slot
void Graph3D::setBoxed ( )
slot

References sp.

Referenced by ApplicationWindow::setBoxed3DPlot().

void Graph3D::setCeilGrid ( bool  b = true)
slot
void Graph3D::setConeOptions ( double  rad,
int  quality 
)
slot

References conesQuality, and conesRad.

Referenced by copy(), and Plot3DDialog::updatePlot().

void Graph3D::setConeStyle ( )
slot
void Graph3D::setCrossOptions ( double  rad,
double  linewidth,
bool  smooth,
bool  boxed 
)
slot
void Graph3D::setCrossStyle ( )
slot
void Graph3D::setDataColorMap ( const LinearColorMap colorMap)
slot
void Graph3D::setDataColorMap ( const QString &  fileName)
slot
void Graph3D::setDataColorMap ( const ColorVector &  colors)
slot

References col_, d_active_curve, legendOn, and sp.

void Graph3D::setDataColorMap ( const ColorVector &  colors,
const LinearColorMap colorMap 
)
slot
void Graph3D::setDataColors ( const QColor &  cMin,
const QColor &  cMax 
)
inlineslot

Referenced by restore().

void Graph3D::setDotOptions ( double  size,
bool  smooth 
)
slot

References d_point_size, and d_smooth_points.

Referenced by Plot3DDialog::updatePlot().

void Graph3D::setDotStyle ( )
slot
void Graph3D::setEmptyFloor ( )
slot
void Graph3D::setFilledBars ( bool  filled = true)
slot

References d_filled_bars.

Referenced by Plot3DDialog::updatePlot().

void Graph3D::setFilledMeshStyle ( )
slot
void Graph3D::setFloorData ( )
slot
void Graph3D::setFloorGrid ( bool  b = true)
slot
void Graph3D::setFloorIsolines ( )
slot

References d_active_curve, and sp.

Referenced by ApplicationWindow::setFloorIso3DPlot().

void Graph3D::setFramed ( )
slot

References sp.

Referenced by ApplicationWindow::setFramed3DPlot().

void Graph3D::setFrontGrid ( bool  b = true)
slot
void Graph3D::setGrid ( int  s,
bool  b 
)
slot
void Graph3D::setGrid ( int  grids)
slot

References sp.

void Graph3D::setGridColor ( const QColor &  gridColor)
slot

References gridCol, gridColor(), and sp.

Referenced by restore().

void Graph3D::setHiddenLineStyle ( )
slot
void Graph3D::setIgnoreFonts ( bool  ok)
inlineslot

Referenced by restore().

void Graph3D::setLabelsColor ( const QColor &  labelColor)
slot
void Graph3D::setLabelsDistance ( int  val)
slot

References labelsDist, modified(), and sp.

Referenced by setOptions(), and Plot3DDialog::updatePlot().

void Graph3D::setLeftGrid ( bool  b = true)
slot
void Graph3D::setMeshColor ( const QColor &  meshColor)
slot

References meshCol, meshColor(), and sp.

Referenced by copy(), initPlot(), restore(), and Plot3DDialog::updatePlot().

void Graph3D::setMeshLineWidth ( double  lw)
slot

References d_active_curve, and sp.

Referenced by copy(), restore(), and Plot3DDialog::updatePlot().

void Graph3D::setNoAxes ( )
slot

References sp.

Referenced by ApplicationWindow::removeAxes3DPlot().

void Graph3D::setNumbersColor ( const QColor &  numColor)
slot
void Graph3D::setNumbersFont ( const QFont &  font)
slot

References d_active_curve, and sp.

Referenced by copy(), initPlot(), restore(), and Plot3DDialog::updatePlot().

void Graph3D::setOptions ( bool  legend,
int  r,
int  dist 
)
slot

References d_active_curve, legendOn, setLabelsDistance(), and sp.

Referenced by copy(), and restore().

void Graph3D::setOptions ( const QStringList &  lst)
slot
void Graph3D::setOrthogonal ( bool  on = true)
inlineslot
void Graph3D::setPlotAssociation ( const QString &  s)
inlineslot
void Graph3D::setPolygonStyle ( )
slot
void Graph3D::setResolution ( int  r)
slot

References d_active_curve, modified(), and sp.

Referenced by Plot3DDialog::updatePlot().

void Graph3D::setRightGrid ( bool  b = true)
slot
void Graph3D::setRotation ( double  xVal,
double  yVal,
double  zVal 
)
slot
void Graph3D::setScale ( double  xVal,
double  yVal,
double  zVal 
)
slot
void Graph3D::setScale ( int  axis,
double  start,
double  end,
int  majorTicks,
int  minorTicks,
Qwt3D::SCALETYPE  type 
)
slot
void Graph3D::setScaleOnPrint ( bool  on)
inline
void Graph3D::setScales ( double  xl,
double  xr,
double  yl,
double  yr,
double  zl,
double  zr,
int  axis = -1 
)
slot
void Graph3D::setShift ( double  xVal,
double  yVal,
double  zVal 
)
slot

References sp.

Referenced by copy(), and restore().

void Graph3D::setStyle ( const QStringList &  st)
slot
void Graph3D::setTickLengths ( const QStringList &  lst)
slot

References sp.

Referenced by copy(), restore(), and setScales().

void Graph3D::setTicks ( const QStringList &  options)
slot

References min, and sp.

Referenced by copy(), and restore().

void Graph3D::setTitle ( const QStringList &  lst)
slot
void Graph3D::setTitle ( const QString &  s,
const QColor &  color = QColor(Qt::black),
const QFont &  font = QFont() 
)
slot

References sp, title, titleCol, and titleFnt.

void Graph3D::setTitleFont ( const QFont &  font)
slot

References sp, and titleFnt.

void Graph3D::setTransparency ( double  t)
slot

References d_active_curve, and d_alpha.

Referenced by copy(), and restore().

void Graph3D::setWireframeStyle ( )
slot
void Graph3D::setXAxisLabel ( const QString &  label)
slot

References labels, modified(), and sp.

Referenced by Plot3DDialog::updatePlot().

void Graph3D::setXAxisLabelFont ( const QFont &  fnt)
slot

References sp.

Referenced by copy(), restore(), scaleFonts(), and Plot3DDialog::updatePlot().

void Graph3D::setXAxisLabelFont ( const QStringList &  lst)
slot

References sp.

void Graph3D::setXAxisTickLength ( double  majorLength,
double  minorLength 
)
slot

References sp.

Referenced by Plot3DDialog::updatePlot().

void Graph3D::setYAxisLabel ( const QString &  label)
slot

References labels, modified(), and sp.

Referenced by Plot3DDialog::updatePlot().

void Graph3D::setYAxisLabelFont ( const QFont &  fnt)
slot

References sp.

Referenced by copy(), restore(), scaleFonts(), and Plot3DDialog::updatePlot().

void Graph3D::setYAxisLabelFont ( const QStringList &  lst)
slot

References sp.

void Graph3D::setYAxisTickLength ( double  majorLength,
double  minorLength 
)
slot

References sp.

Referenced by Plot3DDialog::updatePlot().

void Graph3D::setZAxisLabel ( const QString &  label)
slot

References labels, modified(), and sp.

Referenced by Plot3DDialog::updatePlot().

void Graph3D::setZAxisLabelFont ( const QFont &  fnt)
slot

References sp.

Referenced by copy(), restore(), scaleFonts(), and Plot3DDialog::updatePlot().

void Graph3D::setZAxisLabelFont ( const QStringList &  lst)
slot

References sp.

void Graph3D::setZAxisTickLength ( double  majorLength,
double  minorLength 
)
slot

References sp.

Referenced by Plot3DDialog::updatePlot().

void Graph3D::setZoom ( double  val)
slot
void Graph3D::shiftChanged ( double  ,
double  ,
double   
)
slot

References modified().

Referenced by initPlot().

void Graph3D::showColorLegend ( bool  show = true)
slot

References legendOn, modified(), and sp.

Referenced by Plot3DDialog::updatePlot().

void Graph3D::showOptionsDialog ( )
signal

Referenced by eventFilter().

void Graph3D::showWorksheet ( )
slot

References d_matrix, and d_table.

Referenced by Plot3DDialog::worksheet().

bool Graph3D::smoothCrossHair ( )
inlineslot

Referenced by copy(), and Plot3DDialog::setPlot().

bool Graph3D::smoothPoints ( )
inlineslot

Referenced by copy(), and Plot3DDialog::setPlot().

Qwt3D::Plot3D* Graph3D::surface ( )
inline
Table* Graph3D::table ( )
inlineslot
PlotType Graph3D::tablePlotType ( )
inlineslot
QColor Graph3D::titleColor ( )
inlineslot

Referenced by copy(), and Plot3DDialog::setPlot().

QFont Graph3D::titleFont ( )
inlineslot

Referenced by copy(), and Plot3DDialog::setPlot().

double Graph3D::transparency ( )
inlineslot

Referenced by copy(), and Plot3DDialog::setPlot().

void Graph3D::update ( )
slot
void Graph3D::updateData ( Table table)
slot
void Graph3D::updateDataXY ( Table table,
int  xCol,
int  yCol 
)
slot
void Graph3D::updateMatrixData ( Matrix m)
slot
void Graph3D::updateScales ( double  xl,
double  xr,
double  yl,
double  yr,
double  zl,
double  zr,
int  xcol,
int  ycol 
)
slot
void Graph3D::updateScalesFromMatrix ( double  xl,
double  xr,
double  yl,
double  yr,
double  zl,
double  zr 
)
slot
UserFunction* Graph3D::userFunction ( )
inlineslot
QFont Graph3D::xAxisLabelFont ( )
slot

References sp.

Referenced by copy(), scaleFonts(), and Plot3DDialog::setPlot().

double Graph3D::xRotation ( )
inlineslot

Referenced by copy(), and Plot3DDialog::setPlot().

double Graph3D::xScale ( )
inlineslot
double Graph3D::xShift ( )
inlineslot

Referenced by copy().

double Graph3D::xStart ( )
slot
double Graph3D::xStop ( )
slot
QFont Graph3D::yAxisLabelFont ( )
slot

References sp.

Referenced by copy(), scaleFonts(), and Plot3DDialog::setPlot().

double Graph3D::yRotation ( )
inlineslot

Referenced by copy(), and Plot3DDialog::setPlot().

double Graph3D::yScale ( )
inlineslot
double Graph3D::yShift ( )
inlineslot

Referenced by copy().

double Graph3D::yStart ( )
slot
double Graph3D::yStop ( )
slot
QFont Graph3D::zAxisLabelFont ( )
slot

References sp.

Referenced by copy(), scaleFonts(), and Plot3DDialog::setPlot().

double Graph3D::zoom ( )
inlineslot

Referenced by copy(), and Plot3DDialog::setPlot().

void Graph3D::zoomChanged ( double  )
slot

References modified().

Referenced by initPlot().

double Graph3D::zRotation ( )
inlineslot

Referenced by copy(), and Plot3DDialog::setPlot().

double Graph3D::zScale ( )
inlineslot
double Graph3D::zShift ( )
inlineslot

Referenced by copy().

double Graph3D::zStart ( )
slot
double Graph3D::zStop ( )
slot

Member Data Documentation

int Graph3D::animation_redraw_wait
private

Wait this many msecs before redraw 3D plot (used for animations)

Referenced by animate(), and initPlot().

QColor Graph3D::axesCol
private

Referenced by save(), and setAxesColor().

QColor Graph3D::bgCol
private

Referenced by save(), and setBackgroundColor().

Qwt3D::StandardColor* Graph3D::col_
private

Referenced by initPlot(), and setDataColorMap().

int Graph3D::conesQuality
private
double Graph3D::conesRad
private
bool Graph3D::crossHairBoxed
private
double Graph3D::crossHairLineWidth
private
double Graph3D::crossHairRad
private
bool Graph3D::crossHairSmooth
private
Curve* Graph3D::d_active_curve
private
double Graph3D::d_alpha
private
bool Graph3D::d_autoscale
private
bool Graph3D::d_bar_lines
private
double Graph3D::d_bars_rad
private
LinearColorMap Graph3D::d_color_map
private

Referenced by initPlot(), save(), and setDataColorMap().

QString Graph3D::d_color_map_file
private

File name of the color map used for the data (if any)

Referenced by initPlot(), save(), and setDataColorMap().

Curve* Graph3D::d_const_curve
private
ConstFunction* Graph3D::d_const_func
private
bool Graph3D::d_filled_bars
private
UserFunction* Graph3D::d_func
private
Matrix* Graph3D::d_matrix
private
double Graph3D::d_point_size
private
bool Graph3D::d_print_cropmarks
private

Referenced by copy(), initPlot(), and print().

bool Graph3D::d_scale_on_print
private

Referenced by copy(), initPlot(), and print().

bool Graph3D::d_smooth_points
private

Draw 3D points with smoothed angles.

Referenced by copy(), customPlotStyle(), initPlot(), resetNonEmptyStyle(), save(), setDotOptions(), setDotStyle(), and setStyle().

UserParametricSurface* Graph3D::d_surface
private
Table* Graph3D::d_table
private
PlotType Graph3D::d_table_plot_type
private
QTimer* Graph3D::d_timer
private

Referenced by animate(), and initPlot().

QColor Graph3D::gridCol
private

Referenced by save(), and setGridColor().

bool Graph3D::ignoreFonts
private

Referenced by initPlot(), and resizeEvent().

QStringList Graph3D::labels
private
QColor Graph3D::labelsCol
private

Referenced by save(), and setLabelsColor().

int Graph3D::labelsDist
private

Referenced by initPlot(), save(), and setLabelsDistance().

int Graph3D::legendMajorTicks
private
bool Graph3D::legendOn
private
QColor Graph3D::meshCol
private

Referenced by save(), and setMeshColor().

QColor Graph3D::numCol
private

Referenced by save(), and setNumbersColor().

QString Graph3D::plotAssociation
private
PointStyle Graph3D::pointStyle
private
QVector<int> Graph3D::scaleType
private
Qwt3D::Plot3D* Graph3D::sp
private

Referenced by addCurve(), addFunction(), addHiddenConstantCurve(), addMatrixData(), addParametricSurface(), addRibbon(), axisNumericFormat(), axisNumericPrecision(), axisTickLengths(), changeTransparency(), clearData(), coordStyle(), copy(), copyImage(), customPlotStyle(), eventFilter(), exportVector(), findBestLayout(), grids(), initCoord(), initPlot(), loadData(), numbersFont(), pixmap(), print(), resetAxesLabels(), resetAxesType(), rotate(), save(), scaleFonts(), scaleTicks(), setAntialiasing(), setAxesColor(), setAxesLabels(), setAxisNumericFormat(), setAxisTickLength(), setBackgroundColor(), setBarStyle(), setBoxed(), setConeStyle(), setCrossStyle(), setDataColorMap(), setDotStyle(), setEmptyFloor(), setFilledMeshStyle(), setFloorData(), setFloorIsolines(), setFramed(), setGrid(), setGridColor(), setHiddenLineStyle(), setLabelsColor(), setLabelsDistance(), setMeshColor(), setMeshLineWidth(), setNoAxes(), setNumbersColor(), setNumbersFont(), setOptions(), setPolygonStyle(), setResolution(), setRotation(), setScale(), setScales(), setShift(), setStyle(), setTickLengths(), setTicks(), setTitle(), setTitleFont(), setWireframeStyle(), setXAxisLabel(), setXAxisLabelFont(), setXAxisTickLength(), setYAxisLabel(), setYAxisLabelFont(), setYAxisTickLength(), setZAxisLabel(), setZAxisLabelFont(), setZAxisTickLength(), setZoom(), showColorLegend(), update(), updateDataXY(), updateMatrixData(), updateScales(), updateScalesFromMatrix(), xAxisLabelFont(), xStart(), xStop(), yAxisLabelFont(), yStart(), yStop(), zAxisLabelFont(), zStart(), zStop(), and ~Graph3D().

Qwt3D::PLOTSTYLE Graph3D::style_
private
QString Graph3D::title
private

Referenced by addCurve(), initPlot(), save(), and setTitle().

QColor Graph3D::titleCol
private

Referenced by addCurve(), initPlot(), save(), and setTitle().

QFont Graph3D::titleFnt
private

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