45 lines
853 B
C++
45 lines
853 B
C++
/*
|
||
* PhaseSpaceView.cpp
|
||
*
|
||
* Created on: 2 дек. 2023 г.
|
||
* Author: titov
|
||
*/
|
||
|
||
#include "PhaseSpaceView.hh"
|
||
|
||
#include <cmath>
|
||
|
||
void processing::acs::PhaseSpaceView::set( TypeInput point ) {
|
||
|
||
value = point.value;
|
||
d_value = point.d_value;
|
||
|
||
output->set( point );
|
||
|
||
}
|
||
|
||
processing::acs::PhaseSpaceView::TypeOutput processing::acs::PhaseSpaceView::get() const {
|
||
|
||
//todo: Реализовать либо ошибку, либо еще что.
|
||
processing::acs::PhaseSpaceView::TypeOutput none(0.0f, 0.0f);
|
||
return none;
|
||
|
||
}
|
||
|
||
void processing::acs::PhaseSpaceView::set_output( SetInterface * new_output ) {
|
||
|
||
output = new_output;
|
||
|
||
}
|
||
|
||
void processing::acs::PhaseSpaceView::reset() {
|
||
|
||
value = NAN;
|
||
d_value = NAN;
|
||
|
||
}
|
||
|
||
processing::acs::PhaseSpaceView::PhaseSpaceView() :
|
||
value(NAN), d_value(NAN), output(nullptr) {}
|
||
|