Engauge Digitizer  2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
DocumentModelColorFilter Class Reference

Model for DlgSettingsColorFilter and CmdSettingsColorFilter. More...

#include <DocumentModelColorFilter.h>

Inheritance diagram for DocumentModelColorFilter:
Inheritance graph
Collaboration diagram for DocumentModelColorFilter:
Collaboration graph

Public Member Functions

 DocumentModelColorFilter ()
 Default constructor. More...
 
 DocumentModelColorFilter (const DocumentModelColorFilter &other)
 Copy constructor. More...
 
 DocumentModelColorFilter (const CoordSystem &coordSystem)
 Initial constructor from CoordSystem. More...
 
DocumentModelColorFilteroperator= (const DocumentModelColorFilter &other)
 Assignment constructor. More...
 
ColorFilterMode colorFilterMode (const QString &curveName) const
 Get method for filter mode. More...
 
const ColorFilterSettings colorFilterSettings (const QString &curveName) const
 Get method for copying one color filter. Cannot return just a reference or else there is a warning about returning reference to temporary. More...
 
const ColorFilterSettingsListcolorFilterSettingsList () const
 Get method for copying all color filters in one step. More...
 
int foregroundHigh (const QString &curveName) const
 Get method for foreground higher bound. More...
 
int foregroundLow (const QString &curveName) const
 Get method for foreground lower bound. More...
 
double high (const QString &curveName) const
 High value of foreground, hue, intensity, saturation or value according to current filter mode. More...
 
int hueHigh (const QString &curveName) const
 Get method for hue higher bound. More...
 
int hueLow (const QString &curveName) const
 Get method for hue lower bound. More...
 
int intensityHigh (const QString &curveName) const
 Get method for intensity higher bound. More...
 
int intensityLow (const QString &curveName) const
 Get method for intensity lower bound. More...
 
virtual void loadXml (QXmlStreamReader &reader)
 Load model from serialized xml. More...
 
double low (const QString &curveName) const
 Low value of foreground, hue, intensity, saturation or value according to current filter mode normalized to 0 to 1. More...
 
void printStream (QString indentation, QTextStream &str) const
 Debugging method that supports print method of this class and printStream method of some other class(es) More...
 
int saturationHigh (const QString &curveName) const
 Get method for saturation higher bound. More...
 
int saturationLow (const QString &curveName) const
 Get method for saturation lower bound. More...
 
virtual void saveXml (QXmlStreamWriter &writer) const
 Save entire model as xml into stream. More...
 
void setColorFilterMode (const QString &curveName, ColorFilterMode colorFilterMode)
 Set method for filter mode. More...
 
void setForegroundHigh (const QString &curveName, int foregroundHigh)
 Set method for foreground higher bound. More...
 
void setForegroundLow (const QString &curveName, int foregroundLow)
 Set method for foreground lower bound. More...
 
void setHigh (const QString &curveName, double s0To1)
 Set the high value for the current filter mode. More...
 
void setHueHigh (const QString &curveName, int hueHigh)
 Set method for hue higher bound. More...
 
void setHueLow (const QString &curveName, int hueLow)
 Set method for hue lower bound. More...
 
void setIntensityHigh (const QString &curveName, int intensityHigh)
 Set method for intensity higher bound. More...
 
void setIntensityLow (const QString &curveName, int intensityLow)
 Set method for intensity lower bound. More...
 
void setLow (const QString &curveName, double s0To1)
 Set the low value for the current filter mode. More...
 
void setSaturationHigh (const QString &curveName, int saturationHigh)
 Set method for saturation high. More...
 
void setSaturationLow (const QString &curveName, int saturationLow)
 Set method for saturation low. More...
 
void setValueHigh (const QString &curveName, int valueHigh)
 Set method for value high. More...
 
void setValueLow (const QString &curveName, int valueLow)
 Set method for value low. More...
 
int valueHigh (const QString &curveName) const
 Get method for value high. More...
 
int valueLow (const QString &curveName) const
 Get method for value low. More...
 
- Public Member Functions inherited from DocumentModelAbstractBase
 DocumentModelAbstractBase ()
 Single constructor. More...
 
virtual ~DocumentModelAbstractBase ()
 Single destructor. More...
 

Additional Inherited Members

Detailed Description

Model for DlgSettingsColorFilter and CmdSettingsColorFilter.

