Krita Source Code Documentation
Loading...
Searching...
No Matches
EnhancedPathParameter Class Referenceabstract

The abstract parameter class. More...

#include <EnhancedPathParameter.h>

+ Inheritance diagram for EnhancedPathParameter:

Public Member Functions

 EnhancedPathParameter (EnhancedPathShape *parent)
 
virtual qreal evaluate ()=0
 evaluates the parameter using the given path
 
virtual void modify (qreal value)
 modifies the parameter if possible, using the new value
 
virtual QString toString () const =0
 returns string representation of the parameter
 
virtual ~EnhancedPathParameter ()
 

Protected Member Functions

EnhancedPathShapeparent ()
 

Private Attributes

EnhancedPathShapem_parent
 

Detailed Description

The abstract parameter class.

Definition at line 33 of file EnhancedPathParameter.h.

Constructor & Destructor Documentation

◆ EnhancedPathParameter()

EnhancedPathParameter::EnhancedPathParameter ( EnhancedPathShape * parent)
explicit

Definition at line 31 of file EnhancedPathParameter.cpp.

33{
34 Q_ASSERT(m_parent);
35}
EnhancedPathShape * parent()
EnhancedPathShape * m_parent

References m_parent.

◆ ~EnhancedPathParameter()

EnhancedPathParameter::~EnhancedPathParameter ( )
virtual

Definition at line 37 of file EnhancedPathParameter.cpp.

38{
39}

Member Function Documentation

◆ evaluate()

qreal EnhancedPathParameter::evaluate ( )
pure virtual

evaluates the parameter using the given path

Implemented in EnhancedPathConstantParameter, EnhancedPathNamedParameter, and EnhancedPathReferenceParameter.

Definition at line 46 of file EnhancedPathParameter.cpp.

47{
48 return 0.0;
49}

◆ modify()

void EnhancedPathParameter::modify ( qreal value)
virtual

modifies the parameter if possible, using the new value

Reimplemented in EnhancedPathReferenceParameter.

Definition at line 51 of file EnhancedPathParameter.cpp.

52{
53 Q_UNUSED(value);
54}
float value(const T *src, size_t ch)

References value().

◆ parent()

EnhancedPathShape * EnhancedPathParameter::parent ( )
protected

Definition at line 41 of file EnhancedPathParameter.cpp.

42{
43 return m_parent;
44}

References m_parent.

◆ toString()

virtual QString EnhancedPathParameter::toString ( ) const
pure virtual

returns string representation of the parameter

Implemented in EnhancedPathConstantParameter, EnhancedPathNamedParameter, and EnhancedPathReferenceParameter.

Member Data Documentation

◆ m_parent

EnhancedPathShape* EnhancedPathParameter::m_parent
private

Definition at line 47 of file EnhancedPathParameter.h.


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