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

An MDI window (MdiSubWindow) managing one or more Graph objects. More...

#include <MultiLayer.h>

Inheritance diagram for MultiLayer:
MdiSubWindow

Public Types

enum  AlignPolicy { AlignLayers = 0, AlignCanvases }
 
enum  HorAlignement { HCenter, Left, Right }
 
enum  SizePolicy { Expanding = 0, UserSize }
 
enum  VertAlignement { VCenter, Top, Bottom }
 
- 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

GraphactiveLayer ()
 
GraphaddLayer (int x=0, int y=0, int width=0, int height=0, bool=false)
 
void confirmRemoveLayer ()
 
bool isEmpty ()
 
bool removeActiveLayer ()
 
bool removeLayer (Graph *g)
 
- Public Slots inherited from MdiSubWindow

Signals

void currentColorChanged (const QColor &)
 
void currentFontChanged (const QFont &)
 
void cursorInfo (const QString &)
 
void drawLineEnded (bool)
 
void modifiedPlot ()
 
void pasteMarker ()
 
void setPointerCursor ()
 
void showCurvesDialog ()
 
void showEnrichementDialog ()
 
void showLineDialog ()
 
void showMarkerPopupMenu ()
 
- Signals inherited from MdiSubWindow
void closedWindow (MdiSubWindow *)
 Emitted when the window was closed. More...
 
void hiddenWindow (MdiSubWindow *)
 Emitted when the window was hidden. More...
 
void modifiedWindow (MdiSubWindow *)
 
void resizedWindow (MdiSubWindow *)
 
void showContextMenu ()
 Show the context menu. More...
 
void statusChanged (MdiSubWindow *)
 Emitted when the window status changed. More...
 

Public Member Functions

void activateGraph (LayerButton *button)
 
void adjustLayersToCanvasSize ()
 
AlignPolicy alignPolicy ()
 
QSize arrangeLayers (bool userSize)
 
bool arrangeLayers (bool fit, bool userSize)
 
int bottomMargin ()
 
QWidget * canvas ()
 
QRect canvasChildrenRect ()
 
QRect canvasRect ()
 
int colsSpacing ()
 
void connectLayer (Graph *g)
 
void copy (MultiLayer *ml)
 
void deselect ()
 
void findBestLayout (int &rows, int &cols)
 
int getCols ()
 
int getRows ()
 
bool hasCommonAxes ()
 
bool hasLinkedXLayerAxes ()
 
bool hasSelectedLayers ()
 
int horizontalAlignement ()
 
bool isLayerSelected (Graph *)
 
Graphlayer (int num)
 
GraphlayerAt (const QPoint &pos)
 Returns the layer at the given position; returns 0 if there is no such layer. More...
 
QSize layerCanvasSize ()
 
int layerIndex (Graph *g)
 
QList< Graph * > layersList ()
 
int leftMargin ()
 
void linkXLayerAxes (bool link=true)
 
 MultiLayer (ApplicationWindow *parent=0, int layers=1, int rows=1, int cols=1, const QString &label="", const char *name=0, Qt::WFlags f=0)
 
int numLayers ()
 
void plotProfiles (Matrix *m)
 
void printCropmarks (bool on)
 
bool printCropmarksEnabled ()
 
int rightMargin ()
 
int rowsSpacing ()
 
void save (const QString &fn, const QString &geometry, bool=false)
 
bool scaleLayersOnPrint ()
 
bool scaleLayersOnResize ()
 
void selectLayerCanvas (Graph *g)
 
void setActiveLayer (Graph *g)
 
void setAlignement (int ha, int va)
 
void setAlignPolicy (const AlignPolicy &policy)
 
void setCols (int c)
 
void setCommonAxesLayout (bool on=true)
 
void setCommonLayerAxes (bool verticalAxis=true, bool horizontalAxis=true)
 
void setEqualSizedLayers ()
 
void setFonts (const QFont &titleFnt, const QFont &scaleFnt, const QFont &numbersFnt, const QFont &legendFnt)
 
void setGraphGeometry (int x, int y, int w, int h)
 
void setLayerCanvasSize (int w, int h)
 
void setMargins (int lm, int rm, int tm, int bm)
 
void setNumLayers (int n)
 
void setRows (int r)
 
void setScaleLayersOnPrint (bool on)
 
void setScaleLayersOnResize (bool ok)
 
void setSizePolicy (const SizePolicy &policy)
 