Definition at line 21 of file DocumentModelColorFilter.h.

Constructor & Destructor Documentation

DocumentModelColorFilter::DocumentModelColorFilter ( )

Default constructor.

Definition at line 18 of file DocumentModelColorFilter.cpp.

19 {
20  LOG4CPP_INFO_S ((*mainCat)) << "DocumentModelColorFilter::DocumentModelColorFilter";
21 }
#define LOG4CPP_INFO_S(logger)
Definition: convenience.h:18
log4cpp::Category * mainCat
Definition: Logger.cpp:14
DocumentModelColorFilter::DocumentModelColorFilter ( const DocumentModelColorFilter other)

Copy constructor.

Definition at line 42 of file DocumentModelColorFilter.cpp.

43 {
44  // Curve filters
45  ColorFilterSettingsList::const_iterator itr;
46  for (itr = other.colorFilterSettingsList ().constBegin (); itr != other.colorFilterSettingsList().constEnd(); itr++) {
47  QString curveName = itr.key();
49  m_colorFilterSettingsList [curveName] = colorFilterSettings;
50  }
51 }
Color filter parameters for one curve. For a class, this is handled the same as LineStyle and PointSt...
const ColorFilterSettings colorFilterSettings(const QString &curveName) const
Get method for copying one color filter. Cannot return just a reference or else there is a warning ab...
const ColorFilterSettingsList & colorFilterSettingsList() const
Get method for copying all color filters in one step.
DocumentModelColorFilter::DocumentModelColorFilter ( const CoordSystem coordSystem)

Initial constructor from CoordSystem.

Definition at line 23 of file DocumentModelColorFilter.cpp.

24 {
25  LOG4CPP_INFO_S ((*mainCat)) << "DocumentModelColorFilter::DocumentModelColorFilter";
26 
27  // Axis curve
28  const Curve &curveAxes = coordSystem.curveAxes();
29  m_colorFilterSettingsList [AXIS_CURVE_NAME] = curveAxes.colorFilterSettings ();
30 
31  // Graph curves
32  QStringList graphCurveNames = coordSystem.curvesGraphsNames();
33  QStringList::const_iterator itr;
34  for (itr = graphCurveNames.begin (); itr != graphCurveNames.end (); itr++) {
35 
36  const QString &graphCurveName = *itr;
37  const Curve *graphCurve = coordSystem.curveForCurveName(graphCurveName);
38  m_colorFilterSettingsList [graphCurveName] = graphCurve->colorFilterSettings();
39  }
40 }
#define LOG4CPP_INFO_S(logger)
Definition: convenience.h:18
virtual QStringList curvesGraphsNames() const
See CurvesGraphs::curvesGraphsNames.
virtual const Curve & curveAxes() const
Get method for axis curve.
Container for one set of digitized Points.
Definition: Curve.h:33
virtual Curve * curveForCurveName(const QString &curveName)
See CurvesGraphs::curveForCurveName, although this also works for AXIS_CURVE_NAME.
log4cpp::Category * mainCat
Definition: Logger.cpp:14
ColorFilterSettings colorFilterSettings() const
Return the color filter.
Definition: Curve.cpp:139
const QString AXIS_CURVE_NAME

Member Function Documentation

ColorFilterMode DocumentModelColorFilter::colorFilterMode ( const QString &  curveName) const

Get method for filter mode.

Definition at line 66 of file DocumentModelColorFilter.cpp.

67 {
68  ENGAUGE_ASSERT (m_colorFilterSettingsList.contains (curveName));
69  return m_colorFilterSettingsList [curveName].colorFilterMode();
70 }
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Definition: EngaugeAssert.h:20
const ColorFilterSettings DocumentModelColorFilter::colorFilterSettings ( const QString &  curveName) const

Get method for copying one color filter. Cannot return just a reference or else there is a warning about returning reference to temporary.

Definition at line 72 of file DocumentModelColorFilter.cpp.

73 {
74  ENGAUGE_ASSERT (m_colorFilterSettingsList.contains (curveName));
75  return m_colorFilterSettingsList [curveName];
76 }
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Definition: EngaugeAssert.h:20
const ColorFilterSettingsList & DocumentModelColorFilter::colorFilterSettingsList ( ) const

Get method for copying all color filters in one step.

Definition at line 78 of file DocumentModelColorFilter.cpp.

