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

A widget to define a hexahedron. More...

#include <SampleShapeHelpers.h>

Inheritance diagram for MantidQt::CustomDialogs::HexahedronDetails:
MantidQt::CustomDialogs::ShapeDetails

Public Member Functions

 HexahedronDetails (QWidget *parent=nullptr)
 Default constructor. More...
 
QString writeXML () const override
 Write the XML definition of a sphere. More...
 
 ~HexahedronDetails () 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

PointGroupBoxm_left_bck_bot
 Corner points. More...
 
PointGroupBoxm_left_bck_top
 
PointGroupBoxm_left_frt_bot
 
PointGroupBoxm_left_frt_top
 
PointGroupBoxm_right_bck_bot
 
PointGroupBoxm_right_bck_top
 
PointGroupBoxm_right_frt_bot
 
PointGroupBoxm_right_frt_top
 

Static Private Attributes

static int g_nhexahedrons = 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 a hexahedron.

Definition at line 379 of file SampleShapeHelpers.h.

Constructor & Destructor Documentation

◆ HexahedronDetails()

HexahedronDetails::HexahedronDetails ( QWidget *  parent = nullptr)

Default constructor.

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

Definition at line 656 of file SampleShapeHelpers.cpp.

References g_nhexahedrons, MantidQt::CustomDialogs::ShapeDetails::m_idvalue, m_left_bck_bot, m_left_bck_top, m_left_frt_bot, m_left_frt_top, m_right_bck_bot, m_right_bck_top, m_right_frt_bot, and m_right_frt_top.

◆ ~HexahedronDetails()

MantidQt::CustomDialogs::HexahedronDetails::~HexahedronDetails ( )
inlineoverride

Default destructor.

Definition at line 391 of file SampleShapeHelpers.h.

References g_nhexahedrons.

Member Function Documentation

◆ writeXML()

QString HexahedronDetails::writeXML ( ) const
overridevirtual

Member Data Documentation

◆ g_nhexahedrons

int HexahedronDetails::g_nhexahedrons = 0
staticprivate

The number of objects that currently exist.

Static counter.

Definition at line 384 of file SampleShapeHelpers.h.

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

◆ m_left_bck_bot

PointGroupBox* MantidQt::CustomDialogs::HexahedronDetails::m_left_bck_bot
private

Corner points.

Definition at line 398 of file SampleShapeHelpers.h.

Referenced by HexahedronDetails(), and writeXML().

◆ m_left_bck_top

PointGroupBox * MantidQt::CustomDialogs::HexahedronDetails::m_left_bck_top
private

Definition at line 398 of file SampleShapeHelpers.h.

Referenced by HexahedronDetails(), and writeXML().

◆ m_left_frt_bot

PointGroupBox * MantidQt::CustomDialogs::HexahedronDetails::m_left_frt_bot
private

Definition at line 398 of file SampleShapeHelpers.h.

Referenced by HexahedronDetails(), and writeXML().

◆ m_left_frt_top

PointGroupBox * MantidQt::CustomDialogs::HexahedronDetails::m_left_frt_top
private

Definition at line 398 of file SampleShapeHelpers.h.

Referenced by HexahedronDetails(), and writeXML().

◆ m_right_bck_bot

PointGroupBox * MantidQt::CustomDialogs::HexahedronDetails::m_right_bck_bot
private

Definition at line 398 of file SampleShapeHelpers.h.

Referenced by HexahedronDetails(), and writeXML().

◆ m_right_bck_top

PointGroupBox * MantidQt::CustomDialogs::HexahedronDetails::m_right_bck_top
private

Definition at line 399 of file SampleShapeHelpers.h.

Referenced by HexahedronDetails(), and writeXML().

◆ m_right_frt_bot

PointGroupBox * MantidQt::CustomDialogs::HexahedronDetails::m_right_frt_bot
private

Definition at line 398 of file SampleShapeHelpers.h.

Referenced by HexahedronDetails(), and writeXML().

◆ m_right_frt_top

PointGroupBox * MantidQt::CustomDialogs::HexahedronDetails::m_right_frt_top
private

Definition at line 399 of file SampleShapeHelpers.h.

Referenced by HexahedronDetails(), and writeXML().


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