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 139 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 150 of file selectionpolygon.h.

152 : selectionPolygon(selection_polygon), dataKind(data_kind)
153 {
154 }

◆ SelectionPolygonSpec() [3/3]

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

Definition at line 156 of file selectionpolygon.h.

157 : selectionPolygon(other.selectionPolygon), dataKind(other.dataKind)
158 {
159 }

Member Function Documentation

◆ operator=()

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

Definition at line 162 of file selectionpolygon.h.

163 {
164 if(this == &other)
165 return *this;
166
167 selectionPolygon = other.selectionPolygon;
168 dataKind = other.dataKind;
169
170 return *this;
171 }

References dataKind, and selectionPolygon.

◆ toString()

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

Definition at line 175 of file selectionpolygon.h.

176 {
177 QString text = "Selection polygon spec:";
178 text += selectionPolygon.toString();
179
180 text += " - data kind: ";
181
183 text += "dt.";
184 else if(dataKind == DataKind::mz)
185 text += "m/z.";
186 else if(dataKind == DataKind::rt)
187 text += "rt.";
188 else
189 text += "unset.";
190
191 return text;
192 }
@ dt
Drift time.
@ rt
Retention time.

References pappso::SelectionPolygon::toString().

Member Data Documentation

◆ dataKind

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

Definition at line 143 of file selectionpolygon.h.

Referenced by operator=().

◆ selectionPolygon

SelectionPolygon pappso::SelectionPolygonSpec::selectionPolygon

Definition at line 142 of file selectionpolygon.h.

Referenced by operator=().


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