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

SlitCalculator : A calculator for Reflectometry instrument slits. More...

#include <SlitCalculator.h>

Inheritance diagram for MantidQt::MantidWidgets::SlitCalculator:
MantidQt::MantidWidgets::ISlitCalculator

Public Member Functions

void processInstrumentHasBeenChanged () override
 
void setCurrentInstrumentName (const std::string &instrumentName) override
 
void show () override
 
 SlitCalculator (QWidget *parent)
 
 ~SlitCalculator () override
 
- Public Member Functions inherited from MantidQt::MantidWidgets::ISlitCalculator
virtual void processInstrumentHasBeenChanged ()=0
 
virtual void setCurrentInstrumentName (const std::string &instrumentName)=0
 
virtual void show ()=0
 
virtual ~ISlitCalculator ()=default
 

Protected Attributes

Ui::SlitCalculator ui
 

Private Slots

void on_recalculate_triggered ()
 

Private Member Functions

std::string getCurrentInstrumentName ()
 
Mantid::Geometry::Instrument_const_sptr getInstrument ()
 
void setInstrument (const std::string &instrumentName)
 
void setupSlitCalculatorWithInstrumentValues (const Mantid::Geometry::Instrument_const_sptr &)
 

Private Attributes

std::string currentInstrumentName
 
Mantid::Geometry::Instrument_const_sptr instrument
 

Detailed Description

SlitCalculator : A calculator for Reflectometry instrument slits.

Definition at line 23 of file SlitCalculator.h.

Constructor & Destructor Documentation

◆ SlitCalculator()

MantidQt::MantidWidgets::SlitCalculator::SlitCalculator ( QWidget *  parent)

◆ ~SlitCalculator()

MantidQt::MantidWidgets::SlitCalculator::~SlitCalculator ( )
overridedefault

Member Function Documentation

◆ getCurrentInstrumentName()

std::string MantidQt::MantidWidgets::SlitCalculator::getCurrentInstrumentName ( )
private

Definition at line 88 of file SlitCalculator.cpp.

References currentInstrumentName.

◆ getInstrument()

Mantid::Geometry::Instrument_const_sptr MantidQt::MantidWidgets::SlitCalculator::getInstrument ( )
private

Definition at line 84 of file SlitCalculator.cpp.

References instrument.

Referenced by on_recalculate_triggered().

◆ on_recalculate_triggered

void MantidQt::MantidWidgets::SlitCalculator::on_recalculate_triggered ( )
privateslot

◆ processInstrumentHasBeenChanged()

void MantidQt::MantidWidgets::SlitCalculator::processInstrumentHasBeenChanged ( )
overridevirtual

◆ setCurrentInstrumentName()

void MantidQt::MantidWidgets::SlitCalculator::setCurrentInstrumentName ( const std::string &  instrumentName)
overridevirtual

Implements MantidQt::MantidWidgets::ISlitCalculator.

Definition at line 85 of file SlitCalculator.cpp.

References currentInstrumentName.

◆ setInstrument()

void MantidQt::MantidWidgets::SlitCalculator::setInstrument ( const std::string &  instrumentName)
private

◆ setupSlitCalculatorWithInstrumentValues()

void MantidQt::MantidWidgets::SlitCalculator::setupSlitCalculatorWithInstrumentValues ( const Mantid::Geometry::Instrument_const_sptr instrument)
private

Definition at line 60 of file SlitCalculator.cpp.

References instrument, and ui.

Referenced by setInstrument().

◆ show()

void MantidQt::MantidWidgets::SlitCalculator::show ( )
overridevirtual

Implements MantidQt::MantidWidgets::ISlitCalculator.

Definition at line 58 of file SlitCalculator.cpp.

Member Data Documentation

◆ currentInstrumentName

std::string MantidQt::MantidWidgets::SlitCalculator::currentInstrumentName
private

◆ instrument

Mantid::Geometry::Instrument_const_sptr MantidQt::MantidWidgets::SlitCalculator::instrument
private

◆ ui

Ui::SlitCalculator MantidQt::MantidWidgets::SlitCalculator::ui
protected

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