|
Mantid
|
A widget to define an infinite plane. More...
#include <SampleShapeHelpers.h>
Public Member Functions | |
| CuboidDetails (QWidget *parent=nullptr) | |
| Default constructor. | |
| QString | writeXML () const override |
| Write the XML definition of a sphere. | |
| ~CuboidDetails () override | |
| Default destructor. | |
Public Member Functions inherited from MantidQt::CustomDialogs::ShapeDetails | |
| bool | getComplementFlag () const |
| Get complement flag. | |
| const QString & | getShapeID () const |
| void | setComplementFlag (bool flag) |
| Set the complement flag. | |
| ShapeDetails (QWidget *parent=nullptr) | |
| Constructor. | |
| ~ShapeDetails () override=default | |
| Constructor. | |
Private Attributes | |
| PointGroupBox * | m_left_bck_bot |
| PointGroupBox * | m_left_frt_bot |
| Corner points. | |
| PointGroupBox * | m_left_frt_top |
| PointGroupBox * | m_right_frt_bot |
Static Private Attributes | |
| static int | g_ncuboids = 0 |
| The number of objects that currently exist. | |
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) | |
| static QComboBox * | createLengthUnitsCombo () |
| Create a new length units box. | |
Protected Attributes inherited from MantidQt::CustomDialogs::ShapeDetails | |
| QString | m_idvalue |
| ID string of this object. | |
A widget to define an infinite plane.
Definition at line 353 of file SampleShapeHelpers.h.
| CuboidDetails::CuboidDetails | ( | QWidget * | parent = nullptr | ) |
Default constructor.
Update number of sphere objects and the set the ID of this one
Definition at line 612 of file SampleShapeHelpers.cpp.
References g_ncuboids, MantidQt::CustomDialogs::ShapeDetails::m_idvalue, m_left_bck_bot, m_left_frt_bot, m_left_frt_top, and m_right_frt_bot.
|
inlineoverride |
|
overridevirtual |
Write the XML definition of a sphere.
Write the XML definition.
Implements MantidQt::CustomDialogs::ShapeDetails.
Definition at line 641 of file SampleShapeHelpers.cpp.
References MantidQt::CustomDialogs::ShapeDetails::m_idvalue, m_left_bck_bot, m_left_frt_bot, m_left_frt_top, m_right_frt_bot, and MantidQt::CustomDialogs::PointGroupBox::write3DElement().
|
staticprivate |
The number of objects that currently exist.
Static counter.
Definition at line 358 of file SampleShapeHelpers.h.
Referenced by CuboidDetails(), and ~CuboidDetails().
|
private |
Definition at line 372 of file SampleShapeHelpers.h.
Referenced by CuboidDetails(), and writeXML().
|
private |
Corner points.
Definition at line 372 of file SampleShapeHelpers.h.
Referenced by CuboidDetails(), and writeXML().
|
private |
Definition at line 372 of file SampleShapeHelpers.h.
Referenced by CuboidDetails(), and writeXML().
|
private |
Definition at line 372 of file SampleShapeHelpers.h.
Referenced by CuboidDetails(), and writeXML().