void setSpacing (int rgap, int cgap)
 
void setWaterfallLayout (bool on=true)
 
SizePolicy sizePolicy ()
 
virtual QString sizeToString ()
 Size of the widget as a string. More...
 
QList< Graph * > stackOrderedLayersList ()
 
bool swapLayers (int src, int dest)
 
QHBoxLayout * toolBox ()
 
int topMargin ()
 
void updateLayerAxes (Graph *g, int axis)
 
void updateLayersLayout (Graph *)
 
int verticalAlignement ()
 
 ~MultiLayer ()
 
Print and Export
QPixmap canvasPixmap (const QSize &size=QSize(), double scaleFontsFactor=1.0, bool transparent=false)
 
void exportToFile (const QString &fileName)
 
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 exportSVG (const QString &fname, const QSizeF &customSize=QSizeF(), int unit=FrameWidget::Pixel, double fontsFactor=1.0)
 
void exportPDF (const QString &fname)
 
void exportVector (const QString &fileName, int res=0, bool color=true, const QSizeF &customSize=QSizeF(), int unit=FrameWidget::Pixel, double fontsFactor=1.0)
 
void exportVector (QPrinter *printer, int res=0, bool color=true, const QSizeF &customSize=QSizeF(), int unit=FrameWidget::Pixel, double fontsFactor=1.0)
 
void draw (QPaintDevice *, const QSizeF &customSize, int unit, int res, double fontsFactor=1.0)
 
void exportEMF (const QString &fname, const QSizeF &customSize=QSizeF(), int unit=FrameWidget::Pixel, double fontsFactor=1.0)
 
void exportTeX (const QString &fname, bool color=true, bool escapeStrings=true, bool fontSizes=true, const QSizeF &customSize=QSizeF(), int unit=FrameWidget::Pixel, double fontsFactor=1.0)
 
void copyAllLayers ()
 
void print ()
 
void print (QPrinter *)
 
void printAllLayers (QPainter *painter)
 
void printActiveLayer ()
 
Waterfall Plots
void showWaterfallOffsetDialog ()
 
void reverseWaterfallOrder ()
 
void showWaterfallFillDialog ()
 
void updateWaterfalls ()
 
bool isWaterfallPlot ()
 
QColor waterfallFillColor ()
 
void setWaterfallFillColor (const QColor &c)
 
- Public Member Functions inherited from MdiSubWindow
ApplicationWindowapplicationWindow ()
 Returns a pointer to the parent application. More...
 
void askOnCloseEvent (bool ask)
 Toggle the "ask on close" flag. More...
 
QString aspect ()
 Return the window status as a string. More...
 
QString birthDate ()
 Return the creation date. More...
 
CaptionPolicy captionPolicy ()
 Return the caption policy. More...
 
void closeEvent (QCloseEvent *)
 Close event handler. More...
 
bool eventFilter (QObject *object, QEvent *e)
 Filters other object's events (customizes title bar's context menu) More...
 
Folderfolder ()
 Returns the pointer to the parent folder of the window. More...
 
 MdiSubWindow (const QString &label=QString(), ApplicationWindow *app=0, const QString &name=QString(), Qt::WFlags f=0)
 Constructor. More...
 
QSize minRestoreSize ()
 Returns the size the window had before a change state event to minimized. More...
 
QString name ()
 Return the window name. More...
 
void notifyChanges ()
 Notifies the main application that the window has been modified. More...
 
void resizeEvent (QResizeEvent *)
 
virtual void restore (const QStringList &)
 Not implemented yet. More...
 
void restoreWindow ()
 Show window making sure that layers in MultiLayer windows are not resized. More...
 
void setBirthDate (const QString &s)
 Set the creation date. More...
 
void setCaptionPolicy (CaptionPolicy policy)
 Set the caption policy. More...
 
void setFolder (Folder *f)
 Initializes the pointer to the parent folder of the window. More...
 
virtual void setHidden ()
 Notifies that a window was hidden by a direct user action. More...
 
void setMaximized ()
 
void setMinimized ()
 
void setName (const QString &s)
 Set the window name. More...
 
void setNormal ()
 
void setStatus (Status s)
 Set the window status flag (hidden, normal, minimized or maximized) More...
 
void setWindowLabel (const QString &s)
 Set the window label. More...
 
Status status ()
 Return the window status flag (hidden, normal, minimized or maximized) More...
 
QString windowLabel ()
 Return the window label. More...
 

