BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
DomRectF Class Reference

Public Member Functions

 DomRectF ()
 
 ~DomRectF ()
 
void clearElementHeight ()
 
void clearElementWidth ()
 
void clearElementX ()
 
void clearElementY ()
 
double elementHeight () const
 
double elementWidth () const
 
double elementX () const
 
double elementY () const
 
bool hasElementHeight () const
 
bool hasElementWidth () const
 
bool hasElementX () const
 
bool hasElementY () const
 
void read (QXmlStreamReader &reader)
 
void setElementHeight (double a)
 
void setElementWidth (double a)
 
void setElementX (double a)
 
void setElementY (double a)
 
void setText (const QString &s)
 
QString text () const
 
void write (QXmlStreamWriter &writer, const QString &tagName="") const
 

Private Types

enum  Child { X = 1 , Y = 2 , Width = 4 , Height = 8 }
 

Private Member Functions

 DomRectF (const DomRectF &other)
 
void clear (bool clear_all=true)
 
void operator= (const DomRectF &other)
 

Private Attributes

uint m_children
 
double m_height
 
QString m_text
 
double m_width
 
double m_x
 
double m_y
 

Detailed Description

Definition at line 3070 of file ui4_p.h.

Member Enumeration Documentation

◆ Child

enum DomRectF::Child
private
Enumerator
Width 
Height 

Definition at line 3113 of file ui4_p.h.

3113 { X = 1, Y = 2, Width = 4, Height = 8 };
@ Height
Definition: ui4_p.h:3113
@ Width
Definition: ui4_p.h:3113

Constructor & Destructor Documentation

◆ DomRectF() [1/2]

DomRectF::DomRectF ( )

◆ ~DomRectF()

DomRectF::~DomRectF ( )

◆ DomRectF() [2/2]

DomRectF::DomRectF ( const DomRectF other)
private

Member Function Documentation

◆ clear()

void DomRectF::clear ( bool  clear_all = true)
private

◆ clearElementHeight()

void DomRectF::clearElementHeight ( )

◆ clearElementWidth()

void DomRectF::clearElementWidth ( )

◆ clearElementX()

void DomRectF::clearElementX ( )

◆ clearElementY()

void DomRectF::clearElementY ( )

◆ elementHeight()

double DomRectF::elementHeight ( ) const
inline

Definition at line 3097 of file ui4_p.h.

3097 { return m_height; }
double m_height
Definition: ui4_p.h:3112

◆ elementWidth()

double DomRectF::elementWidth ( ) const
inline

Definition at line 3092 of file ui4_p.h.

3092 { return m_width; }
double m_width
Definition: ui4_p.h:3111

◆ elementX()

double DomRectF::elementX ( ) const
inline

Definition at line 3082 of file ui4_p.h.

3082 { return m_x; }
double m_x
Definition: ui4_p.h:3109

◆ elementY()

double DomRectF::elementY ( ) const
inline

Definition at line 3087 of file ui4_p.h.

3087 { return m_y; }
double m_y
Definition: ui4_p.h:3110

◆ hasElementHeight()

bool DomRectF::hasElementHeight ( ) const
inline

Definition at line 3099 of file ui4_p.h.

3099 { return m_children & Height; }
uint m_children
Definition: ui4_p.h:3108

◆ hasElementWidth()

bool DomRectF::hasElementWidth ( ) const
inline

Definition at line 3094 of file ui4_p.h.

3094 { return m_children & Width; }

◆ hasElementX()

bool DomRectF::hasElementX ( ) const
inline

Definition at line 3084 of file ui4_p.h.

3084 { return m_children & X; }

◆ hasElementY()

bool DomRectF::hasElementY ( ) const
inline

Definition at line 3089 of file ui4_p.h.

3089 { return m_children & Y; }

◆ operator=()

void DomRectF::operator= ( const DomRectF other)
private

◆ read()

void DomRectF::read ( QXmlStreamReader &  reader)

◆ setElementHeight()

void DomRectF::setElementHeight ( double  a)

◆ setElementWidth()

void DomRectF::setElementWidth ( double  a)

◆ setElementX()

void DomRectF::setElementX ( double  a)

◆ setElementY()

void DomRectF::setElementY ( double  a)

◆ setText()

void DomRectF::setText ( const QString &  s)
inline

Definition at line 3078 of file ui4_p.h.

3078 { m_text = s; }
QString m_text
Definition: ui4_p.h:3103

◆ text()

QString DomRectF::text ( ) const
inline

Definition at line 3077 of file ui4_p.h.

3077 { return m_text; }

◆ write()

void DomRectF::write ( QXmlStreamWriter &  writer,
const QString &  tagName = "" 
) const

Member Data Documentation

◆ m_children

uint DomRectF::m_children
private

Definition at line 3108 of file ui4_p.h.

◆ m_height

double DomRectF::m_height
private

Definition at line 3112 of file ui4_p.h.

◆ m_text

QString DomRectF::m_text
private

Definition at line 3103 of file ui4_p.h.

◆ m_width

double DomRectF::m_width
private

Definition at line 3111 of file ui4_p.h.

◆ m_x

double DomRectF::m_x
private

Definition at line 3109 of file ui4_p.h.

◆ m_y

double DomRectF::m_y
private

Definition at line 3110 of file ui4_p.h.


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