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
11
SeExprVariable::SeExprVariable
()
12
: KSeExpr::ExprVarRef(KSeExpr::ExprType().FP(1).Varying())
13
, m_value(0)
14
{
15
}
16
17
SeExprVariable::SeExprVariable
(
const
double
v
)
18
: KSeExpr::ExprVarRef(KSeExpr::ExprType().FP(1).Varying())
19
, m_value(
v
)
20
{
21
}
22
23
void
SeExprVariable::eval
(
double
*result)
24
{
25
result[0] =
m_value
;
26
}
27
28
void
SeExprVariable::eval
(
const
char
**)
29
{
30
Q_ASSERT(!
"Sanity check"
);
31
}
v
qreal v
Definition
KisBezierUtils.cpp:702
SeExprVariable.h
SeExprVariable::m_value
double m_value
Definition
SeExprVariable.h:15
SeExprVariable::eval
void eval(double *result) override
Definition
SeExprVariable.cpp:23
SeExprVariable::SeExprVariable
SeExprVariable()
Definition
SeExprVariable.cpp:11
plugins
generators
seexpr
SeExprVariable.cpp
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52