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

#include <KoParameterChangeStrategy_p.h>

+ Inheritance diagram for KoParameterChangeStrategyPrivate:

Public Member Functions

 KoParameterChangeStrategyPrivate (KoToolBase *owner, KoParameterShape *paramShape, int handle)
 
- Public Member Functions inherited from KoInteractionStrategyPrivate
 KoInteractionStrategyPrivate (KoToolBase *t)
 
virtual ~KoInteractionStrategyPrivate ()
 

Public Attributes

const int handleId
 the id of the control point
 
Qt::KeyboardModifiers lastModifierUsed
 
KoParameterShape *const parameterShape
 the parametric shape we are working on
 
QPointF releasePoint
 
const QPointF startPoint
 the starting position of the control point
 
- Public Attributes inherited from KoInteractionStrategyPrivate
KoToolBasetool
 the KoToolBase instance that controls this strategy.
 

Detailed Description

Definition at line 14 of file KoParameterChangeStrategy_p.h.

Constructor & Destructor Documentation

◆ KoParameterChangeStrategyPrivate()

KoParameterChangeStrategyPrivate::KoParameterChangeStrategyPrivate ( KoToolBase * owner,
KoParameterShape * paramShape,
int handle )
inline

Definition at line 17 of file KoParameterChangeStrategy_p.h.

19 , parameterShape(paramShape)
20 , handleId(handle)
21 , startPoint(paramShape->shapeToDocument(paramShape->handlePosition(handle)))
22 {
23 // initialize release point with start point position to prevent
24 // change when just clicking a handle without moving the mouse
26 }
const QPointF startPoint
the starting position of the control point
const int handleId
the id of the control point
KoParameterShape *const parameterShape
the parametric shape we are working on
QPointF handlePosition(int handleId) const
Get the handle position.
QPointF shapeToDocument(const QPointF &point) const
Transforms point from shape coordinates to document coordinates.
Definition KoShape.cpp:1201

References releasePoint, and startPoint.

Member Data Documentation

◆ handleId

const int KoParameterChangeStrategyPrivate::handleId

the id of the control point

Definition at line 28 of file KoParameterChangeStrategy_p.h.

◆ lastModifierUsed

Qt::KeyboardModifiers KoParameterChangeStrategyPrivate::lastModifierUsed

Definition at line 31 of file KoParameterChangeStrategy_p.h.

◆ parameterShape

KoParameterShape* const KoParameterChangeStrategyPrivate::parameterShape

the parametric shape we are working on

Definition at line 27 of file KoParameterChangeStrategy_p.h.

◆ releasePoint

QPointF KoParameterChangeStrategyPrivate::releasePoint

Definition at line 30 of file KoParameterChangeStrategy_p.h.

◆ startPoint

const QPointF KoParameterChangeStrategyPrivate::startPoint

the starting position of the control point

Definition at line 29 of file KoParameterChangeStrategy_p.h.


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