79 {
80  return m_colorFilterSettingsList;
81 }
int DocumentModelColorFilter::foregroundHigh ( const QString &  curveName) const

Get method for foreground higher bound.

Definition at line 83 of file DocumentModelColorFilter.cpp.

84 {
85  QStringList curveNames (m_colorFilterSettingsList.keys());
86  LOG4CPP_INFO_S ((*mainCat)) << "DocumentModelColorFilter::foregroundHigh"
87  << " curve=" << curveName.toLatin1().data()
88  << " curves=" << curveNames.join(",").toLatin1().data();
89 
90  ENGAUGE_ASSERT (m_colorFilterSettingsList.contains (curveName));
91  return m_colorFilterSettingsList [curveName].foregroundHigh();
92 }
#define LOG4CPP_INFO_S(logger)
Definition: convenience.h:18
log4cpp::Category * mainCat
Definition: Logger.cpp:14
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Definition: EngaugeAssert.h:20
int DocumentModelColorFilter::foregroundLow ( const QString &  curveName) const

Get method for foreground lower bound.

Definition at line 94 of file DocumentModelColorFilter.cpp.

95 {
96  QStringList curveNames (m_colorFilterSettingsList.keys());
97  LOG4CPP_INFO_S ((*mainCat)) << "DocumentModelColorFilter::foregroundLow"
98  << " curve=" << curveName.toLatin1().data()
99  << " curves=" << curveNames.join(",").toLatin1().data();
100 
101  ENGAUGE_ASSERT (m_colorFilterSettingsList.contains (curveName));
102  return m_colorFilterSettingsList [curveName].foregroundLow();
103 }
#define LOG4CPP_INFO_S(logger)
Definition: convenience.h:18
log4cpp::Category * mainCat
Definition: Logger.cpp:14
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Definition: EngaugeAssert.h:20
double DocumentModelColorFilter::high ( const QString &  curveName) const

High value of foreground, hue, intensity, saturation or value according to current filter mode.

normalized to 0 to 1.

Definition at line 105 of file DocumentModelColorFilter.cpp.

106 {
107  QStringList curveNames (m_colorFilterSettingsList.keys());
108  LOG4CPP_INFO_S ((*mainCat)) << "DocumentModelColorFilter::high"
109  << " curve=" << curveName.toLatin1().data()
110  << " curves=" << curveNames.join(",").toLatin1().data();
111 
112  ENGAUGE_ASSERT (m_colorFilterSettingsList.contains (curveName));
113  return m_colorFilterSettingsList [curveName].high();
114 }
#define LOG4CPP_INFO_S(logger)
Definition: convenience.h:18
log4cpp::Category * mainCat
Definition: Logger.cpp:14
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Definition: EngaugeAssert.h:20
int DocumentModelColorFilter::hueHigh ( const QString &  curveName) const

Get method for hue higher bound.

Definition at line 116 of file DocumentModelColorFilter.cpp.

117 {
118  QStringList curveNames (m_colorFilterSettingsList.keys());
119  LOG4CPP_INFO_S ((*mainCat)) << "DocumentModelColorFilter::hueHigh"
120  << " curve=" << curveName.toLatin1().data()
121  << " curves=" << curveNames.join(",").toLatin1().data();
122 
123  ENGAUGE_ASSERT (m_colorFilterSettingsList.contains (curveName));
124  return m_colorFilterSettingsList [curveName].hueHigh();
125 }
#define LOG4CPP_INFO_S(logger)
Definition: convenience.h:18
log4cpp::Category * mainCat
Definition: Logger.cpp:14
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Definition: EngaugeAssert.h:20
int DocumentModelColorFilter::hueLow ( const QString &  curveName) const

Get method for hue lower bound.

Definition at line 127 of file DocumentModelColorFilter.cpp.

128 {
129  QStringList curveNames (m_colorFilterSettingsList.keys());
130  LOG4CPP_INFO_S ((*mainCat)) << "DocumentModelColorFilter::hueLow"
131  << " curve=" << curveName.toLatin1().data()
132  << " curves=" << curveNames.join(",").toLatin1().data();
133 
134  ENGAUGE_ASSERT (m_colorFilterSettingsList.contains (curveName));
135  return m_colorFilterSettingsList [curveName].hueLow();
136 }
#define LOG4CPP_INFO_S(logger)
Definition: convenience.h:18
log4cpp::Category * mainCat
Definition: Logger.cpp:14
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Definition: EngaugeAssert.h:20
int DocumentModelColorFilter::intensityHigh ( const QString &  curveName) const

