Changeset View
Changeset View
Standalone View
Standalone View
plugins/tools/tool_transform2/tool_transform_args.h
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Line(s) | 46 | public: | |||
---|---|---|---|---|---|
87 | 87 | | |||
88 | inline TransformMode mode() const { | 88 | inline TransformMode mode() const { | ||
89 | return m_mode; | 89 | return m_mode; | ||
90 | } | 90 | } | ||
91 | inline void setMode(TransformMode mode) { | 91 | inline void setMode(TransformMode mode) { | ||
92 | m_mode = mode; | 92 | m_mode = mode; | ||
93 | } | 93 | } | ||
94 | 94 | | |||
95 | inline int pixelPrecision() const { | ||||
96 | return m_pixelPrecision; | ||||
97 | } | ||||
98 | | ||||
99 | inline void setPixelPrecision(int precision) { | ||||
100 | m_pixelPrecision = precision; | ||||
101 | } | ||||
102 | | ||||
95 | //warp-related | 103 | //warp-related | ||
96 | inline int numPoints() const { | 104 | inline int numPoints() const { | ||
97 | KIS_ASSERT_RECOVER_NOOP(m_origPoints.size() == m_transfPoints.size()); | 105 | KIS_ASSERT_RECOVER_NOOP(m_origPoints.size() == m_transfPoints.size()); | ||
98 | return m_origPoints.size(); | 106 | return m_origPoints.size(); | ||
99 | } | 107 | } | ||
100 | inline QPointF &origPoint(int i) { | 108 | inline QPointF &origPoint(int i) { | ||
101 | return m_origPoints[i]; | 109 | return m_origPoints[i]; | ||
102 | } | 110 | } | ||
▲ Show 20 Lines • Show All 222 Lines • ▼ Show 20 Line(s) | 292 | private: | |||
325 | QScopedPointer<KisLiquifyTransformWorker> m_liquifyWorker; | 333 | QScopedPointer<KisLiquifyTransformWorker> m_liquifyWorker; | ||
326 | 334 | | |||
327 | /** | 335 | /** | ||
328 | * When we continue a transformation, m_continuedTransformation | 336 | * When we continue a transformation, m_continuedTransformation | ||
329 | * stores the initial step of our transform. All cancel and revert | 337 | * stores the initial step of our transform. All cancel and revert | ||
330 | * operations should revert to it. | 338 | * operations should revert to it. | ||
331 | */ | 339 | */ | ||
332 | QScopedPointer<ToolTransformArgs> m_continuedTransformation; | 340 | QScopedPointer<ToolTransformArgs> m_continuedTransformation; | ||
341 | int m_pixelPrecision; | ||||
333 | }; | 342 | }; | ||
334 | 343 | | |||
335 | #endif // TOOL_TRANSFORM_ARGS_H_ | 344 | #endif // TOOL_TRANSFORM_ARGS_H_ |