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 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),
170 dataKind(data_kind)
171 {
172 }

◆ SelectionPolygonSpec() [3/3]

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

Definition at line 174 of file selectionpolygon.h.

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

Member Function Documentation

◆ operator=()

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

Definition at line 181 of file selectionpolygon.h.

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

References dataKind, and selectionPolygon.

◆ toString()

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

Definition at line 194 of file selectionpolygon.h.

195 {
196 QString text = "Selection polygon spec:";
197 text += selectionPolygon.toString();
198
199 text += " - data kind: ";
200
202 text += "dt.";
203 else if(dataKind == DataKind::mz)
204 text += "m/z.";
205 else if(dataKind == DataKind::rt)
206 text += "rt.";
207 else
208 text += "unset.";
209
210 return text;
211 }
@ 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 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: