Loading...
Searching...
No Matches
pappso::IntegrationScope Class Reference

`#include <integrationscope.h>`

Inheritance diagram for pappso::IntegrationScope:

## Public Member Functions

| IntegrationScope ()
| IntegrationScope (const QPointF &point, double width)
| IntegrationScope (const QPointF &point, double width, DataKind data_kind)
| IntegrationScope (const IntegrationScope &other)
virtual | ~IntegrationScope ()
virtual IntegrationScope & | operator= (const IntegrationScope &other)
virtual void | setPoint (const QPointF &point)
virtual bool | getPoint (QPointF &point) const override
virtual IntegrationScopeFeatures | getLeftMostPoint (QPointF &point) const override
virtual IntegrationScopeFeatures | getRightMostPoint (QPointF &point) const override
virtual IntegrationScopeFeatures | getTopMostPoint (QPointF &point) const override
virtual IntegrationScopeFeatures | getBottomMostPoint (QPointF &point) const override
virtual void | setWidth (double width)
virtual IntegrationScopeFeatures | getWidth (double &width) const override
virtual bool | range (Axis axis, double &start, double &end) const override
virtual void | setDataKindX (DataKind data_kind) override
virtual bool | getDataKindX (DataKind &data_kind) override
bool | is1D () const override
bool | is2D () const override
virtual bool | isRectangle () const override
virtual bool | isRhomboid () const override
virtual bool | transpose () override
virtual void | update (const QPointF &point, double width)
virtual bool | contains (const QPointF &point) const override
virtual QString | toString () const override
virtual void | reset () override
Public Member Functions inherited from pappso::IntegrationScopeBase
| IntegrationScopeBase ()
| IntegrationScopeBase (const IntegrationScopeBase &other)
virtual | ~IntegrationScopeBase ()
virtual bool | getPoints (std::vector< QPointF > &points) const
virtual IntegrationScopeFeatures | getLeftMostPoints (std::vector< QPointF > &points) const
virtual IntegrationScopeFeatures | getLeftMostTopPoint (QPointF &point) const
virtual IntegrationScopeFeatures | getLeftMostBottomPoint (QPointF &point) const
virtual IntegrationScopeFeatures | getRightMostPoints (std::vector< QPointF > &points) const
virtual IntegrationScopeFeatures | getRightMostTopPoint (QPointF &point) const
virtual IntegrationScopeFeatures | getRightMostBottomPoint (QPointF &point) const
virtual IntegrationScopeFeatures | getTopMostPoints (std::vector< QPointF > &points) const
virtual IntegrationScopeFeatures | getBottomMostPoints (std::vector< QPointF > &points) const
virtual IntegrationScopeFeatures | getRhombHorizontalSize (double &size) const
virtual IntegrationScopeFeatures | getRhombVerticalSize (double &size) const
virtual IntegrationScopeFeatures | getHeight (double &height) const
virtual void | setDataKindY (DataKind data_kind)
virtual bool | getDataKindY (DataKind &data_kind)

## Protected Attributes

QPointF | m_point
double | m_width
DataKind | m_dataKindX = DataKind::unset

## Detailed Description

Definition at line 37 of file integrationscope.h.

## Constructor & Destructor Documentation

## IntegrationScope() [1/4]

pappso::IntegrationScope::IntegrationScope | ( |  | ) |

Definition at line 21 of file integrationscope.cpp.

: IntegrationScopeBase()
{
// qDebug() << "Constructing" << this;
}
pappso::IntegrationScopeBase::IntegrationScopeBase
IntegrationScopeBase()
Definition integrationscopebase.cpp:21

## IntegrationScope() [2/4]

pappso::IntegrationScope::IntegrationScope | ( | const QPointF & | point,
|  | double | width
| ) |  |

Definition at line 26 of file integrationscope.cpp.

: IntegrationScopeBase(), m_point(point), m_width(width)
{
// qDebug() << "Constructing" << this << "point:" << point << "width:" << width;
}
pappso::IntegrationScope::m_width
double m_width
Definition integrationscope.h:84
pappso::IntegrationScope::m_point
QPointF m_point
Definition integrationscope.h:83

## IntegrationScope() [3/4]

pappso::IntegrationScope::IntegrationScope | ( | const QPointF & | point,
|  | double | width,
|  | DataKind | data_kind
| ) |  |

Definition at line 32 of file integrationscope.cpp.

: IntegrationScopeBase(),
m_point(point),
m_width(width),
m_dataKindX(data_kind)
{
// qDebug() << "Constructing" << this << "point:" << point << "width:" << width;
}
pappso::IntegrationScope::m_dataKindX
DataKind m_dataKindX
Definition integrationscope.h:85

## IntegrationScope() [4/4]

pappso::IntegrationScope::IntegrationScope | ( | const IntegrationScope & | other | ) |

Definition at line 43 of file integrationscope.cpp.

