Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
MantidQt::CustomDialogs::SliceOfCylinderRingDetails Class Reference

A widget to define an infinite cylinder. More...

#include <SampleShapeHelpers.h>

Inheritance diagram for MantidQt::CustomDialogs::SliceOfCylinderRingDetails:
MantidQt::CustomDialogs::ShapeDetails

Public Member Functions

 SliceOfCylinderRingDetails (QWidget *parent=nullptr)
 Default constructor. More...
 
QString writeXML () const override
 Write the XML definition of a sphere. More...
 
 ~SliceOfCylinderRingDetails () override
 Default destructor. More...
 
- Public Member Functions inherited from MantidQt::CustomDialogs::ShapeDetails
bool getComplementFlag () const
 Get complement flag. More...
 
QString getShapeID () const
 Get the id string. More...
 
void setComplementFlag (bool flag)
 Set the complement flag. More...
 
 ShapeDetails (QWidget *parent=nullptr)
 Constructor. More...
 
virtual QString writeXML () const =0
 Write out the XML definition for this shape. More...
 
 ~ShapeDetails () override=default
 Constructor. More...
 

Private Attributes

QLineEdit * m_arc_box
 
QLineEdit * m_depth_box
 
QComboBox * m_dunits
 
QComboBox * m_iunits
 
QComboBox * m_ounits
 
QLineEdit * m_rinner_box
 Line edits to enter values. More...
 
QLineEdit * m_router_box
 

Static Private Attributes

static int g_ncylrings = 0
 The number of objects that currently exist. More...
 

Additional Inherited Members

- Public Types inherited from MantidQt::CustomDialogs::ShapeDetails
enum  Unit { millimetre = 0 , centimetre = 1 , metre = 2 }
 
- Static Public Member Functions inherited from MantidQt::CustomDialogs::ShapeDetails
static QString convertToMetres (const QString &value, Unit start_unit)
 Convert a string value from the given unit to metres (static) More...
 
static QComboBox * createLengthUnitsCombo ()
 Create a new length units box. More...
 
- Protected Attributes inherited from MantidQt::CustomDialogs::ShapeDetails
QString m_idvalue
 ID string of this object. More...
 

Detailed Description

A widget to define an infinite cylinder.

Definition at line 246 of file SampleShapeHelpers.h.

Constructor & Destructor Documentation

◆ SliceOfCylinderRingDetails()

SliceOfCylinderRingDetails::SliceOfCylinderRingDetails ( QWidget *  parent = nullptr)

Default constructor.

Update number of sphere objects and the set the ID of this one

Definition at line 377 of file SampleShapeHelpers.cpp.

References MantidQt::CustomDialogs::ShapeDetails::createLengthUnitsCombo(), g_ncylrings, m_arc_box, m_depth_box, m_dunits, MantidQt::CustomDialogs::ShapeDetails::m_idvalue, m_iunits, m_ounits, m_rinner_box, and m_router_box.

◆ ~SliceOfCylinderRingDetails()

MantidQt::CustomDialogs::SliceOfCylinderRingDetails::~SliceOfCylinderRingDetails ( )
inlineoverride

Default destructor.

Definition at line 258 of file SampleShapeHelpers.h.

References g_ncylrings.

Member Function Documentation

◆ writeXML()

QString SliceOfCylinderRingDetails::writeXML ( ) const
overridevirtual

Member Data Documentation

◆ g_ncylrings

int SliceOfCylinderRingDetails::g_ncylrings = 0
staticprivate

The number of objects that currently exist.

Static counter.

Definition at line 251 of file SampleShapeHelpers.h.

Referenced by SliceOfCylinderRingDetails(), and ~SliceOfCylinderRingDetails().

◆ m_arc_box

QLineEdit * MantidQt::CustomDialogs::SliceOfCylinderRingDetails::m_arc_box
private

Definition at line 265 of file SampleShapeHelpers.h.

Referenced by SliceOfCylinderRingDetails(), and writeXML().

◆ m_depth_box

QLineEdit * MantidQt::CustomDialogs::SliceOfCylinderRingDetails::m_depth_box
private

Definition at line 265 of file SampleShapeHelpers.h.

Referenced by SliceOfCylinderRingDetails(), and writeXML().

◆ m_dunits

QComboBox * MantidQt::CustomDialogs::SliceOfCylinderRingDetails::m_dunits
private

Definition at line 267 of file SampleShapeHelpers.h.

Referenced by SliceOfCylinderRingDetails(), and writeXML().

◆ m_iunits

QComboBox* MantidQt::CustomDialogs::SliceOfCylinderRingDetails::m_iunits
private

Definition at line 267 of file SampleShapeHelpers.h.

Referenced by SliceOfCylinderRingDetails(), and writeXML().

◆ m_ounits

QComboBox * MantidQt::CustomDialogs::SliceOfCylinderRingDetails::m_ounits
private

Definition at line 267 of file SampleShapeHelpers.h.

Referenced by SliceOfCylinderRingDetails(), and writeXML().

◆ m_rinner_box

QLineEdit* MantidQt::CustomDialogs::SliceOfCylinderRingDetails::m_rinner_box
private

Line edits to enter values.

Definition at line 265 of file SampleShapeHelpers.h.

Referenced by SliceOfCylinderRingDetails(), and writeXML().

◆ m_router_box

QLineEdit * MantidQt::CustomDialogs::SliceOfCylinderRingDetails::m_router_box
private

Definition at line 265 of file SampleShapeHelpers.h.

Referenced by SliceOfCylinderRingDetails(), and writeXML().


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