SciDAVis  1.D4
Public Types | Public Slots | Signals | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
Graph3D Class Reference

3D graph widget. More...

#include <Graph3D.h>

Inheritance diagram for Graph3D:
MyWidget

List of all members.

Public Types

enum  PlotType { Scatter = 0, Trajectory = 1, Bars = 2 }
enum  PointStyle {
  None = 0, Dots = 1, VerticalBars = 2, HairCross = 3,
  Cones = 4
}
- Public Types inherited from MyWidget
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, const QString &colName)
void addData (Table *table, int xcol, int ycol)
void addData (Table *table, const QString &xColName, const QString &yColName)
void addData (Table *table, const QString &xColName, const QString &yColName, double xl, double xr, double yl, double yr, double zl, double zr)
void addData (Table *table, int xCol, int yCol, int zCol, int type)
void addData (Table *table, int xCol, int yCol, int zCol, double xl, double xr, double yl, double yr, double zl, double zr)
void addFunction (const QString &s, double xl, double xr, double yl, double yr, double zl, double zr)
void addMatrixData (Matrix *m)
void addMatrixData (Matrix *m, double xl, double xr, double yl, double yr, double zl, double zr)
void animate (bool on=true)
bool autoscale ()
void changeDataColumn (Table *table, const QString &colName)
void changeMatrix (Matrix *m)
void clearData ()
Qwt3D::COORDSTYLE coordStyle ()
void copy (Graph3D *g)
void copyImage ()
void customPlotStyle (int style)
void exportImage (const QString &fileName, int quality=100, bool transparent=false)
void exportPDF (const QString &fileName)
void exportVector (const QString &fileName, const QString &fileType="pdf")
void findBestLayout ()
Qwt3D::FLOORSTYLE floorStyle ()
TablegetTable ()
bool hasData ()
void initCoord ()
void initPlot ()
void insertFunction (const QString &s, double xl, double xr, double yl, double yr, double zl, double zr)
void insertNewData (Table *table, const QString &colName)
bool isAnimated ()
Matrixmatrix ()
Qwt3D::PLOTSTYLE plotStyle ()
void print ()
void resetNonEmptyStyle ()
void rotate ()
 Used for the animation: rotates the scene with 1/360 degrees.
void rotationChanged (double, double, double)
QString saveAsTemplate (const QString &geometryInfo)
QString saveToString (const QString &geometry)
void scaleChanged (double, double, double)
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 setShift (double xVal, double yVal, double zVal)
void setSmoothMesh (bool smooth)
void setStyle (Qwt3D::COORDSTYLE coord, Qwt3D::FLOORSTYLE floor, Qwt3D::PLOTSTYLE plot, Graph3D::PointStyle point)
void setStyle (const QStringList &st)
void setZoom (double val)
void shiftChanged (double, double, double)
void showWorksheet ()
void update ()
void updateData (Table *table)
void updateDataXY (Table *table, int xCol, int yCol)
void updateDataXYZ (Table *table, int xCol, int yCol, int zCol)
void updateMatrixData (Matrix *m)
void updateScaling (double xVal, double yVal, double zVal)
void updateZoom (double val)
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
UserFunctionuserFunction ()
QString formula ()
Event Handlers
bool eventFilter (QObject *object, QEvent *e)
 Filters other object's events (customizes title bar's context menu)
void resizeEvent (QResizeEvent *)
void contextMenuEvent (QContextMenuEvent *e)
void scaleFonts (double factor)
void setIgnoreFonts (bool ok)
Axes
void setFramed ()
void setBoxed ()
void setNoAxes ()
bool isOrthogonal ()
void setOrtho (bool on=true)
QStringList axesLabels ()
void updateLabel (int axis, const QString &label, const QFont &f)
void setAxesLabels (const QStringList &lst)
void resetAxesLabels ()
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)
void setNumbersFont (const QStringList &lst)
double xStart ()
double xStop ()
double yStart ()
double yStop ()
double zStart ()
double zStop ()
QStringList scaleLimits ()
void updateScale (int axis, const QStringList &options)
void updateScales (double xl, double xr, double yl, double yr, double zl, double zr)
void updateScales (double xl, double xr, double yl, double yr, double zl, double zr, int xcol, int ycol)
void updateScales (double xl, double xr, double yl, double yr, double zl, double zr, int xCol, int yCol, int zCol)
void updateScalesFromMatrix (double xl, double xr, double yl, double yr, double zl, double zr)
QStringList scaleTicks ()
void setTicks (const QStringList &options)
void updateTickLength (int, double majorLength, double minorLength)
void adjustLabels (int val)
int labelsDistance ()
QStringList axisTickLengths ()
void setTickLengths (const QStringList &lst)
Mesh
void setNoGrid ()
void setHiddenLineGrid ()
void setLineGrid ()
void setFilledMesh ()
void setPointsMesh ()
void setBarsPlot ()
void setFloorData ()
void setFloorIsolines ()
void setEmptyFloor ()
void setMeshLineWidth (int lw)
double meshLineWidth ()
Grid
int grids ()
void setGrid (Qwt3D::SIDE s, bool b)
void setGrid (int grids)
void setLeftGrid (bool b)
void setRightGrid (bool b)
void setCeilGrid (bool b)
void setFloorGrid (bool b)
void setFrontGrid (bool b)
void setBackGrid (bool b)
Colors
void setDataColors (const QColor &cMax, const QColor &cMin)
void updateColors (const QColor &meshColor, const QColor &axesColor, const QColor &numColor, const QColor &labelColor, const QColor &bgColor, const QColor &gridColor)
void changeTransparency (double t)
void setTransparency (double t)
double transparency ()
QColor minDataColor ()
QColor maxDataColor ()
QColor meshColor ()
QColor axesColor ()
QColor labelColor ()
QColor numColor ()
QColor bgColor ()
QColor gridColor ()
QString colorMap ()
void setDataColorMap (const QString &fileName)
bool openColorMap (ColorVector &cv, QString fname)
void setColors (const QStringList &colors)
void setColors (const QColor &meshColor, const QColor &axesColor, const QColor &numColor, const QColor &labelColor, const QColor &bgColor, const QColor &gridColor)
Title
void updateTitle (const QString &s, const QColor &color, const QFont &font)
QFont titleFont ()
void setTitleFont (const QFont &font)
QString plotTitle ()
QColor titleColor ()
void setTitle (const QStringList &lst)
void setTitle (const QString &s, const QColor &color, const QFont &font)
Resolution
void setResolution (int r)
int resolution ()
Legend
void showColorLegend (bool show)
bool isLegendOn ()
Bars
double barsRadius ()
void setBarsRadius (double rad)
void updateBars (double rad)
Scatter Plots
double pointsSize ()
bool smoothPoints ()
void updatePoints (double size, bool sm)
bool smoothCrossHair ()
bool boxedCrossHair ()
double crossHairRadius ()
double crossHairLinewidth ()
void updateCross (double rad, double linewidth, bool smooth, bool boxed)
void setCrossOptions (double rad, double linewidth, bool smooth, bool boxed)
void setCrossMesh ()
double coneRadius ()
int coneQuality ()
void updateCones (double rad, int quality)
void setConesOptions (double rad, int quality)
void setConesMesh ()
PointStyle pointType ()
void setPointOptions (double size, bool s)

Signals

void custom3DActions (QWidget *)
void modified ()
void showContextMenu ()
void showOptionsDialog ()
- Signals inherited from MyWidget
void closedWindow (MyWidget *)
 Emitted when the window was closed.
void hiddenWindow (MyWidget *)
 Emitted when the window was hidden.
void modifiedWindow (QWidget *)
void resizedWindow (QWidget *)
void showTitleBarMenu ()
 Emitted when the title bar recieves a QContextMenuEvent.
void statusChanged (MyWidget *)
 Emitted when the window status changed.

Public Member Functions

 Graph3D (const QString &label, QWidget *parent=0, const char *name=0, Qt::WFlags f=0)
 ~Graph3D ()
- Public Member Functions inherited from MyWidget
void askOnCloseEvent (bool ask)
 Toggle the "ask on close" flag.
QString aspect ()
 Return the window status as a string.
virtual QString birthDate ()
 Return the creation date.
virtual CaptionPolicy captionPolicy ()
 Return the caption policy.
void closeEvent (QCloseEvent *)
 Close event handler.
Folderfolder ()
 Returns the pointer to the parent folder of the window.
 MyWidget (const QString &label=QString(), QWidget *parent=0, const QString name=0, Qt::WFlags f=0)
 Constructor.
virtual QString name ()
 Return the window name.
void notifyChanges ()
 Notifies the main application that the window has been modified.
virtual void restore (const QStringList &)
 Not implemented yet.
virtual void setBirthDate (const QString &s)
 Set the creation date.
virtual 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 ()
virtual 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)
virtual void setWindowLabel (const QString &s)
 Set the window label.
Status status ()
 Return the window status flag (hidden, normal, minimized or maximized)
virtual QString windowLabel ()
 Return the window label.

Public Attributes

UserFunctionfunc
Qwt3D::SurfacePlot * sp

Private Member Functions

Qwt3D::Triple ** allocateData (int columns, int rows)
void deleteData (Qwt3D::Triple **data, int columns)

Private Attributes

double alpha
int animation_redraw_wait
 Wait this many msecs before redraw 3D plot (used for animations)
QColor axesCol
double barsRad
QColor bgCol
Qwt3D::StandardColor * col_
QString color_map
 File name of the color map used for the data (if any)
int conesQuality
double conesRad
bool crossHairBoxed
double crossHairLineWidth
double crossHairRad
bool crossHairSmooth
bool d_autoscale
Matrixd_matrix
QTimer * d_timer
QColor fromColor
 Custom data colors.
QColor gridCol
bool ignoreFonts
QStringList labels
QColor labelsCol
int labelsDist
int legendMajorTicks
bool legendOn
QColor meshCol
QColor numCol
QString plotAssociation
double pointSize
PointStyle pointStyle
QVector< int > scaleType
bool smooth
 Draw 3D points with smoothed angles.
bool smoothMesh
Qwt3D::PLOTSTYLE style_
QString title
QColor titleCol
QFont titleFnt
QColor toColor
Tableworksheet

Additional Inherited Members

- Protected Slots inherited from MyWidget
void updateCaption ()
 Set caption according to current CaptionPolicy, name and label.
- Protected Member Functions inherited from MyWidget
virtual void changeEvent (QEvent *event)
 Catches parent changes (in order to gain access to the title bar)
- Protected Attributes inherited from MyWidget
bool askOnClose
 Toggle on/off: Ask the user "delete, hide, or cancel?" on a close event.
QString birthdate
 The creation date.
CaptionPolicy caption_policy
 The caption policy.
FolderparentFolder
 Pointer to the parent folder of the window.
QWidget * titleBar
 Title bar of this MDI window if it currently belongs to a QWorkspace, NULL else.
QString w_label
 The window label.
Status w_status
 The window status.

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 MyWidget 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:
Scatter 
Trajectory 
Bars 
Enumerator:
None 
Dots 
VerticalBars 
HairCross 
Cones 

Constructor & Destructor Documentation

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

References initPlot().

Graph3D::~Graph3D ( )

References func, and sp.


Member Function Documentation

void Graph3D::addData ( Table table,
const QString &  colName 
)
slot
void Graph3D::addData ( Table table,
int  xcol,
int  ycol 
)
slot
void Graph3D::addData ( Table table,
const QString &  xColName,
const QString &  yColName 
)
slot
void Graph3D::addData ( Table table,
const QString &  xColName,
const QString &  yColName,
double  xl,
double  xr,
double  yl,
double  yr,
double  zl,
double  zr 
)
slot
void Graph3D::addData ( Table table,
int  xCol,
int  yCol,
int  zCol,
int  type 
)
slot
void Graph3D::addData ( Table table,
int  xCol,
int  yCol,
int  zCol,
double  xl,
double  xr,
double  yl,
double  yr,
double  zl,
double  zr 
)
slot
void Graph3D::addFunction ( const QString &  s,
double  xl,
double  xr,
double  yl,
double  yr,
double  zl,
double  zr 
)
slot
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::adjustLabels ( int  val)
slot

References labelsDist, modified(), and sp.

Referenced by setOptions().

Qwt3D::Triple ** Graph3D::allocateData ( int  columns,
int  rows 
)
private
void Graph3D::animate ( bool  on = true)
slot

Turns 3D animation on or off

References animation_redraw_wait, and d_timer.

Referenced by copy().

bool Graph3D::autoscale ( )
inlineslot
QColor Graph3D::axesColor ( )
inlineslot
QStringList Graph3D::axesLabels ( )
inlineslot
QStringList Graph3D::axisTickLengths ( )
slot
double Graph3D::barsRadius ( )
slot

References barsRad, and sp.

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

QColor Graph3D::bgColor ( )
inlineslot
bool Graph3D::boxedCrossHair ( )
inlineslot
void Graph3D::changeDataColumn ( Table table,
const QString &  colName 
)
slot
void Graph3D::changeMatrix ( Matrix m)
slot
void Graph3D::changeTransparency ( double  t)
slot

References alpha, legendOn, modified(), and sp.

void Graph3D::clearData ( )
slot

References d_matrix, func, plotAssociation, sp, and worksheet.

QString Graph3D::colorMap ( )
inlineslot
int Graph3D::coneQuality ( )
inlineslot
double Graph3D::coneRadius ( )
inlineslot
void Graph3D::contextMenuEvent ( QContextMenuEvent *  e)
slot

References showContextMenu().

Qwt3D::COORDSTYLE Graph3D::coordStyle ( )
slot
void Graph3D::copy ( Graph3D g)
slot
void Graph3D::copyImage ( )
slot

References sp.

double Graph3D::crossHairLinewidth ( )
inlineslot
double Graph3D::crossHairRadius ( )
inlineslot
void Graph3D::custom3DActions ( QWidget *  )
signal
void Graph3D::customPlotStyle ( int  style)
slot
void Graph3D::deleteData ( Qwt3D::Triple **  data,
int  columns 
)
private
bool Graph3D::eventFilter ( QObject *  object,
QEvent *  e 
)
slot

Filters other object's events (customizes title bar's context menu)

Reimplemented from MyWidget.

References showOptionsDialog(), and sp.

void Graph3D::exportImage ( const QString &  fileName,
int  quality = 100,
bool  transparent = false 
)
slot
void Graph3D::exportPDF ( const QString &  fileName)
virtualslot

Reimplemented from MyWidget.

References exportVector().

void Graph3D::exportVector ( const QString &  fileName,
const QString &  fileType = "pdf" 
)
slot
void Graph3D::findBestLayout ( )
slot
Qwt3D::FLOORSTYLE Graph3D::floorStyle ( )
slot

References sp.

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

QString Graph3D::formula ( )
slot
Table* Graph3D::getTable ( )
inlineslot
QColor Graph3D::gridColor ( )
inlineslot
int Graph3D::grids ( )
slot
bool Graph3D::hasData ( )
inlineslot
void Graph3D::initCoord ( )
slot

References labels, and sp.

Referenced by initPlot().

void Graph3D::initPlot ( )
slot
void Graph3D::insertFunction ( const QString &  s,
double  xl,
double  xr,
double  yl,
double  yr,
double  zl,
double  zr 
)
slot

References addFunction(), and update().

void Graph3D::insertNewData ( Table table,
const QString &  colName 
)
slot
bool Graph3D::isAnimated ( )
inlineslot
bool Graph3D::isLegendOn ( )
inlineslot
bool Graph3D::isOrthogonal ( )
inlineslot
QColor Graph3D::labelColor ( )
inlineslot
int Graph3D::labelsDistance ( )
inlineslot
Matrix* Graph3D::matrix ( )
inlineslot
QColor Graph3D::maxDataColor ( )
slot

References toColor.

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

QColor Graph3D::meshColor ( )
inlineslot
double Graph3D::meshLineWidth ( )
inlineslot
QColor Graph3D::minDataColor ( )
slot