: IntegrationScopeBase(),
m_point(other.m_point),
m_width(other.m_width),
m_dataKindX(other.m_dataKindX)
{
// qDebug() << "Constructing" << this << "point:" << point << "width:" << width;
}

## ~IntegrationScope()

pappso::IntegrationScope::~IntegrationScope | ( |  | ) |

virtual

Definition at line 52 of file integrationscope.cpp.

{
// qDebug() << "Destructing" << this;
}

## Member Function Documentation

## contains()

bool pappso::IntegrationScope::contains | ( | const QPointF & | point | ) | const

override virtual

Reimplemented from pappso::IntegrationScopeBase.

Reimplemented in pappso::IntegrationScopeRect.

Definition at line 189 of file integrationscope.cpp.

{
return (point.x() >= m_point.x() && point.x() <= m_point.x() + m_width);
}

References m_point, and m_width.

## getBottomMostPoint()

IntegrationScopeFeatures pappso::IntegrationScope::getBottomMostPoint | ( | QPointF & | point | ) | const

override virtual

Reimplemented from pappso::IntegrationScopeBase.

Reimplemented in pappso::IntegrationScopeRect.

Definition at line 105 of file integrationscope.cpp.

{
point = m_point;
return IntegrationScopeFeatures::SUCCESS;
}
pappso::SUCCESS
@ SUCCESS
Definition integrationscopebase.h:50

References m_point, and pappso::SUCCESS.

## getDataKindX()

bool pappso::IntegrationScope::getDataKindX | ( | DataKind & | data_kind | ) |

override virtual

Reimplemented from pappso::IntegrationScopeBase.

Reimplemented in pappso::IntegrationScopeRect.

Definition at line 145 of file integrationscope.cpp.

{
data_kind = m_dataKindX;
return true;
}

References m_dataKindX.

## getLeftMostPoint()

IntegrationScopeFeatures pappso::IntegrationScope::getLeftMostPoint | ( | QPointF & | point | ) | const

override virtual

Reimplemented from pappso::IntegrationScopeBase.

Definition at line 84 of file integrationscope.cpp.

{
point = m_point;
return IntegrationScopeFeatures::SUCCESS;
}

References m_point, and pappso::SUCCESS.

## getPoint()

bool pappso::IntegrationScope::getPoint | ( | QPointF & | point | ) | const

override virtual

Reimplemented from pappso::IntegrationScopeBase.

Definition at line 77 of file integrationscope.cpp.

{
point = m_point;
return true;
}

References m_point.

## getRightMostPoint()

IntegrationScopeFeatures pappso::IntegrationScope::getRightMostPoint | ( | QPointF & | point | ) | const

override virtual

Reimplemented from pappso::IntegrationScopeBase.

Definition at line 91 of file integrationscope.cpp.

{
point = QPointF(m_point.x() + m_width, m_point.y());
return IntegrationScopeFeatures::SUCCESS;
}

References m_point, m_width, and pappso::SUCCESS.

## getTopMostPoint()

IntegrationScopeFeatures pappso::IntegrationScope::getTopMostPoint | ( | QPointF & | point | ) | const

override virtual

Reimplemented from pappso::IntegrationScopeBase.

Reimplemented in pappso::IntegrationScopeRect.

Definition at line 98 of file integrationscope.cpp.

{
point = m_point;
return IntegrationScopeFeatures::SUCCESS;
}

References m_point, and pappso::SUCCESS.

## getWidth()

IntegrationScopeFeatures pappso::IntegrationScope::getWidth | ( | double & | width | ) | const

override virtual

Reimplemented from pappso::IntegrationScopeBase.

Definition at line 118 of file integrationscope.cpp.

{
width = m_width;
return IntegrationScopeFeatures::SUCCESS;
}

References m_width, and pappso::SUCCESS.

## is1D()

bool pappso::IntegrationScope::is1D | ( |  | ) | const

override virtual

Reimplemented from pappso::IntegrationScopeBase.

Reimplemented in pappso::IntegrationScopeRect.

Definition at line 152 of file integrationscope.cpp.

{
return true;
}

Referenced by is2D().

## is2D()

bool pappso::IntegrationScope::is2D | ( |  | ) | const

override virtual

Reimplemented from pappso::IntegrationScopeBase.

Reimplemented in pappso::IntegrationScopeRect.

Definition at line 158 of file integrationscope.cpp.

{
return !is1D();
}
pappso::IntegrationScope::is1D
bool is1D() const override
Definition integrationscope.cpp:152

References is1D().

## isRectangle()

bool pappso::IntegrationScope::isRectangle | ( |  | ) | const

override virtual

Reimplemented from pappso::IntegrationScopeBase.

Reimplemented in pappso::IntegrationScopeRect.

Definition at line 164 of file integrationscope.cpp.

{
return false;
}

## isRhomboid()

bool pappso::IntegrationScope::isRhomboid | ( |  | ) | const

override virtual

Reimplemented from pappso::IntegrationScopeBase.

Reimplemented in pappso::IntegrationScopeRect.

Definition at line 170 of file integrationscope.cpp.

