![]() |
PulseView
unreleased development snapshot
A Qt-based sigrok GUI
|
#include <signal.hpp>
Public Member Functions | |
virtual void | set_name (QString name) |
virtual vector< data::LogicSegment::EdgePair > | get_nearest_level_changes (uint64_t sample_pos)=0 |
bool | enabled () const |
shared_ptr< data::SignalBase > | base () const |
virtual void | save_settings (QSettings &settings) const |
virtual std::map< QString, QVariant > | save_settings () const |
virtual void | restore_settings (QSettings &settings) |
virtual void | restore_settings (std::map< QString, QVariant > settings) |
void | paint_back (QPainter &p, ViewItemPaintParams &pp) |
virtual void | populate_popup_form (QWidget *parent, QFormLayout *form) |
QMenu * | create_header_context_menu (QWidget *parent) |
void | delete_pressed () |
![]() | |
shared_ptr< data::SignalBase > | base () const |
virtual bool | is_selectable (QPoint pos) const |
virtual bool | is_draggable (QPoint pos) const |
virtual void | set_segment_display_mode (SegmentDisplayMode mode) |
virtual void | on_setting_changed (const QString &key, const QVariant &value) |
virtual void | paint_label (QPainter &p, const QRect &rect, bool hover) |
virtual void | paint_error (QPainter &p, const ViewItemPaintParams &pp) |
virtual QMenu * | create_view_context_menu (QWidget *parent, QPoint &click_pos) |
pv::widgets::Popup * | create_popup (QWidget *parent) |
QRectF | label_rect (const QRectF &rect) const |
virtual QRectF | hit_box_rect (const ViewItemPaintParams &pp) const |
void | set_current_segment (const int segment) |
int | get_current_segment () const |
virtual void | hover_point_changed (const QPoint &hp) |
![]() | |
TraceTreeItem () | |
TraceTreeItemOwner * | owner () const |
void | select (bool select=true) |
int | layout_v_offset () const |
void | set_layout_v_offset (int v_offset) |
int | visual_v_offset () const |
void | set_visual_v_offset (int v_offset) |
void | force_to_v_offset (int v_offset) |
void | animate_to_layout_v_offset () |
virtual void | set_owner (TraceTreeItemOwner *owner) |
int | get_visual_y () const |
void | drag_by (const QPoint &delta) |
QPoint | drag_point (const QRect &rect) const |
virtual pair< int, int > | v_extents () const =0 |
![]() | |
ViewItem () | |
bool | selected () const |
bool | dragging () const |
void | drag () |
virtual void | drag_release () |
virtual void | paint_mid (QPainter &p, ViewItemPaintParams &pp) |
virtual void | paint_fore (QPainter &p, ViewItemPaintParams &pp) |
virtual void | mouse_left_press_event (const QMouseEvent *event) |
![]() | |
virtual const item_list & | child_items () const |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
template<class T > | |
vector< shared_ptr< T > > | list_by_type () |
Protected Slots | |
virtual void | on_name_changed (const QString &text) |
void | on_disable () |
void | on_enabled_changed (bool enabled) |
![]() | |
virtual void | on_name_changed (const QString &text) |
virtual void | on_color_changed (const QColor &color) |
virtual void | on_error_message_changed (const QString &msg) |
void | on_popup_closed () |
Protected Member Functions | |
Signal (pv::Session &session, shared_ptr< data::SignalBase > signal) | |
![]() | |
Trace (shared_ptr< data::SignalBase > signal) | |
~Trace () | |
void | paint_axis (QPainter &p, ViewItemPaintParams &pp, int y) |
void | paint_hover_marker (QPainter &p) |
void | add_color_option (QWidget *parent, QFormLayout *form) |
void | create_popup_form () |
Protected Attributes | |
pv::Session & | session_ |
QComboBox * | name_widget_ |
![]() | |
shared_ptr< data::SignalBase > | base_ |
QPen | axis_pen_ |
SegmentDisplayMode | segment_display_mode_ |
bool | show_hover_marker_ |
uint32_t | context_menu_x_pos_ |
int | current_segment_ |
The ID of the currently displayed segment. More... | |
![]() | |
TraceTreeItemOwner * | owner_ |
int | layout_v_offset_ |
int | visual_v_offset_ |
![]() | |
QWidget * | context_parent_ |
QPoint | drag_point_ |
![]() | |
item_list | items_ |
Additional Inherited Members | |
![]() | |
enum | SegmentDisplayMode { ShowLastSegmentOnly = 1, ShowLastCompleteSegmentOnly, ShowSingleSegmentOnly, ShowAllSegments, ShowAccumulatedIntensity } |
![]() | |
typedef vector< shared_ptr< ViewItem > > | item_list |
typedef ViewItemIterator< ViewItemOwner, ViewItem > | iterator |
typedef ViewItemIterator< const ViewItemOwner, ViewItem > | const_iterator |
![]() | |
static QColor | select_text_color (QColor background) |
![]() | |
static const QSizeF | LabelPadding |
static const int | HighlightRadius = 3 |
![]() | |
static QPen | highlight_pen () |
![]() | |
int | visual_v_offset |
The Signal class represents a series of numeric values that can be drawn. This is the main difference to the more generic Trace class.
It is generally accepted that Signal instances consider themselves to be individual channels on e.g. an oscilloscope, though it should be kept in mind that virtual signals (e.g. math) will also be served by the Signal class.
Definition at line 60 of file signal.hpp.
|
protected |
shared_ptr< data::SignalBase > pv::views::trace::Signal::base | ( | ) | const |
Definition at line 91 of file signal.cpp.
|
virtual |
Reimplemented from pv::views::trace::Trace.
Definition at line 158 of file signal.cpp.
|
virtual |
Reimplemented from pv::views::trace::ViewItem.
Definition at line 179 of file signal.cpp.
|
virtual |
Returns true if the trace is visible and enabled.
Implements pv::views::trace::ViewItem.
Definition at line 86 of file signal.cpp.
|
pure virtual |
Determines the closest level change (i.e. edge) to a given sample, which is useful for e.g. the "snap to edge" functionality.
sample_pos | Sample to use |
Implemented in pv::views::trace::AnalogSignal, and pv::views::trace::LogicSignal.
|
protectedslot |
Definition at line 197 of file signal.cpp.
|
protectedslot |
Definition at line 206 of file signal.cpp.
|
protectedvirtualslot |
|
virtual |
Paints the background layer of the signal with a QPainter.
p | The QPainter to paint into. |
pp | The painting parameters object to paint with. |
Reimplemented from pv::views::trace::Trace.
Definition at line 126 of file signal.cpp.
|
virtual |
Reimplemented from pv::views::trace::Trace.
Reimplemented in pv::views::trace::AnalogSignal, pv::views::trace::LogicSignal, and pv::views::trace::MathSignal.
Definition at line 132 of file signal.cpp.
|
virtual |
Definition at line 109 of file signal.cpp.
|
virtual |
Reimplemented in pv::views::trace::AnalogSignal, and pv::views::trace::LogicSignal.
Definition at line 120 of file signal.cpp.
|
virtual |
|
virtual |
Reimplemented in pv::views::trace::AnalogSignal, and pv::views::trace::LogicSignal.
Definition at line 104 of file signal.cpp.
|
virtual |
Sets the name of the signal.
Definition at line 78 of file signal.cpp.
|
protected |
Definition at line 113 of file signal.hpp.
|
protected |
Definition at line 111 of file signal.hpp.