Private Member Functions

LayerButtonaddLayerButton ()
 
void createWaterfallBox ()
 
Event Handlers
void mouseReleaseEvent (QMouseEvent *)
 
void showEvent (QShowEvent *)
 
void dropEvent (QDropEvent *)
 
void dragEnterEvent (QDragEnterEvent *)
 
void wheelEvent (QWheelEvent *)
 
void keyPressEvent (QKeyEvent *)
 
bool eventFilter (QObject *object, QEvent *)
 
void releaseLayer ()
 
void resizeLayers (QResizeEvent *)
 
GraphclickedLayer (Graph *)
 Try to guess on which layer the user clicked if the layers are superposed. More...
 

Private Attributes

Graphactive_graph
 
int bottom_margin
 
QList< LayerButton * > buttonsList
 
int colsSpace
 
QPushButton * d_add_layer_btn
 
AlignPolicy d_align_policy
 
QWidget * d_canvas
 
QSize d_canvas_size
 
int d_cols
 Used for resizing of layers. More...
 
bool d_common_axes_layout
 
bool d_is_waterfall_plot
 
QVector< QRectF > d_layer_coordinates
 
QPointer< SelectionMoveResizerd_layers_selector
 
bool d_link_x_axes
 
bool d_print_cropmarks
 
QPushButton * d_remove_layer_btn
 
int d_rows
 
bool d_scale_layers
 Flag telling if layers should be rescaled on the plot window is resized by the user. More...
 
bool d_scale_on_print
 
SizePolicy d_size_policy
 
QColor d_waterfall_fill_color
 
int graph_height
 
int graph_width
 
QList< Graph * > graphsList
 
int hor_align
 
int l_canvas_height
 
int l_canvas_width
 
QHBoxLayout * layerButtonsBox
 
int left_margin
 
int right_margin
 
int rowsSpace
 
QHBoxLayout * toolbuttonsBox
 
int top_margin
 
int vert_align
 
QHBoxLayout * waterfallBox
 

Additional Inherited Members

- 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 != '
'. More...
 
- Protected Member Functions inherited from MdiSubWindow
virtual void changeEvent (QEvent *event)
 Catches status changes. More...
 

Detailed Description

An MDI window (MdiSubWindow) managing one or more Graph objects.

Note that several parts of the code, as well as the user interface, refer to MultiLayer as "graph" or "plot", practically guaranteeing confusion with the classes Graph and Plot.

Future Plans

Manage any QWidget instead of only Graph. This would allow 3D graphs to be added as well, so you could produce mixed 2D/3D arrangements. It would also allow text labels to be added directly instead of having to complicate things by wrapping them up in a Graph (see documentation of ImageMarker for details) (see documentation of ImageMarker for details).

The main problem to be figured out for this is how Graph would interface with the rest of the project. A possible solution is outlined in the documentation of ApplicationWindow: If MultiLayer exposes its parent Project to the widgets it manages, they could handle things like creating tables by calling methods of Project instead of sending signals.

Member Enumeration Documentation

◆ AlignPolicy

Enumerator
AlignLayers 
AlignCanvases 

◆ HorAlignement

Enumerator
HCenter 
Left 
Right 

◆ SizePolicy

Enumerator
Expanding 
UserSize 

◆ VertAlignement

Enumerator
VCenter 
Top 
Bottom 

Constructor & Destructor Documentation

◆ MultiLayer()

MultiLayer::MultiLayer ( ApplicationWindow parent = 0,
int  layers = 1,
int  rows = 1,
int  cols = 1,
const QString &  label = "",
const char *  name = 0,
Qt::WFlags  f = 0 
)

◆ ~MultiLayer()

MultiLayer::~MultiLayer ( )

References deselect(), and graphsList.

Member Function Documentation

◆ activateGraph()

void MultiLayer::activateGraph ( LayerButton button)

◆ activeLayer

Graph* MultiLayer::activeLayer ( )
inlineslot

References activateGraph(), active_graph, arrangeLayers(), findBestLayout(), layerAt(), selectLayerCanvas(), setActiveLayer(), setGraphGeometry(), swapLayers(), and updateLayersLayout().

