Mantid
Loading...
Searching...
No Matches
Public Slots | Public Member Functions | Private Member Functions | List of all members
MantidQt::MantidWidgets::MantidTreeModel Class Reference

#include <MantidTreeModel.h>

Inheritance diagram for MantidQt::MantidWidgets::MantidTreeModel:
MantidQt::MantidWidgets::MantidDisplayBase

Public Slots

Table * createDetectorTable (const QString &wsName, const std::vector< int > &indices, bool include_data=false) override
 
MantidQt::MantidWidgets::MantidWSIndexDialogcreateWorkspaceIndexDialog (int flags, const QStringList &wsNames, bool showWaterfall, bool showPlotAll, bool showTiledOpt, bool isAdvanced=false) override
 
void disableSaveNexus () override
 
void drawColorFillPlots (const QStringList &wsNames, GraphOptions::CurveType curveType=GraphOptions::ColorMap) override
 
void enableSaveNexus (const QString &wsName) override
 
void executeAlgorithm (Mantid::API::IAlgorithm_sptr alg) override
 
void importBoxDataTable () override
 
MantidMatrix * importMatrixWorkspace (const Mantid::API::MatrixWorkspace_sptr workspace, int lower=-1, int upper=-1, bool showDlg=true) override
 
void importTransposed () override
 
void importWorkspace () override
 
void importWorkspace (const QString &wsName, bool showDlg=true, bool makeVisible=true) override
 
MultiLayer * plot1D (const QMultiMap< QString, std::set< int > > &toPlot, bool spectrumPlot, MantidQt::DistributionFlag distr=MantidQt::DistributionDefault, bool errs=false, MultiLayer *plotWindow=nullptr, bool clearWindow=false, bool waterfallPlot=false, const QString &log="", const std::set< double > &customLogValues=std::set< double >()) override
 
void plotContour (bool accepted, int plotIndex, const QString &axisName, const QString &logName, const std::set< double > &customLogValues, const QList< QString > &workspaceNames) override
 
void plotSurface (bool accepted, int plotIndex, const QString &axisName, const QString &logName, const std::set< double > &customLogValues, const QList< QString > &workspaceNames) override
 
void renameWorkspace (QStringList=QStringList()) override
 
void showAlgorithmDialog (const QString &algName, int version=-1) override
 
void showAlgorithmDialog (const QString &algName, QHash< QString, QString > paramList, Mantid::API::AlgorithmObserver *obs=nullptr, int version=-1) override
 
void showAlgorithmHistory () override
 
void showCritical (const QString &) override
 
void showListData () override
 
void showLogFileWindow () override
 
void showMantidInstrumentSelected () override
 
void showMDPlot () override
 
void showSampleMaterialWindow () override
 
void showSliceViewer () override
 
void showSpectrumViewer () override
 
void updateProject () override
 

Public Member Functions

Mantid::API::IAlgorithm_sptr createAlgorithm (const QString &algName, int version=-1) override
 
MantidQt::API::AlgorithmDialogcreateAlgorithmDialog (const Mantid::API::IAlgorithm_sptr &alg)
 This creates an algorithm dialog (the default property entry thingie). More...
 
void deleteWorkspaces (const QStringList &wsNames=QStringList()) override
 
bool executeAlgorithmAsync (Mantid::API::IAlgorithm_sptr alg, const bool wait=false) override
 
QWidget * getParent () override
 
Mantid::API::Workspace_const_sptr getWorkspace (const QString &workspaceName) override
 
 MantidTreeModel ()
 DefaultConstructor. More...
 
MultiLayer * plotSubplots (const QMultiMap< QString, std::set< int > > &toPlot, MantidQt::DistributionFlag distr=MantidQt::DistributionDefault, bool errs=false, MultiLayer *plotWindow=nullptr) override
 
void updateRecentFilesList (const QString &fname) override
 
- Public Member Functions inherited from MantidQt::MantidWidgets::MantidDisplayBase
virtual Mantid::API::IAlgorithm_sptr createAlgorithm (const QString &algName, int version=-1)=0
 
