Krita Source Code Documentation
Loading...
Searching...
No Matches
FreehandStrokeStrategy::Private Struct Reference

Public Member Functions

 Private (const Private &rhs)
 
 Private (KisResourcesSnapshotSP _resources)
 

Public Attributes

int currentUpdatePeriod = 40
 
KisStrokeEfficiencyMeasurer efficiencyMeasurer
 
const bool needsAsynchronousUpdates = false
 
KisStrokeRandomSource randomSource
 
KisResourcesSnapshotSP resources
 
QElapsedTimer timeSinceLastUpdate
 
std::mutex updateEntryMutex
 

Detailed Description

Definition at line 35 of file freehand_stroke.cpp.

Constructor & Destructor Documentation

◆ Private() [1/2]

FreehandStrokeStrategy::Private::Private ( KisResourcesSnapshotSP _resources)
inline

Definition at line 37 of file freehand_stroke.cpp.

38 : resources(_resources),
40 {
42 timeSinceLastUpdate.start();
43 }
44 }
KisResourcesSnapshotSP resources

References needsAsynchronousUpdates, and timeSinceLastUpdate.

◆ Private() [2/2]

FreehandStrokeStrategy::Private::Private ( const Private & rhs)
inline

Definition at line 46 of file freehand_stroke.cpp.

47 : randomSource(rhs.randomSource),
48 resources(rhs.resources),
49 needsAsynchronousUpdates(rhs.needsAsynchronousUpdates)
50 {
52 timeSinceLastUpdate.start();
53 }
54 efficiencyMeasurer.setEnabled(rhs.efficiencyMeasurer.isEnabled());
55 }
KisStrokeRandomSource randomSource
KisStrokeEfficiencyMeasurer efficiencyMeasurer

References efficiencyMeasurer, KisStrokeEfficiencyMeasurer::isEnabled(), needsAsynchronousUpdates, KisStrokeEfficiencyMeasurer::setEnabled(), and timeSinceLastUpdate.

Member Data Documentation

◆ currentUpdatePeriod

int FreehandStrokeStrategy::Private::currentUpdatePeriod = 40

Definition at line 63 of file freehand_stroke.cpp.

◆ efficiencyMeasurer

KisStrokeEfficiencyMeasurer FreehandStrokeStrategy::Private::efficiencyMeasurer

Definition at line 60 of file freehand_stroke.cpp.

◆ needsAsynchronousUpdates

const bool FreehandStrokeStrategy::Private::needsAsynchronousUpdates = false

Definition at line 65 of file freehand_stroke.cpp.

◆ randomSource

KisStrokeRandomSource FreehandStrokeStrategy::Private::randomSource

Definition at line 57 of file freehand_stroke.cpp.

◆ resources

KisResourcesSnapshotSP FreehandStrokeStrategy::Private::resources

Definition at line 58 of file freehand_stroke.cpp.

◆ timeSinceLastUpdate

QElapsedTimer FreehandStrokeStrategy::Private::timeSinceLastUpdate

Definition at line 62 of file freehand_stroke.cpp.

◆ updateEntryMutex

std::mutex FreehandStrokeStrategy::Private::updateEntryMutex

Definition at line 66 of file freehand_stroke.cpp.


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