References fromColor.

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

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

References sp.

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

QColor Graph3D::numColor ( )
inlineslot
bool Graph3D::openColorMap ( ColorVector &  cv,
QString  fname 
)
slot

Referenced by setDataColorMap().

Qwt3D::PLOTSTYLE Graph3D::plotStyle ( )
slot
QString Graph3D::plotTitle ( )
inlineslot
double Graph3D::pointsSize ( )
inlineslot
PointStyle Graph3D::pointType ( )
inlineslot
void Graph3D::print ( )
virtualslot

Reimplemented from MyWidget.

References MyWidget::name(), and sp.

void Graph3D::resetAxesLabels ( )
slot

References labels, and sp.

Referenced by update().

void Graph3D::resetNonEmptyStyle ( )
slot
void Graph3D::resizeEvent ( QResizeEvent *  e)
slot
int Graph3D::resolution ( )
inlineslot
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().

QString Graph3D::saveAsTemplate ( const QString &  geometryInfo)
virtualslot

Reimplemented from MyWidget.

References saveToString().

QString Graph3D::saveToString ( const QString &  geometry)
virtualslot
void Graph3D::scaleChanged ( double  ,
double  ,
double   
)
slot

References modified().

Referenced by initPlot().

void Graph3D::scaleFonts ( double  factor)
slot
QStringList Graph3D::scaleLimits ( )
slot

References scaleType, and sp.

Referenced by ApplicationWindow::showPlot3dDialog().

QStringList Graph3D::scaleTicks ( )
slot

References sp.

Referenced by copy(), and saveToString().

void Graph3D::setAutoscale ( bool  on = true)
inlineslot

Enables/Disables autoscaling using findBestLayout().

Referenced by ApplicationWindow::setPlot3DOptions().

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

References labels, and sp.

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

void Graph3D::setBackGrid ( bool  b)
slot

References setGrid().

void Graph3D::setBarsPlot ( )
slot

References barsRad, pointStyle, sp, style_, and VerticalBars.

void Graph3D::setBarsRadius ( double  rad)
slot

References barsRad.

Referenced by copy().

void Graph3D::setBoxed ( )
slot

References sp.

void Graph3D::setCeilGrid ( bool  b)
slot

References setGrid().

void Graph3D::setColors ( const QStringList &  colors)
slot
void Graph3D::setColors ( const QColor &  meshColor,
const QColor &  axesColor,
const QColor &  numColor,
const QColor &  labelColor,
const QColor &  bgColor,
const QColor &  gridColor 
)
slot
void Graph3D::setConesMesh ( )
slot
void Graph3D::setConesOptions ( double  rad,
int  quality 
)
slot

References conesQuality, and conesRad.

Referenced by copy().

void Graph3D::setCrossMesh ( )
slot
void Graph3D::setCrossOptions ( double  rad,
double  linewidth,
bool  smooth,
bool  boxed 
)
slot
void Graph3D::setDataColorMap ( const QString &  fileName)
slot

References col_, color_map, legendOn, openColorMap(), and sp.

Referenced by copy(), and setColors().

void Graph3D::setDataColors ( const QColor &  cMax,
const QColor &  cMin 
)
slot
void Graph3D::setEmptyFloor ( )
slot

References sp.

void Graph3D::setFilledMesh ( )
slot

References None, pointStyle, sp, and style_.

void Graph3D::setFloorData ( )
slot

References sp.

Referenced by ApplicationWindow::customPlot3D().

void Graph3D::setFloorGrid ( bool  b)
slot

References setGrid().

void Graph3D::setFloorIsolines ( )
slot

References sp.

void Graph3D::setFramed ( )
slot

References sp.

void Graph3D::setFrontGrid ( bool  b)
slot

References setGrid().

void Graph3D::setGrid ( Qwt3D::SIDE  s,
bool  b 
)
slot
void Graph3D::setGrid ( int  grids)
slot

References sp.

void Graph3D::setHiddenLineGrid ( )
slot

References legendOn, None, pointStyle, sp, and style_.

