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

Public Member Functions

 DomColor ()
 
 ~DomColor ()
 
int attributeAlpha () const
 
void clearAttributeAlpha ()
 
void clearElementBlue ()
 
void clearElementGreen ()
 
void clearElementRed ()
 
int elementBlue () const
 
int elementGreen () const
 
int elementRed () const
 
bool hasAttributeAlpha () const
 
bool hasElementBlue () const
 
bool hasElementGreen () const
 
bool hasElementRed () const
 
void read (QXmlStreamReader &reader)
 
void setAttributeAlpha (int a)
 
void setElementBlue (int a)
 
void setElementGreen (int a)
 
void setElementRed (int a)
 
void setText (const QString &s)
 
QString text () const
 
void write (QXmlStreamWriter &writer, const QString &tagName="") const
 

Private Types

enum  Child { Red = 1 , Green = 2 , Blue = 4 }
 

Private Member Functions

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

Private Attributes

int m_attr_alpha
 
int m_blue
 
uint m_children
 
int m_green
 
bool m_has_attr_alpha
 
int m_red
 
QString m_text
 

Detailed Description

Definition at line 1798 of file ui4_p.h.

Member Enumeration Documentation

◆ Child

enum DomColor::Child
private
Enumerator
Red 
Green 
Blue 

Definition at line 1847 of file ui4_p.h.

1847 { Red = 1, Green = 2, Blue = 4 };
@ Red
Definition: ui4_p.h:1847
@ Blue
Definition: ui4_p.h:1847
@ Green
Definition: ui4_p.h:1847

Constructor & Destructor Documentation

◆ DomColor() [1/2]

DomColor::DomColor ( )

◆ ~DomColor()

DomColor::~DomColor ( )

◆ DomColor() [2/2]

DomColor::DomColor ( const DomColor other)
private

Member Function Documentation

◆ attributeAlpha()

int DomColor::attributeAlpha ( ) const
inline

Definition at line 1810 of file ui4_p.h.

1810 { return m_attr_alpha; }
int m_attr_alpha
Definition: ui4_p.h:1839

◆ clear()

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

◆ clearAttributeAlpha()

void DomColor::clearAttributeAlpha ( )
inline

Definition at line 1816 of file ui4_p.h.

1816 { m_has_attr_alpha = false; }
bool m_has_attr_alpha
Definition: ui4_p.h:1840

◆ clearElementBlue()

void DomColor::clearElementBlue ( )

◆ clearElementGreen()

void DomColor::clearElementGreen ( )

◆ clearElementRed()

void DomColor::clearElementRed ( )

◆ elementBlue()

int DomColor::elementBlue ( ) const
inline

Definition at line 1829 of file ui4_p.h.

1829 { return m_blue; }
int m_blue
Definition: ui4_p.h:1846

◆ elementGreen()

int DomColor::elementGreen ( ) const
inline

Definition at line 1824 of file ui4_p.h.

1824 { return m_green; }
int m_green
Definition: ui4_p.h:1845

◆ elementRed()

int DomColor::elementRed ( ) const
inline

Definition at line 1819 of file ui4_p.h.

1819 { return m_red; }
int m_red
Definition: ui4_p.h:1844

◆ hasAttributeAlpha()

bool DomColor::hasAttributeAlpha ( ) const
inline

Definition at line 1809 of file ui4_p.h.

1809 { return m_has_attr_alpha; }

◆ hasElementBlue()

bool DomColor::hasElementBlue ( ) const
inline

Definition at line 1831 of file ui4_p.h.

1831 { return m_children & Blue; }
uint m_children
Definition: ui4_p.h:1843

◆ hasElementGreen()

bool DomColor::hasElementGreen ( ) const
inline

Definition at line 1826 of file ui4_p.h.

1826 { return m_children & Green; }

◆ hasElementRed()

bool DomColor::hasElementRed ( ) const
inline

Definition at line 1821 of file ui4_p.h.

1821 { return m_children & Red; }

◆ operator=()

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

◆ read()

void DomColor::read ( QXmlStreamReader &  reader)

◆ setAttributeAlpha()

void DomColor::setAttributeAlpha ( int  a)
inline

Definition at line 1811 of file ui4_p.h.

1812  {
1813  m_attr_alpha = a;
1814  m_has_attr_alpha = true;
1815  }

◆ setElementBlue()

void DomColor::setElementBlue ( int  a)

◆ setElementGreen()

void DomColor::setElementGreen ( int  a)

◆ setElementRed()

void DomColor::setElementRed ( int  a)

◆ setText()

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

Definition at line 1806 of file ui4_p.h.

1806 { m_text = s; }
QString m_text
Definition: ui4_p.h:1835

◆ text()

QString DomColor::text ( ) const
inline

Definition at line 1805 of file ui4_p.h.

1805 { return m_text; }

◆ write()

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

Member Data Documentation

◆ m_attr_alpha

int DomColor::m_attr_alpha
private

Definition at line 1839 of file ui4_p.h.

◆ m_blue

int DomColor::m_blue
private

Definition at line 1846 of file ui4_p.h.

◆ m_children

uint DomColor::m_children
private

Definition at line 1843 of file ui4_p.h.

◆ m_green

int DomColor::m_green
private

Definition at line 1845 of file ui4_p.h.

◆ m_has_attr_alpha

bool DomColor::m_has_attr_alpha
private

Definition at line 1840 of file ui4_p.h.

◆ m_red

int DomColor::m_red
private

Definition at line 1844 of file ui4_p.h.

◆ m_text

QString DomColor::m_text
private

Definition at line 1835 of file ui4_p.h.


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