Pencil2D Animation
Download Community News Docs Contribute
  • Overview
  • Articles
  • Code
  •  
  • Class List
  • Class Index
  • Class Hierarchy
  • Class Members
  • File List
Loading...
Searching...
No Matches
  • core_lib
  • src
selectionpainter.h
1/*
2
3Pencil2D - Traditional Animation Software
4Copyright (C) 2005-2007 Patrick Corrieri & Pascal Naidon
5Copyright (C) 2012-2020 Matthew Chiawen Chang
6
7This program is free software; you can redistribute it and/or
8modify it under the terms of the GNU General Public License
9as published by the Free Software Foundation; version 2 of the License.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16*/
17#ifndef SelectionPainter_H
18#define SelectionPainter_H
19
20#include <QRectF>
21#include <QPolygonF>
22#include <QTransform>
23
24#include "toolproperties.h"
25
26class QPainter;
27class Object;
28
29struct TransformParameters
30{
31 QRectF originalSelectionRectF;
32
33 QTransform viewTransform;
34 QTransform selectionTransform;
35};
36
37class SelectionPainter
38{
39public:
40 SelectionPainter();
41
42 void paint(QPainter& painter, const Object* object, int layerIndex, const TransformToolProperties& toolProperties, TransformParameters& transformParameters);
43
44private:
45 void paintSelectionInfo(QPainter& painter, const QTransform& mergedTransform, const QTransform& viewTransform, const QRectF& selectionRect, const QPolygonF& projectedPolygonF);
46
47 const static int HANDLE_WIDTH = 6;
48};
49
50#endif // SelectionPainter_H
Object
Definition: object.h:42
SelectionPainter
Definition: selectionpainter.h:38
QPainter
QPolygonF
QRectF
QTransform
TransformParameters
Definition: selectionpainter.h:30
TransformToolProperties
Definition: toolproperties.h:573
Generated on Tue Jan 6 2026 11:38:51 for Pencil2D by doxygen 1.9.6 based on revision f91a96748ec6712509b9b0ff47979db9c34d556f