void Graph3D::setIgnoreFonts ( bool  ok)
inlineslot
void Graph3D::setLeftGrid ( bool  b)
slot

References setGrid().

void Graph3D::setLineGrid ( )
slot

References legendOn, None, pointStyle, sp, and style_.

void Graph3D::setMeshLineWidth ( int  lw)
slot

References sp.

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

void Graph3D::setNoAxes ( )
slot

References sp.

void Graph3D::setNoGrid ( )
slot

References None, pointStyle, sp, and style_.

void Graph3D::setNumbersFont ( const QFont &  font)
slot
void Graph3D::setNumbersFont ( const QStringList &  lst)
slot

References sp.

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

References adjustLabels(), legendOn, and sp.

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

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

References adjustLabels(), legendOn, and sp.

void Graph3D::setOrtho ( bool  on = true)
inlineslot
void Graph3D::setPlotAssociation ( const QString &  s)
inlineslot
void Graph3D::setPointOptions ( double  size,
bool  s 
)
slot

References pointSize, and smooth.

Referenced by copy().

void Graph3D::setPointsMesh ( )
slot

References Dots, pointSize, pointStyle, smooth, sp, and style_.

void Graph3D::setResolution ( int  r)
slot

References modified(), and sp.

Referenced by ApplicationWindow::customPlot3D().

void Graph3D::setRightGrid ( bool  b)
slot

References setGrid().

void Graph3D::setRotation ( double  xVal,
double  yVal,
double  zVal 
)
slot

References sp.

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

void Graph3D::setScale ( double  xVal,
double  yVal,
double  zVal 
)
slot

References sp.

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

void Graph3D::setShift ( double  xVal,
double  yVal,
double  zVal 
)
slot

References sp.

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

void Graph3D::setSmoothMesh ( bool  smooth)
slot
void Graph3D::setStyle ( Qwt3D::COORDSTYLE  coord,
Qwt3D::FLOORSTYLE  floor,
Qwt3D::PLOTSTYLE  plot,
Graph3D::PointStyle  point 
)
slot
void Graph3D::setStyle ( const QStringList &  st)
slot
void Graph3D::setTickLengths ( const QStringList &  lst)
slot

References sp.

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

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

References sp.

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

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

References sp, title, titleCol, and titleFnt.

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

void Graph3D::setTitle ( const QString &  s,
const QColor &  color,
const QFont &  font 
)
slot

References sp, title, titleCol, and titleFnt.

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

References sp, and titleFnt.

Referenced by ApplicationWindow::customPlot3D().

void Graph3D::setTransparency ( double  t)
slot

References alpha, and sp.

Referenced by copy().

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

References sp.

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

References sp.

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

References sp.

void Graph3D::setZoom ( double  val)
slot

References sp.

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

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

References modified().

Referenced by initPlot().

void Graph3D::showColorLegend ( bool  show)
slot

References legendOn, modified(), and sp.

Referenced by ApplicationWindow::customPlot3D().

void Graph3D::showContextMenu ( )
signal

Referenced by contextMenuEvent().

void Graph3D::showOptionsDialog ( )
signal

Referenced by eventFilter().

void Graph3D::showWorksheet ( )
slot

References d_matrix, and worksheet.

bool Graph3D::smoothCrossHair ( )
inlineslot
bool Graph3D::smoothPoints ( )
inlineslot
QColor Graph3D::titleColor ( )
inlineslot
QFont Graph3D::titleFont ( )
inlineslot
double Graph3D::transparency ( )
inlineslot
void Graph3D::update ( )
slot
void Graph3D::updateBars ( double  rad)
slot

References barsRad, sp, and update().

void Graph3D::updateColors ( const QColor &  meshColor,
const QColor &  axesColor,
const QColor &  numColor,
const QColor &  labelColor,
const QColor &  bgColor,
const QColor &  gridColor 
)
slot
void Graph3D::updateCones ( double  rad,
int  quality 
)
slot
void Graph3D::updateCross ( double  rad,
double  linewidth,
bool  smooth,
bool  boxed 
)
slot
void Graph3D::updateData ( Table table)
slot
void Graph3D::updateDataXY ( Table table,
int  xCol,
int  yCol 
)
slot
void Graph3D::updateDataXYZ ( Table table,
int  xCol,
int  yCol,
int  zCol 
)
slot
void Graph3D::updateLabel ( int  axis,
const QString &  label,
const QFont &  f 
)
slot