Referenced by FunctionDialog::acceptFunction(), FunctionDialog::acceptParametric(), FunctionDialog::acceptPolar(), ErrDialog::add(), ApplicationWindow::addEllipse(), ApplicationWindow::addErrorBars(), ApplicationWindow::addFunctionCurve(), ApplicationWindow::addImage(), ApplicationWindow::addInsetLayer(), ApplicationWindow::addRectangle(), ApplicationWindow::addTexFormula(), ApplicationWindow::addText(), ApplicationWindow::addTimeStamp(), ApplicationWindow::alignBottom(), ApplicationWindow::alignLeft(), ApplicationWindow::alignRight(), ApplicationWindow::alignTop(), ApplicationWindow::analysis(), ApplicationWindow::appendProject(), ApplicationWindow::baselineDialog(), LineProfileTool::calculateLineProfile(), ApplicationWindow::copyActiveLayer(), ApplicationWindow::copyMarker(), ApplicationWindow::copySelection(), Filter::createOutputGraph(), ApplicationWindow::custom2DPlotTools(), ApplicationWindow::cutSelection(), ApplicationWindow::drawArrow(), ApplicationWindow::drawLine(), ApplicationWindow::dropEvent(), ApplicationWindow::extractLayers(), ApplicationWindow::fitLinear(), ApplicationWindow::fitMultiPeak(), ApplicationWindow::fitSlope(), ApplicationWindow::hideCurve(), ApplicationWindow::hideOtherCurves(), ApplicationWindow::intensityTable(), ApplicationWindow::loadImage(), ApplicationWindow::movePoints(), ApplicationWindow::multilayerPlot(), ApplicationWindow::newFunctionPlot(), ApplicationWindow::newGraph(), ApplicationWindow::newLegend(), ApplicationWindow::openProject(), ApplicationWindow::openTemplate(), ApplicationWindow::pasteSelection(), ApplicationWindow::pixelLineProfile(), PlotWizard::plot2D(), ApplicationWindow::plotDoubleYAxis(), ApplicationWindow::plotHistogram(), ApplicationWindow::plotImage(), ApplicationWindow::plotSpectrogram(), ApplicationWindow::raiseActiveEnrichment(), ApplicationWindow::removeCurve(), ApplicationWindow::removePoints(), ApplicationWindow::removeWindowFromLists(), ApplicationWindow::setAutoScale(), ApplicationWindow::setBoldFont(), ApplicationWindow::setCurveFullRange(), ApplicationWindow::setFontFamily(), ApplicationWindow::setFontSize(), ApplicationWindow::setItalicFont(), PlotDialog::setMultiLayer(), ApplicationWindow::setTextColor(), ApplicationWindow::showAllCurves(), ApplicationWindow::showCursor(), ApplicationWindow::showCurveContextMenu(), ApplicationWindow::showCurveRangeDialog(), ApplicationWindow::showCurveWorksheet(), ApplicationWindow::showDataSetDialog(), ApplicationWindow::showEnrichementDialog(), ApplicationWindow::showExpDecayDialog(), ApplicationWindow::showFilterDialog(), ApplicationWindow::showFitDialog(), ApplicationWindow::showFitPolynomDialog(), ApplicationWindow::showFunctionIntegrationDialog(), ApplicationWindow::showGraphContextMenu(), ApplicationWindow::showInterpolationDialog(), ApplicationWindow::showLineDialog(), ApplicationWindow::showMarkerPopupMenu(), ApplicationWindow::showMatrixValuesDialog(), ApplicationWindow::showPlotDialog(), ApplicationWindow::showRangeSelectors(), ApplicationWindow::showSmoothDialog(), ApplicationWindow::subtractReferenceData(), ApplicationWindow::subtractStraightLine(), ApplicationWindow::translateCurve(), ApplicationWindow::waterfallPlot(), ApplicationWindow::zoomIn(), ApplicationWindow::zoomOut(), and ApplicationWindow::zoomRectanglePlot().

◆ addLayer

Graph * MultiLayer::addLayer ( int  x = 0,
int  y = 0,
int  width = 0,
int  height = 0,
bool  setPreferences = false 
)
slot

◆ addLayerButton()

LayerButton * MultiLayer::addLayerButton ( )
private

◆ adjustLayersToCanvasSize()

void MultiLayer::adjustLayersToCanvasSize ( )

◆ alignPolicy()

AlignPolicy MultiLayer::alignPolicy ( )
inline

References d_align_policy.

Referenced by copy(), and LayerDialog::setMultiLayer().

◆ arrangeLayers() [1/2]

QSize MultiLayer::arrangeLayers ( bool  userSize)

◆ arrangeLayers() [2/2]