virtual Table * createDetectorTable (const QString &wsName, const std::vector< int > &indices, bool include_data=false)=0
 
virtual MantidWSIndexDialogcreateWorkspaceIndexDialog (int flags, const QStringList &wsNames, bool showWaterfall, bool showPlotAll, bool showTiledOpt, bool isAdvanced=false)=0
 
virtual void deleteWorkspaces (const QStringList &wsNames=QStringList())=0
 
virtual void disableSaveNexus ()=0
 
virtual void drawColorFillPlots (const QStringList &wsNames, GraphOptions::CurveType curveType=GraphOptions::ColorMap)=0
 
virtual void enableSaveNexus (const QString &wsName)=0
 
virtual void executeAlgorithm (Mantid::API::IAlgorithm_sptr alg)=0
 
virtual bool executeAlgorithmAsync (Mantid::API::IAlgorithm_sptr alg, const bool wait=false)=0
 
virtual QWidget * getParent ()=0
 
virtual Mantid::API::Workspace_const_sptr getWorkspace (const QString &workspaceName)=0
 
virtual void importBoxDataTable ()=0
 
virtual MantidMatrix * importMatrixWorkspace (const Mantid::API::MatrixWorkspace_sptr workspace, int lower=-1, int upper=-1, bool showDlg=true)=0
 
virtual void importTransposed ()=0
 
virtual void importWorkspace ()=0
 
virtual void importWorkspace (const QString &wsName, bool showDlg=true, bool makeVisible=true)=0
 
virtual MultiLayer * plot1D (const QMultiMap< QString, std::set< int > > &toPlot, bool spectrumPlot, MantidQt::DistributionFlag distr=MantidQt::DistributionDefault, bool errs=false, MultiLayer *plotWindow=nullptr, bool clearWindow=false, bool waterfallPlot=false, const QString &log="", const std::set< double > &customLogValues=std::set< double >())=0
 
virtual void plotContour (bool accepted, int plotIndex, const QString &axisName, const QString &logName, const std::set< double > &customLogValues, const QList< QString > &workspaceNames)=0
 
virtual MultiLayer * plotSubplots (const QMultiMap< QString, std::set< int > > &toPlot, MantidQt::DistributionFlag distr=MantidQt::DistributionDefault, bool errs=false, MultiLayer *plotWindow=nullptr)=0
 
virtual void plotSurface (bool accepted, int plotIndex, const QString &axisName, const QString &logName, const std::set< double > &customLogValues, const QList< QString > &workspaceNames)=0
 
virtual void renameWorkspace (QStringList=QStringList())=0
 
virtual void showAlgorithmDialog (const QString &algName, int version=-1)=0
 
virtual void showAlgorithmDialog (const QString &algName, QHash< QString, QString > paramList, Mantid::API::AlgorithmObserver *obs=nullptr, int version=-1)=0
 
virtual void showAlgorithmHistory ()=0
 
virtual void showCritical (const QString &)
 
virtual void showListData ()=0
 
virtual void showLogFileWindow ()=0
 
virtual void showMantidInstrumentSelected ()=0
 
virtual void showMDPlot ()=0
 
virtual void showSampleMaterialWindow ()=0
 
virtual void showSliceViewer ()=0
 
virtual void showSpectrumViewer ()=0
 
virtual void updateProject ()=0
 
virtual void updateRecentFilesList (const QString &fname)=0
 
virtual ~MantidDisplayBase ()=default
 

Private Member Functions

 MantidTreeModel (const MantidTreeModel &)
 
MantidTreeModeloperator= (const MantidTreeModel &)
 

Detailed Description

Author
Elliot Oram
Date
18-12-2017
Version
1.0

Definition at line 35 of file MantidTreeModel.h.

Constructor & Destructor Documentation

◆ MantidTreeModel() [1/2]

MantidTreeModel::MantidTreeModel ( )
default

DefaultConstructor.

References Mantid::API::renameWorkspace().

◆ MantidTreeModel() [2/2]

MantidQt::MantidWidgets::MantidTreeModel::MantidTreeModel ( const MantidTreeModel )
private

Member Function Documentation

◆ createAlgorithm()

