OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
PortGaussian.h
Go to the documentation of this file.
1#pragma once
2#include "Ports/Port.h"
3template <class T>
4class PortGaussian : public Port<T>
5{
6 using Port<T>::_index;
7 using Port<T>::EFunc;
8
9 int _middlePoint;
10 int _deviation;
11 T CalculateCurrentValue(float currentTime) override;
12
13public:
14 PortGaussian(std::string portName, std::pair<Point3D, index_t> &location, sourceType fieldType, axis sourceAxis, std::string signalName, int middlePoint, int deviation)
15 : Port<T>(portName, location, fieldType, sourceAxis, signalName), _middlePoint(middlePoint) , _deviation(deviation)
16 {
17 //std::string specializedSettings = "Gaussian exitation with middlepoint: " + std::to_string(_middlePoint) +
18 //" and deviation: " + std::to_string(_deviation);
19 //CreateSettings(specializedSettings);
20 };
21};
22
sourceType
Definition SourceTarget.h:4
axis
Definition SourceTarget.h:5
Definition PortGaussian.h:5
PortGaussian(std::string portName, std::pair< Point3D, index_t > &location, sourceType fieldType, axis sourceAxis, std::string signalName, int middlePoint, int deviation)
Definition PortGaussian.h:14
T CalculateCurrentValue(float currentTime) override
Definition PortGaussian.hpp:5
Definition Port.h:11
float EFunc(float exponent)
Definition Port.h:157
index_t _index
Definition Port.h:151