Krita Source Code Documentation
Loading...
Searching...
No Matches
EnhancedPathConstantParameter Class Reference

A constant parameter, a fixed value (i.e. 5, 11.3, -7) More...

#include <EnhancedPathParameter.h>

+ Inheritance diagram for EnhancedPathConstantParameter:

Public Member Functions

 EnhancedPathConstantParameter (qreal value, EnhancedPathShape *parent)
 Constructs the constant parameter with the given value.
 
qreal evaluate () override
 evaluates the parameter using the given path
 
QString toString () const override
 returns string representation of the parameter
 
- Public Member Functions inherited from EnhancedPathParameter
 EnhancedPathParameter (EnhancedPathShape *parent)
 
virtual void modify (qreal value)
 modifies the parameter if possible, using the new value
 
virtual ~EnhancedPathParameter ()
 

Private Attributes

qreal m_value
 the constant value
 

Additional Inherited Members

- Protected Member Functions inherited from EnhancedPathParameter
EnhancedPathShapeparent ()
 

Detailed Description

A constant parameter, a fixed value (i.e. 5, 11.3, -7)

Definition at line 51 of file EnhancedPathParameter.h.

Constructor & Destructor Documentation

◆ EnhancedPathConstantParameter()

EnhancedPathConstantParameter::EnhancedPathConstantParameter ( qreal value,
EnhancedPathShape * parent )

Constructs the constant parameter with the given value.

Definition at line 56 of file EnhancedPathParameter.cpp.

58 , m_value(value)
59{
60}
float value(const T *src, size_t ch)
EnhancedPathParameter(EnhancedPathShape *parent)
EnhancedPathShape * parent()

Member Function Documentation

◆ evaluate()

qreal EnhancedPathConstantParameter::evaluate ( )
overridevirtual

evaluates the parameter using the given path

Implements EnhancedPathParameter.

Definition at line 62 of file EnhancedPathParameter.cpp.

63{
64 return m_value;
65}

References m_value.

◆ toString()

QString EnhancedPathConstantParameter::toString ( ) const
overridevirtual

returns string representation of the parameter

Implements EnhancedPathParameter.

Definition at line 67 of file EnhancedPathParameter.cpp.

68{
69 return QString::number(m_value);
70}

References m_value.

Member Data Documentation

◆ m_value

qreal EnhancedPathConstantParameter::m_value
private

the constant value

Definition at line 59 of file EnhancedPathParameter.h.


The documentation for this class was generated from the following files: