3 #include <QApplication> 31 virtual const char*
name()
const = 0;
40 if (dst_data->
size() != 0)
46 size_t index = pos < 0 ? 0 : static_cast<size_t>(pos);
48 while(index < _src_data->size())
56 dst_data->
pushBack( out_point.value() );
102 std::map<std::string, std::function<TimeSeriesTransformPtr()>>
creators_;
110 return instance()->names_;
116 std::string
name = temp.name();
117 instance()->names_.insert(name);
118 instance()->creators_[
name] = [](){
return std::make_shared<T>(); };
123 auto it = instance()->creators_.find(name);
124 if( it == instance()->creators_.end())
141 if (!qApp->property(
"TransformFactory").isValid() && !_ptr) {
142 _ptr = _transform_factory_ptr_from_macro;
143 qApp->setProperty(
"TransformFactory", QVariant::fromValue(_ptr));
146 _ptr = qvariant_cast<
TransformFactory *>(qApp->property(
"TransformFactory"));
148 else if (!qApp->property(
"TransformFactory").isValid()) {
149 qApp->setProperty(
"TransformFactory", QVariant::fromValue(_ptr));
156 #define TimeSeriesTransform_iid "facontidavide.PlotJuggler3.TimeSeriesTransform" const Point & back() const
const Point & at(size_t index) const
double maximumRangeX() const
int getIndexFromX(double x) const
void setMaximumRangeX(double max_range)
std::shared_ptr< TimeSeriesTransform > TimeSeriesTransformPtr
virtual size_t size() const
void pushBack(const Point &p)