SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
Public Member Functions | Private Attributes | List of all members
SpectrumScopeComboVis Class Reference

#include <spectrumscopecombovis.h>

+ Inheritance diagram for SpectrumScopeComboVis:
+ Collaboration diagram for SpectrumScopeComboVis:

Public Member Functions

 SpectrumScopeComboVis (SpectrumVis *spectrumVis, ScopeVis *scopeVis)
 
virtual ~SpectrumScopeComboVis ()
 
virtual void feed (const SampleVector::const_iterator &begin, const SampleVector::const_iterator &end, bool positiveOnly)
 
virtual void start ()
 
virtual void stop ()
 
virtual bool handleMessage (const Message &message)
 Processing of a message. Returns true if message has actually been processed. More...
 
- Public Member Functions inherited from BasebandSampleSink
 BasebandSampleSink ()
 
virtual ~BasebandSampleSink ()
 
MessageQueuegetInputMessageQueue ()
 Get the queue for asynchronous inbound communication. More...
 
virtual void setMessageQueueToGUI (MessageQueue *queue)
 
MessageQueuegetMessageQueueToGUI ()
 

Private Attributes

SpectrumVism_spectrumVis
 
ScopeVism_scopeVis
 

Additional Inherited Members

- Protected Slots inherited from BasebandSampleSink
void handleInputMessages ()
 
- Protected Attributes inherited from BasebandSampleSink
MessageQueue m_inputMessageQueue
 Queue for asynchronous inbound communication. More...
 
MessageQueuem_guiMessageQueue
 Input message queue to the GUI. More...
 

Detailed Description

Definition at line 11 of file spectrumscopecombovis.h.

Constructor & Destructor Documentation

◆ SpectrumScopeComboVis()

SpectrumScopeComboVis::SpectrumScopeComboVis ( SpectrumVis spectrumVis,
ScopeVis scopeVis 
)

Definition at line 6 of file spectrumscopecombovis.cpp.

6  :
7  m_spectrumVis(spectrumVis),
8  m_scopeVis(scopeVis)
9 {
10  setObjectName("SpectrumScopeComboVis");
11 }

◆ ~SpectrumScopeComboVis()

SpectrumScopeComboVis::~SpectrumScopeComboVis ( )
virtual

Definition at line 13 of file spectrumscopecombovis.cpp.

14 {
15 }

Member Function Documentation

◆ feed()

void SpectrumScopeComboVis::feed ( const SampleVector::const_iterator &  begin,
const SampleVector::const_iterator &  end,
bool  positiveOnly 
)
virtual

Implements BasebandSampleSink.

Definition at line 17 of file spectrumscopecombovis.cpp.

References ScopeVis::feed(), SpectrumVis::feedTriggered(), ScopeVis::getTriggerLocation(), m_scopeVis, and m_spectrumVis.

18 {
19  (void) positiveOnly;
20  m_scopeVis->feed(begin, end, false);
21  //SampleVector::const_iterator triggerPoint = m_scopeVis->getTriggerPoint();
22  //m_spectrumVis->feedTriggered(triggerPoint, end, positiveOnly);
23  int triggerPointLocation = m_scopeVis->getTriggerLocation();
24  if ((triggerPointLocation >= 0) && (triggerPointLocation <= end - begin)) {
25  m_spectrumVis->feedTriggered(end - triggerPointLocation, end, positiveOnly);
26  } else {
27  m_spectrumVis->feedTriggered(begin, end, positiveOnly);
28  }
29 }
virtual void feed(const SampleVector::const_iterator &begin, const SampleVector::const_iterator &end, bool positiveOnly)
Definition: scopevis.cpp:221
int getTriggerLocation() const
Definition: scopevis.h:247
void feedTriggered(const SampleVector::const_iterator &triggerPoint, const SampleVector::const_iterator &end, bool positiveOnly)
Definition: spectrumvis.cpp:56
+ Here is the call graph for this function:

◆ handleMessage()

bool SpectrumScopeComboVis::handleMessage ( const Message cmd)
virtual

Processing of a message. Returns true if message has actually been processed.

Implements BasebandSampleSink.

Definition at line 43 of file spectrumscopecombovis.cpp.

References SpectrumVis::handleMessage(), ScopeVis::handleMessage(), m_scopeVis, and m_spectrumVis.

44 {
45  bool spectDone = m_spectrumVis->handleMessage(message);
46  bool scopeDone = m_scopeVis->handleMessage(message);
47 
48  return (spectDone || scopeDone);
49 }
virtual bool handleMessage(const Message &message)
Processing of a message. Returns true if message has actually been processed.
virtual bool handleMessage(const Message &message)
Processing of a message. Returns true if message has actually been processed.
Definition: scopevis.cpp:650
+ Here is the call graph for this function:

◆ start()

void SpectrumScopeComboVis::start ( )
virtual

Implements BasebandSampleSink.

Definition at line 31 of file spectrumscopecombovis.cpp.

References m_scopeVis, m_spectrumVis, SpectrumVis::start(), and ScopeVis::start().

32 {
34  m_scopeVis->start();
35 }
virtual void start()
Definition: scopevis.cpp:642
virtual void start()
+ Here is the call graph for this function:

◆ stop()

void SpectrumScopeComboVis::stop ( )
virtual

Implements BasebandSampleSink.

Definition at line 37 of file spectrumscopecombovis.cpp.

References m_scopeVis, m_spectrumVis, SpectrumVis::stop(), and ScopeVis::stop().

38 {
40  m_scopeVis->stop();
41 }
virtual void stop()
virtual void stop()
Definition: scopevis.cpp:646
+ Here is the call graph for this function:

Member Data Documentation

◆ m_scopeVis

ScopeVis* SpectrumScopeComboVis::m_scopeVis
private

Definition at line 24 of file spectrumscopecombovis.h.

Referenced by feed(), handleMessage(), start(), and stop().

◆ m_spectrumVis

SpectrumVis* SpectrumScopeComboVis::m_spectrumVis
private

Definition at line 23 of file spectrumscopecombovis.h.

Referenced by feed(), handleMessage(), start(), and stop().


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