Get method for intensity higher bound.

Definition at line 138 of file DocumentModelColorFilter.cpp.

139 {
140  QStringList curveNames (m_colorFilterSettingsList.keys());
141  LOG4CPP_INFO_S ((*mainCat)) << "DocumentModelColorFilter::intensityHigh"
142  << " curve=" << curveName.toLatin1().data()
143  << " curves=" << curveNames.join(",").toLatin1().data();
144 
145  ENGAUGE_ASSERT (m_colorFilterSettingsList.contains (curveName));
146  return m_colorFilterSettingsList [curveName].intensityHigh();
147 }
#define LOG4CPP_INFO_S(logger)
Definition: convenience.h:18
log4cpp::Category * mainCat
Definition: Logger.cpp:14
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Definition: EngaugeAssert.h:20
int DocumentModelColorFilter::intensityLow ( const QString &  curveName) const

Get method for intensity lower bound.

Definition at line 149 of file DocumentModelColorFilter.cpp.

150 {
151  QStringList curveNames (m_colorFilterSettingsList.keys());
152  LOG4CPP_INFO_S ((*mainCat)) << "DocumentModelColorFilter::intensityLow"
153  << " curve=" << curveName.toLatin1().data()
154  << " curves=" << curveNames.join(",").toLatin1().data();
155 
156  ENGAUGE_ASSERT (m_colorFilterSettingsList.contains (curveName));
157  return m_colorFilterSettingsList [curveName].intensityLow();
158 }
#define LOG4CPP_INFO_S(logger)
Definition: convenience.h:18
log4cpp::Category * mainCat
Definition: Logger.cpp:14
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Definition: EngaugeAssert.h:20
void DocumentModelColorFilter::loadXml ( QXmlStreamReader &  reader)
virtual

Load model from serialized xml.

Implements DocumentModelAbstractBase.

Definition at line 160 of file DocumentModelColorFilter.cpp.

161 {
162  LOG4CPP_INFO_S ((*mainCat)) << "DocumentModelColorFilter::loadXml";
163 
164  bool success = true;
165 
166  m_colorFilterSettingsList.clear();
167 
168  // A mistake was made, and the DOCUMENT_SERIALIZE_FILTER tag was used for DocumentModelColorFilter,
169  // and DOCUMENT_SERIALIZE_COLOR_FILTER is used for ColorFilterSettings. Too late to change now.
170  bool inFilter = false;
171  while ((reader.tokenType() != QXmlStreamReader::EndElement) ||
172  (reader.name() != DOCUMENT_SERIALIZE_FILTER)) {
173  loadNextFromReader(reader);
174  if (reader.atEnd()) {
175  success = false;
176  break;
177  }
178 
179  if ((reader.tokenType() == QXmlStreamReader::StartElement) &&
180  (reader.name() == DOCUMENT_SERIALIZE_COLOR_FILTER)) {
181 
182  inFilter = true;
183  }
184 
185  if (inFilter && ((reader.tokenType() == QXmlStreamReader::StartElement) &&
186  (reader.name() == DOCUMENT_SERIALIZE_COLOR_FILTER))) {
187 
188  QXmlStreamAttributes attributes = reader.attributes();
189 
190  if (attributes.hasAttribute(DOCUMENT_SERIALIZE_CURVE_NAME)) {
191 
192  QString curveName = attributes.value(DOCUMENT_SERIALIZE_CURVE_NAME).toString();
193 
195  m_colorFilterSettingsList [curveName] = colorFilterSettings;
196 
197  } else {
198  success = false;
199  break;
200  }
201  }
202  }
203 
204  if (!success) {
205  reader.raiseError(QObject::tr ("Cannot read filter data"));
206  }
207 
208  // Read past the end token from the first settings so that is not confused with the end token from the after settings
209  loadNextFromReader(reader);
210 }
Color filter parameters for one curve. For a class, this is handled the same as LineStyle and PointSt...
QXmlStreamReader::TokenType loadNextFromReader(QXmlStreamReader &reader)
Load next token from xml reader.
Definition: Xml.cpp:14
#define LOG4CPP_INFO_S(logger)
Definition: convenience.h:18
const QString DOCUMENT_SERIALIZE_FILTER
const QString DOCUMENT_SERIALIZE_COLOR_FILTER
const ColorFilterSettings colorFilterSettings(const QString &curveName) const
Get method for copying one color filter. Cannot return just a reference or else there is a warning ab...
log4cpp::Category * mainCat
Definition: Logger.cpp:14
const QString DOCUMENT_SERIALIZE_CURVE_NAME
double DocumentModelColorFilter::low ( const QString &  curveName) const