References labels, modified(), and sp.

void Graph3D::updateMatrixData ( Matrix m)
slot
void Graph3D::updatePoints ( double  size,
bool  sm 
)
slot
void Graph3D::updateScale ( int  axis,
const QStringList &  options 
)
slot
void Graph3D::updateScales ( double  xl,
double  xr,
double  yl,
double  yr,
double  zl,
double  zr 
)
slot
void Graph3D::updateScales ( double  xl,
double  xr,
double  yl,
double  yr,
double  zl,
double  zr,
int  xcol,
int  ycol 
)
slot
void Graph3D::updateScales ( double  xl,
double  xr,
double  yl,
double  yr,
double  zl,
double  zr,
int  xCol,
int  yCol,
int  zCol 
)
slot
void Graph3D::updateScalesFromMatrix ( double  xl,
double  xr,
double  yl,
double  yr,
double  zl,
double  zr 
)
slot
void Graph3D::updateScaling ( double  xVal,
double  yVal,
double  zVal 
)
slot

References sp.

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

References sp.

Referenced by findBestLayout().

void Graph3D::updateTitle ( const QString &  s,
const QColor &  color,
const QFont &  font 
)
slot

References modified(), sp, title, titleCol, and titleFnt.

void Graph3D::updateZoom ( double  val)
slot

References sp.

UserFunction * Graph3D::userFunction ( )
slot
QFont Graph3D::xAxisLabelFont ( )
slot

References sp.

Referenced by copy(), scaleFonts(), and ApplicationWindow::showPlot3dDialog().

double Graph3D::xRotation ( )
inlineslot

Referenced by copy().

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 ApplicationWindow::showPlot3dDialog().

double Graph3D::yRotation ( )
inlineslot

Referenced by copy().

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 ApplicationWindow::showPlot3dDialog().

double Graph3D::zoom ( )
inlineslot
void Graph3D::zoomChanged ( double  )
slot

References modified().

Referenced by initPlot().

double Graph3D::zRotation ( )
inlineslot

Referenced by copy().

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

Referenced by copy().

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

Member Data Documentation

double Graph3D::alpha
private
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
double Graph3D::barsRad
private
QColor Graph3D::bgCol
private
Qwt3D::StandardColor* Graph3D::col_
private
QString Graph3D::color_map
private

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

Referenced by initPlot(), saveToString(), 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
bool Graph3D::d_autoscale
private
Matrix* Graph3D::d_matrix
private
QTimer* Graph3D::d_timer
private

Referenced by animate(), and initPlot().

QColor Graph3D::fromColor
private

Custom data colors.

Referenced by initPlot(), minDataColor(), saveToString(), and setDataColors().

UserFunction* Graph3D::func
QColor Graph3D::gridCol
private
bool Graph3D::ignoreFonts
private

Referenced by initPlot(), and resizeEvent().

QStringList Graph3D::labels
private
QColor Graph3D::labelsCol
private
int Graph3D::labelsDist
private
int Graph3D::legendMajorTicks
private
bool Graph3D::legendOn
private
QColor Graph3D::meshCol
private
QColor Graph3D::numCol
private
QString Graph3D::plotAssociation
private
double Graph3D::pointSize
private
PointStyle Graph3D::pointStyle
private
QVector<int> Graph3D::scaleType
private

Referenced by initPlot(), scaleLimits(), and updateScale().

bool Graph3D::smooth
private
bool Graph3D::smoothMesh
private

Referenced by initPlot(), and setSmoothMesh().

Qwt3D::SurfacePlot* Graph3D::sp
Qwt3D::PLOTSTYLE Graph3D::style_
private
QString Graph3D::title
private
QColor Graph3D::titleCol
private
QFont Graph3D::titleFnt
private
QColor Graph3D::toColor
private
Table* Graph3D::worksheet
private

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