bool MultiLayer::arrangeLayers ( bool  fit,
bool  userSize 
)

◆ bottomMargin()

int MultiLayer::bottomMargin ( )
inline

References bottom_margin, and setMargins().

Referenced by copy(), and LayerDialog::setMultiLayer().

◆ canvas()

QWidget* MultiLayer::canvas ( )
inline

◆ canvasChildrenRect()

QRect MultiLayer::canvasChildrenRect ( )

◆ canvasPixmap()

QPixmap MultiLayer::canvasPixmap ( const QSize &  size = QSize(),
double  scaleFontsFactor = 1.0,
bool  transparent = false 
)

◆ canvasRect()

QRect MultiLayer::canvasRect ( )
inline

◆ clickedLayer()

Graph * MultiLayer::clickedLayer ( Graph g)
private

Try to guess on which layer the user clicked if the layers are superposed.

References graphsList.

Referenced by waterfallFillColor().

◆ colsSpacing()

int MultiLayer::colsSpacing ( )
inline

References colsSpace.

Referenced by copy(), and LayerDialog::setMultiLayer().

◆ confirmRemoveLayer

void MultiLayer::confirmRemoveLayer ( )
slot

◆ connectLayer()

void MultiLayer::connectLayer ( Graph g)

◆ copy()

void MultiLayer::copy ( MultiLayer ml)

◆ copyAllLayers()

void MultiLayer::copyAllLayers ( )

◆ createWaterfallBox()

void MultiLayer::createWaterfallBox ( )
private

◆ currentColorChanged

void MultiLayer::currentColorChanged ( const QColor &  )
signal

Referenced by connectLayer(), and waterfallFillColor().

◆ currentFontChanged

void MultiLayer::currentFontChanged ( const QFont &  )
signal

Referenced by connectLayer(), and waterfallFillColor().

◆ cursorInfo

void MultiLayer::cursorInfo ( const QString &  )
signal

Referenced by connectLayer(), and waterfallFillColor().

◆ deselect()

void MultiLayer::deselect ( )

◆ dragEnterEvent()

void MultiLayer::dragEnterEvent ( QDragEnterEvent *  e)
private

References Graph::multiLayer().

Referenced by waterfallFillColor().

◆ draw()

void MultiLayer::draw ( QPaintDevice *  device,
const QSizeF &  customSize,
int  unit,
int  res,
double  fontsFactor = 1.0 
)

◆ drawLineEnded

void MultiLayer::drawLineEnded ( bool  )
signal

Referenced by connectLayer(), and waterfallFillColor().

◆ dropEvent()

void MultiLayer::dropEvent ( QDropEvent *  event)
private

◆ eventFilter()

bool MultiLayer::eventFilter ( QObject *  object,
QEvent *  e 
)
private

◆ exportEMF()

void MultiLayer::exportEMF ( const QString &  fname,
const QSizeF &  customSize = QSizeF(),
int  unit = FrameWidget::Pixel,
double  fontsFactor = 1.0 
)

◆ exportImage()

void MultiLayer::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 
)

◆ exportPDF()

void MultiLayer::exportPDF ( const QString &  fname)
virtual

Reimplemented from MdiSubWindow.

References exportVector().

Referenced by ApplicationWindow::exportPDF(), and verticalAlignement().

◆ exportSVG()

void MultiLayer::exportSVG ( const QString &  fname,
const QSizeF &  customSize = QSizeF(),
int  unit = FrameWidget::Pixel,
double  fontsFactor = 1.0 
)

◆ exportTeX()

void MultiLayer::exportTeX ( const QString &  fname,
bool  color = true,
bool  escapeStrings = true,
bool  fontSizes = true,
const QSizeF &  customSize = QSizeF(),
int  unit = FrameWidget::Pixel,
double  fontsFactor = 1.0 
)

◆ exportToFile()

void MultiLayer::exportToFile ( const QString &  fileName)

◆ exportVector() [1/2]

void MultiLayer::exportVector ( const QString &  fileName,
int  res = 0,
bool  color = true,
const QSizeF &  customSize = QSizeF (),
int  unit = FrameWidget::Pixel,
double  fontsFactor = 1.0 
)

◆ exportVector() [2/2]

void MultiLayer::exportVector ( QPrinter *  printer,
int  res = 0,
bool  color = true,
const QSizeF &  customSize = QSizeF (),
int  unit = FrameWidget::Pixel,
double  fontsFactor = 1.0 
)

