39 lines
620 B
C++
39 lines
620 B
C++
/*
|
|
* ValueView.cpp
|
|
*
|
|
* Created on: 2 äåê. 2023 ã.
|
|
* Author: titov
|
|
*/
|
|
|
|
#include "ValueView.hh"
|
|
|
|
void processing::acs::ValueView::set( TypeInput point ) {
|
|
|
|
value = point;
|
|
|
|
output->set( point );
|
|
|
|
}
|
|
|
|
processing::acs::ValueView::TypeOutput processing::acs::ValueView::get() const {
|
|
|
|
//todo: Ðåàëèçîâàòü ëèáî îøèáêó, ëèáî åùå ÷òî.
|
|
return 0.0f;
|
|
|
|
}
|
|
|
|
void processing::acs::ValueView::set_output( SetInterface * new_output ) {
|
|
|
|
output = new_output;
|
|
|
|
}
|
|
|
|
void processing::acs::ValueView::reset() {
|
|
|
|
value = NAN;
|
|
|
|
}
|
|
|
|
processing::acs::ValueView::ValueView() :
|
|
value(NAN), output(nullptr) {}
|