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

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

#include <SampleShapeHelpers.h>

Inheritance diagram for MantidQt::CustomDialogs::InfinitePlaneDetails:
MantidQt::CustomDialogs::ShapeDetails

Public Member Functions

 InfinitePlaneDetails (QWidget *parent=nullptr)
 Default constructor. More...
 
QString writeXML () const override
 Write the XML definition of a sphere. More...
 
 ~InfinitePlaneDetails () 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_normal
 
PointGroupBoxm_plane
 Centre and axis point boxes. More...
 

Static Private Attributes

static int g_ninfplanes = 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 plane.

Definition at line 329 of file SampleShapeHelpers.h.

Constructor & Destructor Documentation

◆ InfinitePlaneDetails()

InfinitePlaneDetails::InfinitePlaneDetails ( QWidget *  parent = nullptr)

Default constructor.

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

Definition at line 577 of file SampleShapeHelpers.cpp.

References g_ninfplanes, MantidQt::CustomDialogs::ShapeDetails::m_idvalue, m_normal, and m_plane.

◆ ~InfinitePlaneDetails()

MantidQt::CustomDialogs::InfinitePlaneDetails::~InfinitePlaneDetails ( )
inlineoverride

Default destructor.

Definition at line 341 of file SampleShapeHelpers.h.

References g_ninfplanes.

Member Function Documentation

◆ writeXML()

QString InfinitePlaneDetails::writeXML ( ) const
overridevirtual

Write the XML definition of a sphere.

Write the XML definition.

Implements MantidQt::CustomDialogs::ShapeDetails.

Definition at line 598 of file SampleShapeHelpers.cpp.

References MantidQt::CustomDialogs::ShapeDetails::m_idvalue, m_normal, m_plane, and MantidQt::CustomDialogs::PointGroupBox::write3DElement().

Member Data Documentation

◆ g_ninfplanes

int InfinitePlaneDetails::g_ninfplanes = 0
staticprivate

The number of objects that currently exist.

Static counter.

Definition at line 334 of file SampleShapeHelpers.h.

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

◆ m_normal

PointGroupBox * MantidQt::CustomDialogs::InfinitePlaneDetails::m_normal
private

Definition at line 348 of file SampleShapeHelpers.h.

Referenced by InfinitePlaneDetails(), and writeXML().

◆ m_plane

PointGroupBox* MantidQt::CustomDialogs::InfinitePlaneDetails::m_plane
private

Centre and axis point boxes.

Definition at line 348 of file SampleShapeHelpers.h.

Referenced by InfinitePlaneDetails(), and writeXML().


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