◆ findBestLayout()

void MultiLayer::findBestLayout ( int &  rows,
int &  cols 
)

References graphsList.

Referenced by activeLayer(), and arrangeLayers().

◆ getCols()

int MultiLayer::getCols ( )
inline

◆ getRows()

int MultiLayer::getRows ( )
inline

◆ hasCommonAxes()

bool MultiLayer::hasCommonAxes ( )
inline

References d_common_axes_layout.

Referenced by copy(), and LayerDialog::setMultiLayer().

◆ hasLinkedXLayerAxes()

bool MultiLayer::hasLinkedXLayerAxes ( )
inline

◆ hasSelectedLayers()

bool MultiLayer::hasSelectedLayers ( )

◆ horizontalAlignement()

int MultiLayer::horizontalAlignement ( )
inline

References hor_align.

Referenced by copy(), and LayerDialog::setMultiLayer().

◆ isEmpty

bool MultiLayer::isEmpty ( )
slot

◆ isLayerSelected()

bool MultiLayer::isLayerSelected ( Graph g)

◆ isWaterfallPlot()

bool MultiLayer::isWaterfallPlot ( )
inline

◆ keyPressEvent()

void MultiLayer::keyPressEvent ( QKeyEvent *  e)
private

◆ layer()

Graph * MultiLayer::layer ( int  num)

◆ layerAt()

Graph * MultiLayer::layerAt ( const QPoint &  pos)

Returns the layer at the given position; returns 0 if there is no such layer.

References graphsList.

Referenced by activeLayer(), and ApplicationWindow::dropEvent().

◆ layerCanvasSize()

QSize MultiLayer::layerCanvasSize ( )
inline

◆ layerIndex()

int MultiLayer::layerIndex ( Graph g)
inline

◆ layersList()

QList<Graph *> MultiLayer::layersList ( )
inline

◆ leftMargin()

int MultiLayer::leftMargin ( )
inline

References left_margin.

Referenced by copy(), and LayerDialog::setMultiLayer().

◆ linkXLayerAxes()

void MultiLayer::linkXLayerAxes ( bool  link = true)

◆ modifiedPlot

void MultiLayer::modifiedPlot ( )
signal

◆ mouseReleaseEvent()

void MultiLayer::mouseReleaseEvent ( QMouseEvent *  e)
private

References d_layer_coordinates.

Referenced by waterfallFillColor().

◆ numLayers()

int MultiLayer::numLayers ( )
inline

◆ pasteMarker

void MultiLayer::pasteMarker ( )
signal

Referenced by waterfallFillColor().

◆ plotProfiles()

void MultiLayer::plotProfiles ( Matrix m)

◆ print() [1/2]

void MultiLayer::print ( )
virtual

◆ print() [2/2]

void MultiLayer::print ( QPrinter *  printer)
virtual

Reimplemented from MdiSubWindow.

References printAllLayers().

◆ printActiveLayer()

void MultiLayer::printActiveLayer ( )

References active_graph, and Graph::print().

Referenced by verticalAlignement().

◆ printAllLayers()

void MultiLayer::printAllLayers ( QPainter *  painter)

◆ printCropmarks()

void MultiLayer::printCropmarks ( bool  on)
inline

◆ printCropmarksEnabled()

bool MultiLayer::printCropmarksEnabled ( )
inline

References d_print_cropmarks.

Referenced by copy(), and PlotDialog::setMultiLayer().

◆ releaseLayer()

void MultiLayer::releaseLayer ( )
private

Referenced by waterfallFillColor().

◆ removeActiveLayer

bool MultiLayer::removeActiveLayer ( )
slot

References active_graph, and removeLayer().

Referenced by setCommonAxesLayout().

◆ removeLayer

bool MultiLayer::removeLayer ( Graph g)
slot

◆ resizeLayers()

void MultiLayer::resizeLayers ( QResizeEvent *  re)
private

◆ reverseWaterfallOrder()

void MultiLayer::reverseWaterfallOrder ( )

◆ rightMargin()

int MultiLayer::rightMargin ( )
inline

References right_margin.

Referenced by copy(), and LayerDialog::setMultiLayer().

◆ rowsSpacing()

int MultiLayer::rowsSpacing ( )
inline

References rowsSpace, and setSpacing().

Referenced by copy(), and LayerDialog::setMultiLayer().

◆ save()

