Mantid
|
A widget to define a cone. More...
#include <SampleShapeHelpers.h>
Public Member Functions | |
ConeDetails (QWidget *parent=nullptr) | |
Default constructor. More... | |
QString | writeXML () const override |
Write the XML definition of a sphere. More... | |
~ConeDetails () 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_angle_box |
PointGroupBox * | m_axis |
QLineEdit * | m_height_box |
Line edits to enter values. More... | |
QComboBox * | m_hunits |
PointGroupBox * | m_tippoint |
Centre and axis point boxes. More... | |
Static Private Attributes | |
static int | g_ncones = 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... | |
A widget to define a cone.
Definition at line 273 of file SampleShapeHelpers.h.
ConeDetails::ConeDetails | ( | QWidget * | parent = nullptr | ) |
Default constructor.
Update number of sphere objects and the set the ID of this one
Definition at line 462 of file SampleShapeHelpers.cpp.
References MantidQt::CustomDialogs::ShapeDetails::createLengthUnitsCombo(), g_ncones, m_angle_box, m_axis, m_height_box, m_hunits, MantidQt::CustomDialogs::ShapeDetails::m_idvalue, and m_tippoint.
|
inlineoverride |
|
overridevirtual |
Write the XML definition of a sphere.
Write the XML definition.
Implements MantidQt::CustomDialogs::ShapeDetails.
Definition at line 499 of file SampleShapeHelpers.cpp.
References MantidQt::CustomDialogs::ShapeDetails::convertToMetres(), m_angle_box, m_axis, m_height_box, m_hunits, MantidQt::CustomDialogs::ShapeDetails::m_idvalue, m_tippoint, and MantidQt::CustomDialogs::PointGroupBox::write3DElement().
|
staticprivate |
The number of objects that currently exist.
Static counter.
Definition at line 278 of file SampleShapeHelpers.h.
Referenced by ConeDetails(), and ~ConeDetails().
|
private |
Definition at line 292 of file SampleShapeHelpers.h.
Referenced by ConeDetails(), and writeXML().
|
private |
Definition at line 296 of file SampleShapeHelpers.h.
Referenced by ConeDetails(), and writeXML().
|
private |
Line edits to enter values.
Definition at line 292 of file SampleShapeHelpers.h.
Referenced by ConeDetails(), and writeXML().
|
private |
Definition at line 294 of file SampleShapeHelpers.h.
Referenced by ConeDetails(), and writeXML().
|
private |
Centre and axis point boxes.
Definition at line 296 of file SampleShapeHelpers.h.
Referenced by ConeDetails(), and writeXML().