Low value of foreground, hue, intensity, saturation or value according to current filter mode normalized to 0 to 1.

Definition at line 212 of file DocumentModelColorFilter.cpp.

213 {
214  QStringList curveNames (m_colorFilterSettingsList.keys());
215  LOG4CPP_INFO_S ((*mainCat)) << "DocumentModelColorFilter::low"
216  << " curve=" << curveName.toLatin1().data()
217  << " curves=" << curveNames.join(",").toLatin1().data();
218 
219  ENGAUGE_ASSERT (m_colorFilterSettingsList.contains (curveName));
220  return m_colorFilterSettingsList [curveName].low();
221 }
#define LOG4CPP_INFO_S(logger)
Definition: convenience.h:18
log4cpp::Category * mainCat
Definition: Logger.cpp:14
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Definition: EngaugeAssert.h:20
DocumentModelColorFilter & DocumentModelColorFilter::operator= ( const DocumentModelColorFilter other)

Assignment constructor.

Definition at line 53 of file DocumentModelColorFilter.cpp.

54 {
55  // Curve filters
56  ColorFilterSettingsList::const_iterator itr;
57  for (itr = other.colorFilterSettingsList ().constBegin (); itr != other.colorFilterSettingsList ().constEnd(); itr++) {
58  QString curveName = itr.key();
60  m_colorFilterSettingsList [curveName] = colorFilterSettings;
61  }
62 
63  return *this;
64 }
Color filter parameters for one curve. For a class, this is handled the same as LineStyle and PointSt...
const ColorFilterSettings colorFilterSettings(const QString &curveName) const
Get method for copying one color filter. Cannot return just a reference or else there is a warning ab...
const ColorFilterSettingsList & colorFilterSettingsList() const
Get method for copying all color filters in one step.
void DocumentModelColorFilter::printStream ( QString  indentation,
QTextStream &  str 
) const

Debugging method that supports print method of this class and printStream method of some other class(es)

int DocumentModelColorFilter::saturationHigh ( const QString &  curveName) const

Get method for saturation higher bound.

Definition at line 223 of file DocumentModelColorFilter.cpp.

224 {
225  QStringList curveNames (m_colorFilterSettingsList.keys());
226  LOG4CPP_INFO_S ((*mainCat)) << "DocumentModelColorFilter::saturationHigh"
227  << " curve=" << curveName.toLatin1().data()
228  << " curves=" << curveNames.join(",").toLatin1().data();
229 
230  ENGAUGE_ASSERT (m_colorFilterSettingsList.contains (curveName));
231  return m_colorFilterSettingsList [curveName].saturationHigh();
232 }
#define LOG4CPP_INFO_S(logger)
Definition: convenience.h:18
log4cpp::Category * mainCat
Definition: Logger.cpp:14
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Definition: EngaugeAssert.h:20
int DocumentModelColorFilter::saturationLow ( const QString &  curveName) const

Get method for saturation lower bound.

Definition at line 234 of file DocumentModelColorFilter.cpp.

235 {
236  QStringList curveNames (m_colorFilterSettingsList.keys());
237  LOG4CPP_INFO_S ((*mainCat)) << "DocumentModelColorFilter::saturationLow"
238  << " curve=" << curveName.toLatin1().data()
239  << " curves=" << curveNames.join(",").toLatin1().data();
240 
241  ENGAUGE_ASSERT (m_colorFilterSettingsList.contains (curveName));
242  return m_colorFilterSettingsList [curveName].saturationLow();
243 }
#define LOG4CPP_INFO_S(logger)
Definition: convenience.h:18
log4cpp::Category * mainCat
Definition: Logger.cpp:14
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Definition: EngaugeAssert.h:20
void DocumentModelColorFilter::saveXml ( QXmlStreamWriter &  writer) const
virtual

Save entire model as xml into stream.

Implements DocumentModelAbstractBase.

Definition at line 245 of file DocumentModelColorFilter.cpp.