void MultiLayer::save ( const QString &  fn,
const QString &  geometry,
bool  saveAsTemplate = false 
)
virtual

◆ scaleLayersOnPrint()

bool MultiLayer::scaleLayersOnPrint ( )
inline

References d_scale_on_print.

Referenced by copy(), and PlotDialog::setMultiLayer().

◆ scaleLayersOnResize()

bool MultiLayer::scaleLayersOnResize ( )
inline

◆ selectLayerCanvas()

void MultiLayer::selectLayerCanvas ( Graph g)

◆ setActiveLayer()

void MultiLayer::setActiveLayer ( Graph g)

◆ setAlignement()

void MultiLayer::setAlignement ( int  ha,
int  va 
)

◆ setAlignPolicy()

void MultiLayer::setAlignPolicy ( const AlignPolicy policy)
inline

◆ setCols()

void MultiLayer::setCols ( int  c)

◆ setCommonAxesLayout()

void MultiLayer::setCommonAxesLayout ( bool  on = true)
inline

◆ setCommonLayerAxes()

void MultiLayer::setCommonLayerAxes ( bool  verticalAxis = true,
bool  horizontalAxis = true 
)

◆ setEqualSizedLayers()

void MultiLayer::setEqualSizedLayers ( )

◆ setFonts()

void MultiLayer::setFonts ( const QFont &  titleFnt,
const QFont &  scaleFnt,
const QFont &  numbersFnt,
const QFont &  legendFnt 
)

◆ setGraphGeometry()

void MultiLayer::setGraphGeometry ( int  x,
int  y,
int  w,
int  h 
)

References active_graph, and modifiedPlot().

Referenced by activeLayer().

◆ setLayerCanvasSize()

void MultiLayer::setLayerCanvasSize ( int  w,
int  h 
)

◆ setMargins()

void MultiLayer::setMargins ( int  lm,
int  rm,
int  tm,
int  bm 
)

◆ setNumLayers()

void MultiLayer::setNumLayers ( int  n)

◆ setPointerCursor

void MultiLayer::setPointerCursor ( )
signal

◆ setRows()

void MultiLayer::setRows ( int  r)

◆ setScaleLayersOnPrint()

void MultiLayer::setScaleLayersOnPrint ( bool  on)
inline

◆ setScaleLayersOnResize()

void MultiLayer::setScaleLayersOnResize ( bool  ok)
inline

◆ setSizePolicy()

void MultiLayer::setSizePolicy ( const SizePolicy policy)
inline

◆ setSpacing()

void MultiLayer::setSpacing ( int  rgap,
int  cgap 
)

◆ setWaterfallFillColor()

void MultiLayer::setWaterfallFillColor ( const QColor &  c)

◆ setWaterfallLayout()

void MultiLayer::setWaterfallLayout ( bool  on = true)

◆ showCurvesDialog

void MultiLayer::showCurvesDialog ( )
signal

◆ showEnrichementDialog

void MultiLayer::showEnrichementDialog ( )
signal

Referenced by waterfallFillColor().

◆ showEvent()

void MultiLayer::showEvent ( QShowEvent *  e)
private

References d_layer_coordinates.

Referenced by waterfallFillColor().

◆ showLineDialog

void MultiLayer::showLineDialog ( )
signal

Referenced by connectLayer(), and waterfallFillColor().

◆ showMarkerPopupMenu

void MultiLayer::showMarkerPopupMenu ( )
signal

Referenced by connectLayer(), and waterfallFillColor().

◆ showWaterfallFillDialog()

void MultiLayer::showWaterfallFillDialog ( )

◆ showWaterfallOffsetDialog()

void MultiLayer::showWaterfallOffsetDialog ( )

◆ sizePolicy()

SizePolicy MultiLayer::sizePolicy ( )
inline

References d_size_policy.

Referenced by copy(), and LayerDialog::setMultiLayer().

◆ sizeToString()

QString MultiLayer::sizeToString ( )
virtual

Size of the widget as a string.

Reimplemented from MdiSubWindow.

References Graph::curvesList(), graphsList, Spectrogram::matrix(), MultiLayer(), Matrix::numCols(), and Matrix::numRows().

Referenced by canvasRect().

◆ stackOrderedLayersList()

QList< Graph * > MultiLayer::stackOrderedLayersList ( )

this list is sorted according to the stack order

References d_canvas.

Referenced by canvasPixmap(), draw(), exportVector(), and layersList().

