Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
SamplesCountFilter Class Reference

#include <samples_count.h>

Inheritance diagram for SamplesCountFilter:
Inheritance graph
[legend]

Public Member Functions

const char * name () const override
 Name of the plugin type, NOT the particular instance. More...
 
QWidget * optionsWidget () override
 optionsWidget pointer to a persistent widget used to set the plugin options . More...
 
 SamplesCountFilter ()
 
bool xmlLoadState (const QDomElement &parent_element) override
 Override this method to load the status of the plugin from XML. More...
 
bool xmlSaveState (QDomDocument &doc, QDomElement &parent_element) const override
 Override this method to save the status of the plugin to XML. More...
 
 ~SamplesCountFilter () override
 
- Public Member Functions inherited from PJ::TransformFunction_SISO
void calculate () override
 
const PlotDatadataSource () const
 
int numInputs () const override
 
int numOutputs () const override
 
void reset () override
 
 TransformFunction_SISO ()=default
 
- Public Member Functions inherited from PJ::TransformFunction
std::vector< const PlotData * > & dataSources ()
 
unsigned order () const
 
PlotDataMapRefplotData ()
 
virtual void setData (PlotDataMapRef *data, const std::vector< const PlotData * > &src_vect, std::vector< PlotData * > &dst_vect)
 
 TransformFunction ()
 
virtual ~TransformFunction ()=default
 
- Public Member Functions inherited from PJ::PlotJugglerPlugin
virtual const std::vector< QAction * > & availableActions ()
 
virtual bool isDebugPlugin ()
 
 PlotJugglerPlugin ()=default
 
QDomElement xmlSaveState (QDomDocument &doc) const
 

Static Public Member Functions

static const char * transformName ()
 

Private Member Functions

std::optional< PlotData::PointcalculateNextPoint (size_t index) override
 

Private Attributes

QWidget * _widget
 
int count_ = 0
 
double interval_end_ = 0
 
Ui::SamplesCount * ui
 

Additional Inherited Members

- Public Types inherited from PJ::TransformFunction
using Ptr = std::shared_ptr< TransformFunction >
 
- Signals inherited from PJ::TransformFunction
void parametersChanged ()
 
- Protected Attributes inherited from PJ::TransformFunction_SISO
double _last_timestamp = std::numeric_limits<double>::lowest()
 
- Protected Attributes inherited from PJ::TransformFunction
PlotDataMapRef_data
 
std::vector< PlotData * > _dst_vector
 
unsigned _order
 
std::vector< const PlotData * > _src_vector
 

Detailed Description

Definition at line 13 of file samples_count.h.

Constructor & Destructor Documentation

◆ SamplesCountFilter()

SamplesCountFilter::SamplesCountFilter ( )
explicit

Definition at line 6 of file samples_count.cpp.

◆ ~SamplesCountFilter()

SamplesCountFilter::~SamplesCountFilter ( )
override

Definition at line 15 of file samples_count.cpp.

Member Function Documentation

◆ calculateNextPoint()

std::optional< PJ::PlotData::Point > SamplesCountFilter::calculateNextPoint ( size_t  index)
overrideprivatevirtual

Method to be implemented by the user to apply a statefull function to each point. Index will increase monotonically, unless reset() is used.

Implements PJ::TransformFunction_SISO.

Definition at line 47 of file samples_count.cpp.

◆ name()

const char* SamplesCountFilter::name ( ) const
inlineoverridevirtual

Name of the plugin type, NOT the particular instance.

Implements PJ::TransformFunction.

Definition at line 25 of file samples_count.h.

◆ optionsWidget()

QWidget * SamplesCountFilter::optionsWidget ( )
overridevirtual

optionsWidget pointer to a persistent widget used to set the plugin options .

Reimplemented from PJ::PlotJugglerPlugin.

Definition at line 21 of file samples_count.cpp.

◆ transformName()

static const char* SamplesCountFilter::transformName ( )
inlinestatic

Definition at line 20 of file samples_count.h.

◆ xmlLoadState()

bool SamplesCountFilter::xmlLoadState ( const QDomElement &  parent_element)
overridevirtual

Override this method to load the status of the plugin from XML.

Reimplemented from PJ::PlotJugglerPlugin.

Definition at line 35 of file samples_count.cpp.

◆ xmlSaveState()

bool SamplesCountFilter::xmlSaveState ( QDomDocument &  doc,
QDomElement &  parent_element 
) const
overridevirtual

Override this method to save the status of the plugin to XML.

Reimplemented from PJ::PlotJugglerPlugin.

Definition at line 26 of file samples_count.cpp.

Member Data Documentation

◆ _widget

QWidget* SamplesCountFilter::_widget
private

Definition at line 38 of file samples_count.h.

◆ count_

int SamplesCountFilter::count_ = 0
private

Definition at line 40 of file samples_count.h.

◆ interval_end_

double SamplesCountFilter::interval_end_ = 0
private

Definition at line 41 of file samples_count.h.

◆ ui

Ui::SamplesCount* SamplesCountFilter::ui
private

Definition at line 37 of file samples_count.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:30