Mantid::API::IAlgorithm_sptr MantidTreeModel::createAlgorithm ( const QString &  algName,
int  version = -1 
)
overridevirtual

◆ createAlgorithmDialog()

MantidQt::API::AlgorithmDialog * MantidTreeModel::createAlgorithmDialog ( const Mantid::API::IAlgorithm_sptr alg)

This creates an algorithm dialog (the default property entry thingie).

Helper function not required by interface

Definition at line 116 of file MantidTreeModel.cpp.

References MantidQt::API::InterfaceManager::createDialog().

Referenced by showAlgorithmDialog().

◆ createDetectorTable

Table * MantidTreeModel::createDetectorTable ( const QString &  wsName,
const std::vector< int > &  indices,
bool  include_data = false 
)
overrideslot

Definition at line 222 of file MantidTreeModel.cpp.

◆ createWorkspaceIndexDialog

MantidQt::MantidWidgets::MantidWSIndexDialog * MantidTreeModel::createWorkspaceIndexDialog ( int  flags,
const QStringList &  wsNames,
bool  showWaterfall,
bool  showPlotAll,
bool  showTiledOpt,
bool  isAdvanced = false 
)
overrideslot

Definition at line 281 of file MantidTreeModel.cpp.

◆ deleteWorkspaces()

void MantidTreeModel::deleteWorkspaces ( const QStringList &  wsNames = QStringList())
overridevirtual

◆ disableSaveNexus

void MantidTreeModel::disableSaveNexus ( )
overrideslot

Definition at line 189 of file MantidTreeModel.cpp.

◆ drawColorFillPlots

void MantidTreeModel::drawColorFillPlots ( const QStringList &  wsNames,
GraphOptions::CurveType  curveType = GraphOptions::ColorMap 
)
overrideslot

Definition at line 245 of file MantidTreeModel.cpp.

◆ enableSaveNexus

void MantidTreeModel::enableSaveNexus ( const QString &  wsName)
overrideslot

Definition at line 186 of file MantidTreeModel.cpp.

◆ executeAlgorithm

void MantidTreeModel::executeAlgorithm ( Mantid::API::IAlgorithm_sptr  alg)
overrideslot

Definition at line 142 of file MantidTreeModel.cpp.

References executeAlgorithmAsync().

◆ executeAlgorithmAsync()

bool MantidTreeModel::executeAlgorithmAsync ( Mantid::API::IAlgorithm_sptr  alg,
const bool  wait = false 
)
overridevirtual

◆ getParent()

QWidget * MantidTreeModel::getParent ( )
overridevirtual

Implements MantidQt::MantidWidgets::MantidDisplayBase.

Definition at line 196 of file MantidTreeModel.cpp.

◆ getWorkspace()

Workspace_const_sptr MantidTreeModel::getWorkspace ( const QString &  workspaceName)
overridevirtual

◆ importBoxDataTable

void MantidTreeModel::importBoxDataTable ( )
overrideslot

Definition at line 200 of file MantidTreeModel.cpp.

◆ importMatrixWorkspace

MantidMatrix * MantidTreeModel::importMatrixWorkspace ( const Mantid::API::MatrixWorkspace_sptr  workspace,
int  lower = -1,
int  upper = -1,
bool  showDlg = true 
)
overrideslot

Definition at line 207 of file MantidTreeModel.cpp.

References lower, upper, and workspace.

◆ importTransposed

void MantidTreeModel::importTransposed ( )
overrideslot

Definition at line 202 of file MantidTreeModel.cpp.

◆ importWorkspace [1/2]

void MantidTreeModel::importWorkspace ( )
overrideslot

Definition at line 205 of file MantidTreeModel.cpp.

◆ importWorkspace [2/2]

void MantidTreeModel::importWorkspace ( const QString &  wsName,
bool  showDlg = true,
bool  makeVisible = true 
)
overrideslot

Definition at line 216 of file MantidTreeModel.cpp.

◆ operator=()

MantidTreeModel & MantidQt::MantidWidgets::MantidTreeModel::operator= ( const MantidTreeModel )
private

◆ plot1D

