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
"
3
template
<
class
T>
4
class
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
13
public
:
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
23
#include "
Ports/PortGaussian.hpp
"
Port.h
PortGaussian.hpp
sourceType
sourceType
Definition
SourceTarget.h:4
axis
axis
Definition
SourceTarget.h:5
PortGaussian
Definition
PortGaussian.h:5
PortGaussian::PortGaussian
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
PortGaussian::CalculateCurrentValue
T CalculateCurrentValue(float currentTime) override
Definition
PortGaussian.hpp:5
Port
Definition
Port.h:11
Port::EFunc
float EFunc(float exponent)
Definition
Port.h:157
Port::_index
index_t _index
Definition
Port.h:151
Services
FITTDService
include
Ports
PortGaussian.h
Generated by
1.10.0