Olive
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 <QString>
34 #include <QRect>
35 #include <QPoint>
36 #include <QVector>
37 #include <QColor>
38 
39 class EffectField;
40 
42 {
43 public:
44  EffectGizmo(int type);
45 
46  QVector<QPoint> world_pos;
47  QVector<QPoint> screen_pos;
48 
57 
58  void set_previous_value();
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
Definition: effectgizmo.h:26
int get_cursor()
Definition: effectgizmo.cpp:60
double y_field_multi2
Definition: effectgizmo.h:56
Definition: effectgizmo.h:25
int get_type()
Definition: effectgizmo.cpp:56
EffectField * x_field1
Definition: effectgizmo.h:49
EffectField * y_field1
Definition: effectgizmo.h:51
EffectField * x_field2
Definition: effectgizmo.h:53
int get_point_count()
Definition: effectgizmo.cpp:52
GizmoType
Definition: effectgizmo.h:24
EffectGizmo(int type)
Definition: effectgizmo.cpp:26
int cursor
Definition: effectgizmo.h:69
EffectField * y_field2
Definition: effectgizmo.h:55
QColor color
Definition: effectgizmo.h:60
Definition: effectgizmo.h:27
double y_field_multi1
Definition: effectgizmo.h:52
QVector< QPoint > screen_pos
Definition: effectgizmo.h:47
int type
Definition: effectgizmo.h:68
Definition: effectgizmo.h:41
QVector< QPoint > world_pos
Definition: effectgizmo.h:46
double x_field_multi2
Definition: effectgizmo.h:54
Definition: effectfield.h:43
void set_cursor(int c)
Definition: effectgizmo.cpp:64
void set_previous_value()
Definition: effectgizmo.cpp:45
double x_field_multi1
Definition: effectgizmo.h:50