#include <view.hpp>
|
static std::vector< std::shared_ptr< Trace > > | extract_new_traces_for_channels (const std::vector< std::shared_ptr< sigrok::Channel > > &channels, const std::unordered_map< std::shared_ptr< sigrok::Channel >, std::shared_ptr< Signal > > &signal_map, std::set< std::shared_ptr< Trace > > &add_list) |
|
Definition at line 60 of file view.hpp.
Enumerator |
---|
TraceTreeItemHExtentsChanged |
|
TraceTreeItemVExtentsChanged |
|
Definition at line 64 of file view.hpp.
pv::view::View::View |
( |
Session & |
session, |
|
|
QWidget * |
parent = 0 |
|
) |
| |
|
explicit |
Adds a new flag at a specified time.
Definition at line 492 of file view.cpp.
void pv::view::View::always_zoom_to_fit_changed |
( |
bool |
state | ) |
|
|
signal |
void pv::view::View::calculate_tick_spacing |
( |
| ) |
|
|
private |
Find a tick spacing and number formatting that does not cause the values to collide.
Definition at line 585 of file view.cpp.
void pv::view::View::capture_state_updated |
( |
int |
state | ) |
|
|
privateslot |
void pv::view::View::centre_cursors |
( |
| ) |
|
Moves the cursors to a convenient position in the view.
Definition at line 478 of file view.cpp.
std::shared_ptr< CursorPair > pv::view::View::cursors |
( |
| ) |
const |
Returns a reference to the pair of cursors.
Definition at line 487 of file view.cpp.
bool pv::view::View::cursors_shown |
( |
| ) |
const |
Returns true if cursors are displayed. false otherwise.
Definition at line 466 of file view.cpp.
void pv::view::View::data_updated |
( |
| ) |
|
|
privateslot |
unsigned int pv::view::View::depth |
( |
| ) |
const |
|
virtual |
void pv::view::View::determine_time_unit |
( |
| ) |
|
|
private |
void pv::view::View::enable_coloured_bg |
( |
bool |
state | ) |
|
Enables or disables coloured trace backgrounds. If they're not coloured then they will use alternating colors.
Definition at line 441 of file view.cpp.
void pv::view::View::enable_sticky_scrolling |
( |
bool |
state | ) |
|
Enables or disables sticky scrolling, i.e. the view always shows the most recent samples when capturing data.
Definition at line 436 of file view.cpp.
bool pv::view::View::eventFilter |
( |
QObject * |
object, |
|
|
QEvent * |
event |
|
) |
| |
|
private |
void pv::view::View::extents_changed |
( |
bool |
horz, |
|
|
bool |
vert |
|
) |
| |
|
virtual |
vector< shared_ptr< Trace > > pv::view::View::extract_new_traces_for_channels |
( |
const std::vector< std::shared_ptr< sigrok::Channel > > & |
channels, |
|
|
const std::unordered_map< std::shared_ptr< sigrok::Channel >, std::shared_ptr< Signal > > & |
signal_map, |
|
|
std::set< std::shared_ptr< Trace > > & |
add_list |
|
) |
| |
|
staticprivate |
TraceTreeItemOwner * pv::view::View::find_prevalent_trace_group |
( |
const std::shared_ptr< sigrok::ChannelGroup > & |
group, |
|
|
const std::unordered_map< std::shared_ptr< sigrok::Channel >, std::shared_ptr< Signal > > & |
signal_map |
|
) |
| |
|
private |
vector< std::shared_ptr< Flag > > pv::view::View::flags |
( |
| ) |
const |
Gets the list of flags.
Definition at line 509 of file view.cpp.
pair< Timestamp, Timestamp > pv::view::View::get_time_extents |
( |
| ) |
const |
set< shared_ptr< SignalData > > pv::view::View::get_visible_data |
( |
| ) |
const |
void pv::view::View::h_scroll_value_changed |
( |
int |
value | ) |
|
|
privateslot |
const QPoint & pv::view::View::hover_point |
( |
| ) |
const |
void pv::view::View::hover_point_changed |
( |
| ) |
|
|
signal |
QRectF pv::view::View::label_rect |
( |
const QRectF & |
rect | ) |
|
|
private |
Computes the outline rectangle of a label.
- Parameters
-
rect | the rectangle of the header area. |
- Returns
- Returns the rectangle of the signal label.
Definition at line 710 of file view.cpp.
const Timestamp & pv::view::View::offset |
( |
| ) |
const |
Returns the time offset of the left edge of the view in seconds.
Definition at line 233 of file view.cpp.
void pv::view::View::offset_changed |
( |
| ) |
|
|
signal |
Emitted when the offset changed.
Definition at line 319 of file moc_view.cpp.
void pv::view::View::on_hover_point_changed |
( |
| ) |
|
|
privateslot |
int pv::view::View::owner_visual_v_offset |
( |
| ) |
const |
|
virtual |
void pv::view::View::paint_label |
( |
QPainter & |
p, |
|
|
const QRect & |
rect, |
|
|
bool |
hover |
|
) |
| |
|
private |
Satisifies TraceTreeItem functionality.
- Parameters
-
p | the QPainter to paint into. |
rect | the rectangle of the header area. |
hover | true if the label is being hovered over by the mouse. |
Definition at line 703 of file view.cpp.
void pv::view::View::perform_delayed_view_update |
( |
| ) |
|
|
privateslot |
void pv::view::View::process_sticky_events |
( |
| ) |
|
|
privateslot |
void pv::view::View::remove_flag |
( |
std::shared_ptr< Flag > |
flag | ) |
|
Removes a flag from the list.
Definition at line 503 of file view.cpp.
void pv::view::View::resizeEvent |
( |
QResizeEvent * |
e | ) |
|
|
private |
void pv::view::View::restack_all_trace_tree_items |
( |
| ) |
|
void pv::view::View::row_item_appearance_changed |
( |
bool |
label, |
|
|
bool |
content |
|
) |
| |
|
virtual |
double pv::view::View::scale |
( |
| ) |
const |
Returns the view time scale in seconds per pixel.
Definition at line 220 of file view.cpp.
void pv::view::View::scale_changed |
( |
| ) |
|
|
signal |
Emitted when the scale changed.
Definition at line 325 of file moc_view.cpp.
void pv::view::View::selection_changed |
( |
| ) |
|
|
signal |
Session & pv::view::View::session |
( |
| ) |
|
|
virtual |
const Session & pv::view::View::session |
( |
| ) |
const |
|
virtual |
Sets the 'offset_' member and emits the 'offset_changed' signal if needed.
Definition at line 238 of file view.cpp.
void pv::view::View::set_scale |
( |
double |
scale | ) |
|
|
privateslot |
Sets the 'scale_' member and emits the 'scale_changed' signal if needed.
Definition at line 225 of file view.cpp.
Sets the scale and offset.
- Parameters
-
scale | The new view scale in seconds per pixel. |
offset | The view time offset in seconds. |
Definition at line 367 of file view.cpp.
Sets the 'tick_period_' member and emits the 'tick_period_changed' signal if needed.
Definition at line 294 of file view.cpp.
void pv::view::View::set_tick_precision |
( |
unsigned |
tick_precision | ) |
|
|
privateslot |
Sets the 'tick_precision_' member and emits the 'tick_precision_changed' signal if needed.
Definition at line 281 of file view.cpp.
Sets the 'tick_prefix_' member and emits the 'tick_prefix_changed' signal if needed.
Definition at line 268 of file view.cpp.
Sets the 'time_unit' member and emits the 'time_unit_changed' signal if needed.
Definition at line 307 of file view.cpp.
void pv::view::View::set_v_offset |
( |
int |
offset | ) |
|
Sets the visual v-offset.
Definition at line 251 of file view.cpp.
void pv::view::View::set_zoom |
( |
double |
scale, |
|
|
int |
offset |
|
) |
| |
|
private |
Simultaneously sets the zoom and offset.
- Parameters
-
scale | The scale to set the view to in seconds per pixel. This value is clamped between MinScale and MaxScale. |
offset | The offset of the left edge of the view in seconds. |
Definition at line 573 of file view.cpp.
void pv::view::View::show_cursors |
( |
bool |
show = true | ) |
|
Shows or hides the cursors.
Definition at line 471 of file view.cpp.
void pv::view::View::signals_changed |
( |
| ) |
|
|
privateslot |
void pv::view::View::sticky_scrolling_changed |
( |
bool |
state | ) |
|
|
signal |
Returns period of the graticule time markings.
Definition at line 289 of file view.cpp.
void pv::view::View::tick_period_changed |
( |
| ) |
|
|
signal |
Emitted when the tick_period changed.
Definition at line 357 of file moc_view.cpp.
unsigned int pv::view::View::tick_precision |
( |
| ) |
const |
Returns the number of fractional digits shown for the time markings.
Definition at line 276 of file view.cpp.
void pv::view::View::tick_precision_changed |
( |
| ) |
|
|
signal |
Emitted when the tick_precision changed.
Definition at line 351 of file moc_view.cpp.
Returns the SI prefix to apply to the graticule time markings.
Definition at line 263 of file view.cpp.
void pv::view::View::tick_prefix_changed |
( |
| ) |
|
|
signal |
Emitted when the tick_prefix changed.
Definition at line 345 of file moc_view.cpp.
void pv::view::View::time_item_appearance_changed |
( |
bool |
label, |
|
|
bool |
content |
|
) |
| |
vector< shared_ptr< TimeItem > > pv::view::View::time_items |
( |
| ) |
const |
Gets a list of time markers.
Definition at line 206 of file view.cpp.
TimeUnit pv::view::View::time_unit |
( |
| ) |
const |
Returns the unit of time currently used.
Definition at line 302 of file view.cpp.
void pv::view::View::time_unit_changed |
( |
| ) |
|
|
signal |
Emitted when the time_unit changed.
Definition at line 363 of file moc_view.cpp.
void pv::view::View::update_layout |
( |
| ) |
|
|
private |
void pv::view::View::update_scroll |
( |
| ) |
|
|
private |
void pv::view::View::update_viewport |
( |
| ) |
|
void pv::view::View::v_scroll_value_changed |
( |
| ) |
|
|
privateslot |
View * pv::view::View::view |
( |
| ) |
|
|
virtual |
const View * pv::view::View::view |
( |
| ) |
const |
|
virtual |
const Viewport * pv::view::View::viewport |
( |
| ) |
const |
bool pv::view::View::viewportEvent |
( |
QEvent * |
e | ) |
|
|
private |
void pv::view::View::zoom |
( |
double |
steps | ) |
|
void pv::view::View::zoom |
( |
double |
steps, |
|
|
int |
offset |
|
) |
| |
void pv::view::View::zoom_fit |
( |
bool |
gui_state | ) |
|
void pv::view::View::zoom_one_to_one |
( |
| ) |
|
bool pv::view::View::always_zoom_to_fit_ |
|
private |
std::shared_ptr<CursorPair> pv::view::View::cursors_ |
|
private |
QTimer pv::view::View::delayed_view_updater_ |
|
private |
std::list< std::shared_ptr<Flag> > pv::view::View::flags_ |
|
private |
Header* pv::view::View::header_ |
|
private |
QPoint pv::view::View::hover_point_ |
|
private |
QTimer pv::view::View::lazy_event_handler_ |
|
private |
const Timestamp pv::view::View::MaxScale |
|
staticprivate |
const int pv::view::View::MaxScrollValue = INT_MAX / 2 |
|
staticprivate |
const int pv::view::View::MaxViewAutoUpdateRate = 25 |
|
staticprivate |
const Timestamp pv::view::View::MinScale |
|
staticprivate |
char pv::view::View::next_flag_text_ |
|
private |
The view time offset in seconds.
Definition at line 375 of file view.hpp.
Ruler* pv::view::View::ruler_ |
|
private |
double pv::view::View::scale_ |
|
private |
The view time scale in seconds per pixel.
Definition at line 372 of file view.hpp.
const int pv::view::View::ScaleUnits = {1, 2, 5} |
|
staticprivate |
bool pv::view::View::show_cursors_ |
|
private |
unsigned int pv::view::View::sticky_events_ |
|
private |
bool pv::view::View::sticky_scrolling_ |
|
private |
unsigned int pv::view::View::tick_precision_ |
|
private |
std::vector< std::shared_ptr<TriggerMarker> > pv::view::View::trigger_markers_ |
|
private |
bool pv::view::View::updating_scroll_ |
|
private |
The documentation for this class was generated from the following files: