libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
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 156 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 167 of file selectionpolygon.h.

169 : selectionPolygon(selection_polygon), 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), dataKind(other.dataKind)
175 {
176 }

Member Function Documentation

◆ operator=()

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

Definition at line 179 of file selectionpolygon.h.

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

References dataKind, and selectionPolygon.

◆ toString()

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

Definition at line 192 of file selectionpolygon.h.

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

References pappso::SelectionPolygon::toString().

Member Data Documentation

◆ dataKind

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

Definition at line 160 of file selectionpolygon.h.

Referenced by operator=().

◆ selectionPolygon

SelectionPolygon pappso::SelectionPolygonSpec::selectionPolygon

Definition at line 159 of file selectionpolygon.h.

Referenced by operator=().


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