Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_paint_information.cc File Reference
#include <brushengine/kis_paint_information.h>
#include <QDomElement>
#include <boost/optional.hpp>
#include "kis_paintop.h"
#include "kis_algebra_2d.h"
#include "kis_lod_transform.h"
#include "kis_spacing_information.h"
#include <kis_dom_utils.h>

Go to the source code of this file.

Classes

struct  KisPaintInformation::Private::DirectionHistoryInfo
 
struct  KisPaintInformation::Private
 

Functions

QDebug operator<< (QDebug dbg, const KisPaintInformation &info)
 

Function Documentation

◆ operator<<()

QDebug operator<< ( QDebug dbg,
const KisPaintInformation & info )

Definition at line 543 of file kis_paint_information.cc.

544{
545#ifdef NDEBUG
546 Q_UNUSED(info);
547#else
548 dbg.nospace() << "Position: " << info.pos();
549 dbg.nospace() << ", Pressure: " << info.pressure();
550 dbg.nospace() << ", X Tilt: " << info.xTilt();
551 dbg.nospace() << ", Y Tilt: " << info.yTilt();
552 dbg.nospace() << ", Rotation: " << info.rotation();
553 dbg.nospace() << ", Tangential Pressure: " << info.tangentialPressure();
554 dbg.nospace() << ", Perspective: " << info.perspective();
555 dbg.nospace() << ", Drawing Angle: " << info.drawingAngle();
556 dbg.nospace() << ", Drawing Speed: " << info.drawingSpeed();
557 dbg.nospace() << ", Drawing Distance: " << info.drawingDistance();
558 dbg.nospace() << ", Time: " << info.currentTime();
559#endif
560 return dbg.space();
561}
qreal perspective() const
reciprocal of distance on the perspective grid
const QPointF & pos() const
qreal xTilt() const
The tilt of the pen on the horizontal axis (from 0.0 to 1.0)
qreal tangentialPressure() const
tangential pressure (i.e., rate for an airbrush device)
qreal currentTime() const
Number of ms since the beginning of the stroke.
qreal yTilt() const
The tilt of the pen on the vertical axis (from 0.0 to 1.0)
qreal rotation() const
rotation as given by the tablet event
qreal pressure() const
The pressure of the value (from 0.0 to 1.0)
qreal drawingAngle(bool considerLockedAngle=false) const

References KisPaintInformation::currentTime(), KisPaintInformation::drawingAngle(), KisPaintInformation::drawingDistance(), KisPaintInformation::drawingSpeed(), KisPaintInformation::perspective(), KisPaintInformation::pos(), KisPaintInformation::pressure(), KisPaintInformation::rotation(), KisPaintInformation::tangentialPressure(), KisPaintInformation::xTilt(), and KisPaintInformation::yTilt().