Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_paint_information.h File Reference
#include <kis_debug.h>
#include <QTime>
#include "kis_global.h"
#include "kritaimage_export.h"
#include <kis_distance_information.h>
#include "kis_random_source.h"
#include "KisPerStrokeRandomSource.h"
#include "kis_spacing_information.h"
#include "kis_timing_information.h"

Go to the source code of this file.

Classes

class  KisPaintInformation::DistanceInformationRegistrar
 
class  KisPaintInformation
 

Functions

KRITAIMAGE_EXPORT QDebug operator<< (QDebug debug, const KisPaintInformation &info)
 

Function Documentation

◆ operator<<()

KRITAIMAGE_EXPORT QDebug operator<< ( QDebug debug,
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().