◆ swapLayers()

bool MultiLayer::swapLayers ( int  src,
int  dest 
)

◆ toolBox()

QHBoxLayout* MultiLayer::toolBox ( )
inline

◆ topMargin()

int MultiLayer::topMargin ( )
inline

References top_margin.

Referenced by copy(), and LayerDialog::setMultiLayer().

◆ updateLayerAxes()

void MultiLayer::updateLayerAxes ( Graph g,
int  axis 
)

◆ updateLayersLayout()

void MultiLayer::updateLayersLayout ( Graph g)

◆ updateWaterfalls()

void MultiLayer::updateWaterfalls ( )

◆ verticalAlignement()

int MultiLayer::verticalAlignement ( )
inline

◆ waterfallFillColor()

QColor MultiLayer::waterfallFillColor ( )
inline

◆ wheelEvent()

void MultiLayer::wheelEvent ( QWheelEvent *  e)
private

References graphsList, and modifiedPlot().

Referenced by waterfallFillColor().

Member Data Documentation

◆ active_graph

Graph* MultiLayer::active_graph
private

◆ bottom_margin

int MultiLayer::bottom_margin
private

◆ buttonsList

QList<LayerButton *> MultiLayer::buttonsList
private

◆ colsSpace

int MultiLayer::colsSpace
private

◆ d_add_layer_btn

QPushButton* MultiLayer::d_add_layer_btn
private

Referenced by MultiLayer().

◆ d_align_policy

AlignPolicy MultiLayer::d_align_policy
private

◆ d_canvas

QWidget* MultiLayer::d_canvas
private

◆ d_canvas_size

QSize MultiLayer::d_canvas_size
private

Referenced by eventFilter(), and resizeLayers().

◆ d_cols

int MultiLayer::d_cols
private

Used for resizing of layers.

Referenced by addLayer(), arrangeLayers(), getCols(), save(), setCols(), setCommonLayerAxes(), and setEqualSizedLayers().

◆ d_common_axes_layout

bool MultiLayer::d_common_axes_layout
private

◆ d_is_waterfall_plot

bool MultiLayer::d_is_waterfall_plot
private

◆ d_layer_coordinates

QVector<QRectF> MultiLayer::d_layer_coordinates
private

◆ d_layers_selector

QPointer<SelectionMoveResizer> MultiLayer::d_layers_selector
private

◆ d_link_x_axes

bool MultiLayer::d_link_x_axes
private

◆ d_print_cropmarks

bool MultiLayer::d_print_cropmarks
private

◆ d_remove_layer_btn

QPushButton * MultiLayer::d_remove_layer_btn
private

Referenced by MultiLayer().

◆ d_rows

int MultiLayer::d_rows
private

◆ d_scale_layers

bool MultiLayer::d_scale_layers
private

Flag telling if layers should be rescaled on the plot window is resized by the user.

Referenced by arrangeLayers(), copy(), resizeLayers(), save(), scaleLayersOnResize(), and setScaleLayersOnResize().

◆ d_scale_on_print

bool MultiLayer::d_scale_on_print
private

◆ d_size_policy

SizePolicy MultiLayer::d_size_policy
private

◆ d_waterfall_fill_color

QColor MultiLayer::d_waterfall_fill_color
private

◆ graph_height

int MultiLayer::graph_height
private

Referenced by MultiLayer().

◆ graph_width

int MultiLayer::graph_width
private

Referenced by MultiLayer().

◆ graphsList

QList<Graph *> MultiLayer::graphsList
private

◆ hor_align

int MultiLayer::hor_align
private

◆ l_canvas_height

int MultiLayer::l_canvas_height
private

◆ l_canvas_width

int MultiLayer::l_canvas_width
private

◆ layerButtonsBox

QHBoxLayout* MultiLayer::layerButtonsBox
private

Referenced by addLayerButton(), and MultiLayer().

◆ left_margin

int MultiLayer::left_margin
private

◆ right_margin

int MultiLayer::right_margin
private

◆ rowsSpace

int MultiLayer::rowsSpace
private

◆ toolbuttonsBox

QHBoxLayout * MultiLayer::toolbuttonsBox
private

Referenced by MultiLayer(), and toolBox().

◆ top_margin

int MultiLayer::top_margin
private

◆ vert_align

int MultiLayer::vert_align
private

◆ waterfallBox

QHBoxLayout * MultiLayer::waterfallBox
private

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