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

Public Member Functions

 DomRect ()
 
 ~DomRect ()
 
void clearElementHeight ()
 
void clearElementWidth ()
 
void clearElementX ()
 
void clearElementY ()
 
int elementHeight () const
 
int elementWidth () const
 
int elementX () const
 
int elementY () const
 
bool hasElementHeight () const
 
bool hasElementWidth () const
 
bool hasElementX () const
 
bool hasElementY () const
 
void read (QXmlStreamReader &reader)
 
void setElementHeight (int a)
 
void setElementWidth (int a)
 
void setElementX (int a)
 
void setElementY (int 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

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

Private Attributes

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

Detailed Description

Definition at line 2392 of file ui4_p.h.

Member Enumeration Documentation

◆ Child

enum DomRect::Child
private
Enumerator
Width 
Height 

Definition at line 2435 of file ui4_p.h.

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

Constructor & Destructor Documentation

◆ DomRect() [1/2]

DomRect::DomRect ( )

◆ ~DomRect()

DomRect::~DomRect ( )

◆ DomRect() [2/2]

DomRect::DomRect ( const DomRect other)
private

Member Function Documentation

◆ clear()

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

◆ clearElementHeight()

void DomRect::clearElementHeight ( )

◆ clearElementWidth()

void DomRect::clearElementWidth ( )

◆ clearElementX()

void DomRect::clearElementX ( )

◆ clearElementY()

void DomRect::clearElementY ( )

◆ elementHeight()

int DomRect::elementHeight ( ) const
inline

Definition at line 2419 of file ui4_p.h.

2419 { return m_height; }
int m_height
Definition: ui4_p.h:2434

◆ elementWidth()

int DomRect::elementWidth ( ) const
inline

Definition at line 2414 of file ui4_p.h.

2414 { return m_width; }
int m_width
Definition: ui4_p.h:2433

◆ elementX()

int DomRect::elementX ( ) const
inline

Definition at line 2404 of file ui4_p.h.

2404 { return m_x; }
int m_x
Definition: ui4_p.h:2431

◆ elementY()

int DomRect::elementY ( ) const
inline

Definition at line 2409 of file ui4_p.h.

2409 { return m_y; }
int m_y
Definition: ui4_p.h:2432

◆ hasElementHeight()

bool DomRect::hasElementHeight ( ) const
inline

Definition at line 2421 of file ui4_p.h.

2421 { return m_children & Height; }
uint m_children
Definition: ui4_p.h:2430

◆ hasElementWidth()

bool DomRect::hasElementWidth ( ) const
inline

Definition at line 2416 of file ui4_p.h.

2416 { return m_children & Width; }

◆ hasElementX()

bool DomRect::hasElementX ( ) const
inline

Definition at line 2406 of file ui4_p.h.

2406 { return m_children & X; }

◆ hasElementY()

bool DomRect::hasElementY ( ) const
inline

Definition at line 2411 of file ui4_p.h.

2411 { return m_children & Y; }

◆ operator=()

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

◆ read()

void DomRect::read ( QXmlStreamReader &  reader)

◆ setElementHeight()

void DomRect::setElementHeight ( int  a)

◆ setElementWidth()

void DomRect::setElementWidth ( int  a)

◆ setElementX()

void DomRect::setElementX ( int  a)

◆ setElementY()

void DomRect::setElementY ( int  a)

◆ setText()

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

Definition at line 2400 of file ui4_p.h.

2400 { m_text = s; }
QString m_text
Definition: ui4_p.h:2425

◆ text()

QString DomRect::text ( ) const
inline

Definition at line 2399 of file ui4_p.h.

2399 { return m_text; }

◆ write()

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

Member Data Documentation

◆ m_children

uint DomRect::m_children
private

Definition at line 2430 of file ui4_p.h.

◆ m_height

int DomRect::m_height
private

Definition at line 2434 of file ui4_p.h.

◆ m_text

QString DomRect::m_text
private

Definition at line 2425 of file ui4_p.h.

◆ m_width

int DomRect::m_width
private

Definition at line 2433 of file ui4_p.h.

◆ m_x

int DomRect::m_x
private

Definition at line 2431 of file ui4_p.h.

◆ m_y

int DomRect::m_y
private

Definition at line 2432 of file ui4_p.h.


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