mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-24 08:10:50 +01:00
[Interval] Coding style on compute
This commit is contained in:
committed by
EmilieNumworks
parent
f250311856
commit
43bceac2c9
@@ -53,10 +53,6 @@ void Interval::setElement(int i, double f) {
|
||||
}
|
||||
}
|
||||
|
||||
void Interval::setNeedRecompute(bool needrecompute) {
|
||||
m_needCompute = needrecompute;
|
||||
}
|
||||
|
||||
void Interval::reset() {
|
||||
m_start = 0.0;
|
||||
m_end = 10.0;
|
||||
|
||||
@@ -18,8 +18,8 @@ public:
|
||||
void setEnd(double f);
|
||||
void setStep(double f);
|
||||
void setElement(int i, double f);
|
||||
bool NeedRecompute() const { return m_needCompute; }
|
||||
void setNeedRecompute(bool needrecompute);
|
||||
bool needCompute() const { return m_needCompute; }
|
||||
void setNeedCompute(bool compute){ m_needCompute = compute;}
|
||||
void reset();
|
||||
void clear();
|
||||
// TODO: decide the max number of elements after optimization
|
||||
|
||||
@@ -85,7 +85,7 @@ int IntervalParameterController::reusableParameterCellCount(int type) {
|
||||
}
|
||||
|
||||
void IntervalParameterController::buttonAction() {
|
||||
m_interval->setNeedRecompute(true);
|
||||
m_interval->setNeedCompute(true);
|
||||
StackViewController * stack = stackController();
|
||||
stack->pop();
|
||||
if (stack->depth() > 1) {
|
||||
|
||||
Reference in New Issue
Block a user