projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make member variable underscores a suffix instead of a prefix
[pulseview.git]
/
pv
/
view
/
analogsignal.h
diff --git
a/pv/view/analogsignal.h
b/pv/view/analogsignal.h
index a7ae455b8598159e47c738a48cc5e8176ace3ed7..326e6fbc98ab4ab3990e08696a959630a3e12641 100644
(file)
--- a/
pv/view/analogsignal.h
+++ b/
pv/view/analogsignal.h
@@
-37,6
+37,7
@@
namespace view {
class AnalogSignal : public Signal
{
private:
class AnalogSignal : public Signal
{
private:
+ static const int NominalHeight;
static const QColor SignalColours[4];
static const float EnvelopeThreshold;
static const QColor SignalColours[4];
static const float EnvelopeThreshold;
@@
-54,6
+55,12
@@
public:
void set_scale(float scale);
void set_scale(float scale);
+ /**
+ * Computes the vertical extents of the contents of this row item.
+ * @return A pair containing the minimum and maximum y-values.
+ */
+ std::pair<int, int> v_extents() const;
+
/**
* Paints the background layer of the signal with a QPainter
* @param p the QPainter to paint into.
/**
* Paints the background layer of the signal with a QPainter
* @param p the QPainter to paint into.
@@
-82,8
+89,8
@@
private:
const double pixels_offset, const double samples_per_pixel);
private:
const double pixels_offset, const double samples_per_pixel);
private:
- std::shared_ptr<pv::data::Analog>
_data
;
- float
_scale
;
+ std::shared_ptr<pv::data::Analog>
data_
;
+ float
scale_
;
};
} // namespace view
};
} // namespace view