246 {
247  LOG4CPP_INFO_S ((*mainCat)) << "DocumentModelColorFilter::saveXml";
248 
249  writer.writeStartElement(DOCUMENT_SERIALIZE_FILTER);
250 
251  // Loop through filters
252  ColorFilterSettingsList::const_iterator itr;
253  for (itr = m_colorFilterSettingsList.begin (); itr != m_colorFilterSettingsList.end (); itr++) {
254 
255  QString curveName = itr.key();
256  const ColorFilterSettings &colorFilterSettings = itr.value();
257 
258  colorFilterSettings.saveXml(writer,
259  curveName);
260  }
261 
262  writer.writeEndElement();
263 }
Color filter parameters for one curve. For a class, this is handled the same as LineStyle and PointSt...
#define LOG4CPP_INFO_S(logger)
Definition: convenience.h:18
void saveXml(QXmlStreamWriter &writer, const QString &curveName) const
Save curve filter to stream.
const QString DOCUMENT_SERIALIZE_FILTER
const ColorFilterSettings colorFilterSettings(const QString &curveName) const
Get method for copying one color filter. Cannot return just a reference or else there is a warning ab...
log4cpp::Category * mainCat
Definition: Logger.cpp:14
void DocumentModelColorFilter::setColorFilterMode ( const QString &  curveName,
ColorFilterMode  colorFilterMode 
)

Set method for filter mode.

Definition at line 265 of file DocumentModelColorFilter.cpp.

267 {
268  ENGAUGE_ASSERT (m_colorFilterSettingsList.contains (curveName));
269  m_colorFilterSettingsList [curveName].setColorFilterMode(colorFilterMode);
270 }
ColorFilterMode colorFilterMode(const QString &curveName) const
Get method for filter mode.
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Definition: EngaugeAssert.h:20
void DocumentModelColorFilter::setForegroundHigh ( const QString &  curveName,
int  foregroundHigh 
)

Set method for foreground higher bound.

Definition at line 272 of file DocumentModelColorFilter.cpp.

274 {
275  ENGAUGE_ASSERT (m_colorFilterSettingsList.contains (curveName));
276  m_colorFilterSettingsList [curveName].setForegroundHigh(foregroundHigh);
277 }
int foregroundHigh(const QString &curveName) const
Get method for foreground higher bound.
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Definition: EngaugeAssert.h:20
void DocumentModelColorFilter::setForegroundLow ( const QString &  curveName,
int  foregroundLow 
)

Set method for foreground lower bound.

Definition at line 279 of file DocumentModelColorFilter.cpp.

281 {
282  ENGAUGE_ASSERT (m_colorFilterSettingsList.contains (curveName));
283  m_colorFilterSettingsList [curveName].setForegroundLow(foregroundLow);
284 }
int foregroundLow(const QString &curveName) const
Get method for foreground lower bound.
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Definition: EngaugeAssert.h:20
void DocumentModelColorFilter::setHigh ( const QString &  curveName,
double  s0To1 
)

Set the high value for the current filter mode.

Definition at line 286 of file DocumentModelColorFilter.cpp.

288 {
289  ENGAUGE_ASSERT (m_colorFilterSettingsList.contains (curveName));
290  m_colorFilterSettingsList [curveName].setHigh(s0To1);
291 }
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Definition: EngaugeAssert.h:20
void DocumentModelColorFilter::setHueHigh ( const QString &  curveName,
int  hueHigh 
)

Set method for hue higher bound.

Definition at line 293 of file DocumentModelColorFilter.cpp.

295 {
296  ENGAUGE_ASSERT (m_colorFilterSettingsList.contains (curveName));
297  m_colorFilterSettingsList [curveName].setHueHigh(hueHigh);
298 }
int hueHigh(const QString &curveName) const
Get method for hue higher bound.
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Definition: EngaugeAssert.h:20
void DocumentModelColorFilter::setHueLow ( const QString &  curveName,
int  hueLow 
)

Set method for hue lower bound.

Definition at line 300 of file DocumentModelColorFilter.cpp.

302 {
303  ENGAUGE_ASSERT (m_colorFilterSettingsList.contains (curveName));
304  m_colorFilterSettingsList [curveName].setHueLow(hueLow);
305 }
int hueLow(const QString &curveName) const
Get method for hue lower bound.
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Definition: EngaugeAssert.h:20
void DocumentModelColorFilter::setIntensityHigh ( const QString &  curveName,
int  intensityHigh 
)

