Krita Source Code Documentation
Loading...
Searching...
No Matches
SeExprVariable.cpp
Go to the documentation of this file.
1/*
2 * This file is part of Krita
3 *
4 * SPDX-FileCopyrightText: 2020 L. E. Segovia <amy@amyspark.me>
5 *
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8
9#include "SeExprVariable.h"
10
12 : KSeExpr::ExprVarRef(KSeExpr::ExprType().FP(1).Varying())
13 , m_value(0)
14{
15}
16
18 : KSeExpr::ExprVarRef(KSeExpr::ExprType().FP(1).Varying())
19 , m_value(v)
20{
21}
22
23void SeExprVariable::eval(double *result)
24{
25 result[0] = m_value;
26}
27
28void SeExprVariable::eval(const char **)
29{
30 Q_ASSERT(!"Sanity check");
31}
qreal v
void eval(double *result) override