30namespace CustomDialogs {
77 QString toString(
const QString &
left,
const QString &
right)
const;
double value
The value of the point.
A widget to define a cone.
QLineEdit * m_height_box
Line edits to enter values.
QString writeXML() const override
Write the XML definition of a sphere.
~ConeDetails() override
Default destructor.
PointGroupBox * m_tippoint
Centre and axis point boxes.
static int g_ncones
The number of objects that currently exist.
A widget to define an infinite plane.
PointGroupBox * m_left_frt_bot
Corner points.
PointGroupBox * m_left_frt_top
PointGroupBox * m_left_bck_bot
~CuboidDetails() override
Default destructor.
PointGroupBox * m_right_frt_bot
QString writeXML() const override
Write the XML definition of a sphere.
static int g_ncuboids
The number of objects that currently exist.
A widget to define a cylinder.
static int g_ncylinders
The number of objects that currently exist.
QString writeXML() const override
Write the XML definition.
QLineEdit * m_radius_box
Line edits to enter values.
PointGroupBox * m_lower_centre
Centre and axis point boxes.
~CylinderDetails() override
Default destructor.
A widget to define a hexahedron.
PointGroupBox * m_left_bck_top
PointGroupBox * m_left_frt_top
PointGroupBox * m_right_bck_top
static int g_nhexahedrons
The number of objects that currently exist.
PointGroupBox * m_left_bck_bot
Corner points.
PointGroupBox * m_right_bck_bot
~HexahedronDetails() override
Default destructor.
PointGroupBox * m_right_frt_bot
QString writeXML() const override
Write the XML definition of a sphere.
PointGroupBox * m_left_frt_bot
PointGroupBox * m_right_frt_top
A widget to define an infinite cone.
PointGroupBox * m_tippoint
Centre and axis point boxes.
QLineEdit * m_angle_box
Line edits to enter values.
~InfiniteConeDetails() override
Default destructor.
static int g_ninfcones
The number of objects that currently exist.
QString writeXML() const override
Write the XML definition of a sphere.
A widget to define an infinite cylinder.
QLineEdit * m_radius_box
Line edits to enter values.
QString writeXML() const override
Write the XML definition.
PointGroupBox * m_centre
Centre and axis point boxes.
static int g_ninfcyls
The number of objects that currently exist.
~InfiniteCylinderDetails() override
Default destructor.
A widget to define an infinite plane.
QString writeXML() const override
Write the XML definition of a sphere.
static int g_ninfplanes
The number of objects that currently exist.
~InfinitePlaneDetails() override
Default destructor.
PointGroupBox * m_plane
Centre and axis point boxes.
A custom group box for a 3D point.
QRadioButton * m_cartesian
QString write3DElement(const QString &elem_name) const
Write the element tag for a 3D point.
QRadioButton * m_spherical
The base class for the details widgets.
void setComplementFlag(bool flag)
Set the complement flag.
ShapeDetails(QWidget *parent=nullptr)
Constructor.
bool m_isComplement
Take the complement of the shape.
~ShapeDetails() override=default
Constructor.
QString getShapeID() const
Get the id string.
bool getComplementFlag() const
Get complement flag.
static QComboBox * createLengthUnitsCombo()
Create a new length units box.
virtual QString writeXML() const =0
Write out the XML definition for this shape.
static QString convertToMetres(const QString &value, Unit start_unit)
Convert a string value from the given unit to metres (static)
QString m_idvalue
ID string of this object.
A widget to define an infinite cylinder.
~SliceOfCylinderRingDetails() override
Default destructor.
QLineEdit * m_rinner_box
Line edits to enter values.
QString writeXML() const override
Write the XML definition of a sphere.
static int g_ncylrings
The number of objects that currently exist.
A widget to define a sphere.
static int g_nspheres
The number of objects that currently exist.
~SphereDetails() override
Default destructor.
QString writeXML() const override
Write the XML definition.
QComboBox * m_runits
Radius unit choice.
PointGroupBox * m_centre
Centre point group box.
QLineEdit * m_radius_box
Line edit for radius value.
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
Base instantiator to store in a map.
virtual ~BaseInstantiator()=default
Virtual destructor.
BaseInstantiator & operator=(const BaseInstantiator &)
Private assignment operator.
BaseInstantiator(const BaseInstantiator &)
Private copy constructor.
BaseInstantiator()
Default constructor.
virtual ShapeDetails * createInstance() const =0
Create an instance.
A struct describing a binary operation Note: The constructor takes an integer where 0 = intersection,...
int binaryop
The stored operation.
Operation(int op=0)
Default constructor.
A structure used for holding the type of a details widget.
ShapeDetails * createInstance() const override
Create an instance of this type.
ShapeDetailsInstantiator & operator=(const ShapeDetailsInstantiator &)
Private assignment operator.
ShapeDetailsInstantiator()
Default constructor.
ShapeDetailsInstantiator(const ShapeDetailsInstantiator &)
Private copy constructor.