{
return false;
}

## operator=()

IntegrationScope & pappso::IntegrationScope::operator= | ( | const IntegrationScope & | other | ) |

virtual

Reimplemented in pappso::IntegrationScopeRect.

Definition at line 58 of file integrationscope.cpp.

{
if(this == &other)
return *this;
m_point = other.m_point;
m_width = other.m_width;
return *this;
}

References m_point, and m_width.

Referenced by pappso::IntegrationScopeRect::operator=().

## range()

bool pappso::IntegrationScope::range | ( | Axis | axis,
|  | double & | start,
|  | double & | end
| ) |  | const

override virtual

Reimplemented from pappso::IntegrationScopeBase.

Reimplemented in pappso::IntegrationScopeRect.

Definition at line 125 of file integrationscope.cpp.

{
if(axis == Axis::x)
{
start = m_point.x();
end = start + m_width;
return true;
}
return false;
}
pappso::Axis::x
@ x

References m_point, m_width, and pappso::x.

## reset()

void pappso::IntegrationScope::reset | ( |  | ) |

override virtual

Reimplemented from pappso::IntegrationScopeBase.

Reimplemented in pappso::IntegrationScopeRect.

Definition at line 203 of file integrationscope.cpp.

{
m_point.rx() = 0;
m_point.ry() = 0;
m_width = 0;
}

References m_point, and m_width.

Referenced by pappso::IntegrationScopeRect::reset().

## setDataKindX()

void pappso::IntegrationScope::setDataKindX | ( | DataKind | data_kind | ) |

override virtual

Reimplemented from pappso::IntegrationScopeBase.

Reimplemented in pappso::IntegrationScopeRect.

Definition at line 139 of file integrationscope.cpp.

{
m_dataKindX = data_kind;
}

References m_dataKindX.

## setPoint()

void pappso::IntegrationScope::setPoint | ( | const QPointF & | point | ) |

virtual

Definition at line 71 of file integrationscope.cpp.

{
m_point = point;
}

References m_point.

## setWidth()

void pappso::IntegrationScope::setWidth | ( | double | width | ) |

virtual

Definition at line 112 of file integrationscope.cpp.

{
m_width = width;
}

References m_width.

## toString()

QString pappso::IntegrationScope::toString | ( |  | ) | const

override virtual

Reimplemented from pappso::IntegrationScopeBase.

Reimplemented in pappso::IntegrationScopeRect.

Definition at line 195 of file integrationscope.cpp.

{
return QString("(%1, %2)")
.arg(m_point.x(), 0, 'f', 3)
.arg(m_point.x() + m_width, 0, 'f', 3);
}

References m_point, and m_width.

## transpose()

bool pappso::IntegrationScope::transpose | ( |  | ) |

override virtual

Reimplemented from pappso::IntegrationScopeBase.

Reimplemented in pappso::IntegrationScopeRect.

Definition at line 176 of file integrationscope.cpp.

{
return false;
}

## update()

void pappso::IntegrationScope::update | ( | const QPointF & | point,
|  | double | width
| ) |  |

virtual

Reimplemented in pappso::IntegrationScopeRect.

Definition at line 182 of file integrationscope.cpp.

{
m_point = point;
m_width = width;
}

References m_point, and m_width.

## Member Data Documentation

## m_dataKindX

DataKind pappso::IntegrationScope::m_dataKindX = DataKind::unset

protected

Definition at line 85 of file integrationscope.h.

Referenced by getDataKindX(), pappso::IntegrationScopeRect::getDataKindX(), pappso::IntegrationScopeRect::operator=(), setDataKindX(), pappso::IntegrationScopeRect::setDataKindX(), and pappso::IntegrationScopeRect::transpose().

## m_point

QPointF pappso::IntegrationScope::m_point

protected

Definition at line 83 of file integrationscope.h.

Referenced by contains(), pappso::IntegrationScopeRect::contains(), getBottomMostPoint(), pappso::IntegrationScopeRect::getBottomMostPoint(), getLeftMostPoint(), getPoint(), getRightMostPoint(), getTopMostPoint(), pappso::IntegrationScopeRect::getTopMostPoint(), operator=(), range(), pappso::IntegrationScopeRect::range(), reset(), setPoint(), toString(), pappso::IntegrationScopeRect::toString(), pappso::IntegrationScopeRect::transpose(), update(), and pappso::IntegrationScopeRect::update().

## m_width

double pappso::IntegrationScope::m_width

protected

Definition at line 84 of file integrationscope.h.

Referenced by contains(), pappso::IntegrationScopeRect::contains(), getRightMostPoint(), getWidth(), operator=(), range(), pappso::IntegrationScopeRect::range(), reset(), setWidth(), toString(), pappso::IntegrationScopeRect::toString(), pappso::IntegrationScopeRect::transpose(), update(), and pappso::IntegrationScopeRect::update().

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

- pappsomspp/processing/combiners/integrationscope.h
- pappsomspp/processing/combiners/integrationscope.cpp