libpappsomspp
Library for mass spectrometry
pappso::SelectionPolygonSpec Struct Reference

#include <selectionpolygon.h>

Public Member Functions

 SelectionPolygonSpec ()
 
 SelectionPolygonSpec (const SelectionPolygon &selection_polygon, DataKind data_kind)
 
 SelectionPolygonSpec (const SelectionPolygonSpec &other)
 
SelectionPolygonSpecoperator= (const SelectionPolygonSpec &other)
 
QString toString () const
 

Public Attributes

SelectionPolygon selectionPolygon
 
DataKind dataKind = DataKind::unset
 

Detailed Description

Definition at line 155 of file selectionpolygon.h.

Constructor & Destructor Documentation

◆ SelectionPolygonSpec() [1/3]

pappso::SelectionPolygonSpec::SelectionPolygonSpec ( )

◆ SelectionPolygonSpec() [2/3]

pappso::SelectionPolygonSpec::SelectionPolygonSpec ( const SelectionPolygon selection_polygon,
DataKind  data_kind 
)
inline

Definition at line 166 of file selectionpolygon.h.

168  : selectionPolygon(selection_polygon),
169  dataKind(data_kind)
170  {
171  }

◆ SelectionPolygonSpec() [3/3]

pappso::SelectionPolygonSpec::SelectionPolygonSpec ( const SelectionPolygonSpec other)
inline

Definition at line 173 of file selectionpolygon.h.

174  : selectionPolygon(other.selectionPolygon),
175  dataKind(other.dataKind)
176  {
177  }

Member Function Documentation

◆ operator=()

SelectionPolygonSpec& pappso::SelectionPolygonSpec::operator= ( const SelectionPolygonSpec other)
inline

Definition at line 180 of file selectionpolygon.h.

181  {
182  if(this == &other)
183  return *this;
184 
185  selectionPolygon = other.selectionPolygon;
186  dataKind = other.dataKind;
187 
188  return *this;
189  }

References dataKind, and selectionPolygon.

◆ toString()

QString pappso::SelectionPolygonSpec::toString ( ) const
inline

Definition at line 193 of file selectionpolygon.h.

194  {
195  QString text = "Selection polygon spec:";
196  text += selectionPolygon.toString();
197 
198  text += " - data kind: ";
199 
200  if(dataKind == DataKind::dt)
201  text += "dt.";
202  else if(dataKind == DataKind::mz)
203  text += "m/z.";
204  else if(dataKind == DataKind::rt)
205  text += "rt.";
206  else
207  text += "unset.";
208 
209  return text;
210  }
@ dt
Drift time.
@ rt
Retention time.

References pappso::dt, pappso::mz, pappso::rt, and pappso::SelectionPolygon::toString().

Member Data Documentation

◆ dataKind

DataKind pappso::SelectionPolygonSpec::dataKind = DataKind::unset

Definition at line 159 of file selectionpolygon.h.

Referenced by operator=().

◆ selectionPolygon

SelectionPolygon pappso::SelectionPolygonSpec::selectionPolygon

Definition at line 158 of file selectionpolygon.h.

Referenced by operator=().


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