MultiLayer * MantidTreeModel::plot1D ( const QMultiMap< QString, std::set< int > > &  toPlot,
bool  spectrumPlot,
MantidQt::DistributionFlag  distr = MantidQt::DistributionDefault,
bool  errs = false,
MultiLayer *  plotWindow = nullptr,
bool  clearWindow = false,
bool  waterfallPlot = false,
const QString &  log = "",
const std::set< double > &  customLogValues = std::set<double>() 
)
overrideslot

Definition at line 229 of file MantidTreeModel.cpp.

◆ plotContour

void MantidTreeModel::plotContour ( bool  accepted,
int  plotIndex,
const QString &  axisName,
const QString &  logName,
const std::set< double > &  customLogValues,
const QList< QString > &  workspaceNames 
)
overrideslot

Definition at line 270 of file MantidTreeModel.cpp.

◆ plotSubplots()

MultiLayer * MantidTreeModel::plotSubplots ( const QMultiMap< QString, std::set< int > > &  toPlot,
MantidQt::DistributionFlag  distr = MantidQt::DistributionDefault,
bool  errs = false,
MultiLayer *  plotWindow = nullptr 
)
overridevirtual

Implements MantidQt::MantidWidgets::MantidDisplayBase.

Definition at line 250 of file MantidTreeModel.cpp.

◆ plotSurface

void MantidTreeModel::plotSurface ( bool  accepted,
int  plotIndex,
const QString &  axisName,
const QString &  logName,
const std::set< double > &  customLogValues,
const QList< QString > &  workspaceNames 
)
overrideslot

Definition at line 260 of file MantidTreeModel.cpp.

◆ renameWorkspace

void MantidTreeModel::renameWorkspace ( QStringList  wsName = QStringList())
overrideslot

Definition at line 44 of file MantidTreeModel.cpp.

References showAlgorithmDialog().

◆ showAlgorithmDialog [1/2]

void MantidTreeModel::showAlgorithmDialog ( const QString &  algName,
int  version = -1 
)
overrideslot

◆ showAlgorithmDialog [2/2]

void MantidTreeModel::showAlgorithmDialog ( const QString &  algName,
QHash< QString, QString >  paramList,
Mantid::API::AlgorithmObserver obs = nullptr,
int  version = -1 
)
overrideslot

◆ showAlgorithmHistory

void MantidTreeModel::showAlgorithmHistory ( )
overrideslot

Definition at line 194 of file MantidTreeModel.cpp.

◆ showCritical

void MantidTreeModel::showCritical ( const QString &  msg)
overrideslot

Definition at line 198 of file MantidTreeModel.cpp.

◆ showListData

void MantidTreeModel::showListData ( )
overrideslot

Definition at line 201 of file MantidTreeModel.cpp.

◆ showLogFileWindow

void MantidTreeModel::showLogFileWindow ( )
overrideslot

Definition at line 203 of file MantidTreeModel.cpp.

◆ showMantidInstrumentSelected

void MantidTreeModel::showMantidInstrumentSelected ( )
overrideslot

Definition at line 199 of file MantidTreeModel.cpp.

◆ showMDPlot

void MantidTreeModel::showMDPlot ( )
overrideslot

Definition at line 195 of file MantidTreeModel.cpp.

◆ showSampleMaterialWindow

void MantidTreeModel::showSampleMaterialWindow ( )
overrideslot

Definition at line 204 of file MantidTreeModel.cpp.

◆ showSliceViewer

void MantidTreeModel::showSliceViewer ( )
overrideslot

Definition at line 193 of file MantidTreeModel.cpp.

◆ showSpectrumViewer

void MantidTreeModel::showSpectrumViewer ( )
overrideslot

Definition at line 192 of file MantidTreeModel.cpp.

◆ updateProject

void MantidTreeModel::updateProject ( )
overrideslot

Definition at line 197 of file MantidTreeModel.cpp.

◆ updateRecentFilesList()

void MantidTreeModel::updateRecentFilesList ( const QString &  fname)
overridevirtual

Implements MantidQt::MantidWidgets::MantidDisplayBase.

Definition at line 183 of file MantidTreeModel.cpp.


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