Olive
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
effectgizmo.h
Go to the documentation of this file.
1 /***
2 
3  Olive - Non-Linear Video Editor
4  Copyright (C) 2019 Olive Team
5 
6  This program is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program. If not, see <http://www.gnu.org/licenses/>.
18 
19 ***/
20 
21 #ifndef EFFECTGIZMO_H
22 #define EFFECTGIZMO_H
23 
24 enum GizmoType {
28 };
29 
30 #define GIZMO_DOT_SIZE 2.5
31 #define GIZMO_TARGET_SIZE 5.0
32 
33 #include <QObject>
34 #include <QString>
35 #include <QRect>
36 #include <QPoint>
37 #include <QVector>
38 #include <QColor>
39 
40 class DoubleField;
41 class Effect;
42 
43 class EffectGizmo : public QObject {
44  Q_OBJECT
45 public:
46  EffectGizmo(Effect* parent, int type);
47 
48  QVector<QPoint> world_pos;
49  QVector<QPoint> screen_pos;
50 
59 
60  QColor color;
61  int get_point_count();
62 
63  int get_type();
64 
65  int get_cursor();
66  void set_cursor(int c);
67 private:
68  int type;
69  int cursor;
70 };
71 
72 #endif // EFFECTGIZMO_H
DoubleField * y_field2
Definition: effectgizmo.h:57
Definition: effectgizmo.h:26
DoubleField * y_field1
Definition: effectgizmo.h:53
Definition: effectgizmo.h:43
Definition: effectgizmo.h:25
double y_field_multi1
Definition: effectgizmo.h:54
void set_cursor(int c)
Definition: effectgizmo.cpp:61
GizmoType
Definition: effectgizmo.h:24
The DoubleField class.
Definition: doublefield.h:13
int cursor
Definition: effectgizmo.h:69
double x_field_multi1
Definition: effectgizmo.h:52
double y_field_multi2
Definition: effectgizmo.h:58
EffectGizmo(Effect *parent, int type)
Definition: effectgizmo.cpp:27
Definition: effectgizmo.h:27
QVector< QPoint > world_pos
Definition: effectgizmo.h:48
QVector< QPoint > screen_pos
Definition: effectgizmo.h:49
QColor color
Definition: effectgizmo.h:60
DoubleField * x_field1
Definition: effectgizmo.h:51
int get_type()
Definition: effectgizmo.cpp:53
int get_point_count()
Definition: effectgizmo.cpp:49
int get_cursor()
Definition: effectgizmo.cpp:57
int type
Definition: effectgizmo.h:68
DoubleField * x_field2
Definition: effectgizmo.h:55
double x_field_multi2
Definition: effectgizmo.h:56
Definition: effect.h:136