Set method for intensity higher bound.

Definition at line 307 of file DocumentModelColorFilter.cpp.

309 {
310  ENGAUGE_ASSERT (m_colorFilterSettingsList.contains (curveName));
311  m_colorFilterSettingsList [curveName].setIntensityHigh(intensityHigh);
312 }
int intensityHigh(const QString &curveName) const
Get method for intensity higher bound.
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Definition: EngaugeAssert.h:20
void DocumentModelColorFilter::setIntensityLow ( const QString &  curveName,
int  intensityLow 
)

Set method for intensity lower bound.

Definition at line 314 of file DocumentModelColorFilter.cpp.

316 {
317  ENGAUGE_ASSERT (m_colorFilterSettingsList.contains (curveName));
318  m_colorFilterSettingsList [curveName].setIntensityLow(intensityLow);
319 }
int intensityLow(const QString &curveName) const
Get method for intensity lower bound.
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Definition: EngaugeAssert.h:20
void DocumentModelColorFilter::setLow ( const QString &  curveName,
double  s0To1 
)

Set the low value for the current filter mode.

Definition at line 321 of file DocumentModelColorFilter.cpp.

323 {
324  ENGAUGE_ASSERT (m_colorFilterSettingsList.contains (curveName));
325  m_colorFilterSettingsList [curveName].setLow(s0To1);
326 }
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Definition: EngaugeAssert.h:20
void DocumentModelColorFilter::setSaturationHigh ( const QString &  curveName,
int  saturationHigh 
)

Set method for saturation high.

Definition at line 328 of file DocumentModelColorFilter.cpp.

330 {
331  ENGAUGE_ASSERT (m_colorFilterSettingsList.contains (curveName));
332  m_colorFilterSettingsList [curveName].setSaturationHigh(saturationHigh);
333 }
int saturationHigh(const QString &curveName) const
Get method for saturation higher bound.
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Definition: EngaugeAssert.h:20
void DocumentModelColorFilter::setSaturationLow ( const QString &  curveName,
int  saturationLow 
)

Set method for saturation low.

Definition at line 335 of file DocumentModelColorFilter.cpp.

337 {
338  ENGAUGE_ASSERT (m_colorFilterSettingsList.contains (curveName));
339  m_colorFilterSettingsList [curveName].setSaturationLow(saturationLow);
340 }
int saturationLow(const QString &curveName) const
Get method for saturation lower bound.
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Definition: EngaugeAssert.h:20
void DocumentModelColorFilter::setValueHigh ( const QString &  curveName,
int  valueHigh 
)

Set method for value high.

Definition at line 342 of file DocumentModelColorFilter.cpp.

344 {
345  ENGAUGE_ASSERT (m_colorFilterSettingsList.contains (curveName));
346  m_colorFilterSettingsList [curveName].setValueHigh(valueHigh);
347 }
int valueHigh(const QString &curveName) const
Get method for value high.
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Definition: EngaugeAssert.h:20
void DocumentModelColorFilter::setValueLow ( const QString &  curveName,
int  valueLow 
)

Set method for value low.

Definition at line 349 of file DocumentModelColorFilter.cpp.

351 {
352  ENGAUGE_ASSERT (m_colorFilterSettingsList.contains (curveName));
353  m_colorFilterSettingsList [curveName].setValueLow(valueLow);
354 }
int valueLow(const QString &curveName) const
Get method for value low.
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Definition: EngaugeAssert.h:20
int DocumentModelColorFilter::valueHigh ( const QString &  curveName) const

Get method for value high.

Definition at line 356 of file DocumentModelColorFilter.cpp.

357 {
358  ENGAUGE_ASSERT (m_colorFilterSettingsList.contains (curveName));
359  return m_colorFilterSettingsList [curveName].valueHigh();
360 }
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Definition: EngaugeAssert.h:20
int DocumentModelColorFilter::valueLow ( const QString &  curveName) const

Get method for value low.

Definition at line 362 of file DocumentModelColorFilter.cpp.

363 {
364  ENGAUGE_ASSERT (m_colorFilterSettingsList.contains (curveName));
365  return m_colorFilterSettingsList [curveName].valueLow();
366 }
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Definition: EngaugeAssert.h:20

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