Kage Studio 0.7.230612
A Simple Free and Open Source 2D Animation Software
Loading...
Searching...
No Matches
kagedo.h
Go to the documentation of this file.
1/*
2 * Kage Studio - a simple free and open source vector-based 2D animation software
3 * Copyright (C) 2011~2022 Mj Mendoza IV
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18 * MA 02110-1301, USA. Or, see <https://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef GTKMM_KAGE_MANAGER_UNRE_KAGEDO_H
23 #define GTKMM_KAGE_MANAGER_UNRE_KAGEDO_H
24
25 #include <iostream>
26
27 #include "../data/vectordata.h"
28
29 using namespace std;
30
31 class KageDo {
32 public:
33 unsigned int _frame;
34 unsigned int _layer;
35 KageDo();
36 KageDo(unsigned int p_layer, unsigned int p_frame);
37 virtual ~KageDo();
38
39 void setVectorData(vector<VectorData> p_vectorData);
40 vector<VectorData> getVectorData();
41 KageDo clone();
42
43 void clear();
44
45 void push(KageDo p_vectorsData);
46
47 bool isEmpty();
48 protected:
49 void add(VectorData::type p_type, ColorData p_fill, StrokeColorData p_stroke);
50
51 vector<VectorData> _vectorData;
52 };
53#endif //GTKMM_KAGE_MANAGER_UNRE_KAGEDO_H
Definition: color.h:28
Definition: kagedo.h:31
unsigned int _layer
Definition: kagedo.h:34
vector< VectorData > _vectorData
Definition: kagedo.h:51
void add(VectorData::type p_type, ColorData p_fill, StrokeColorData p_stroke)
Definition: kagedo.cpp:58
void setVectorData(vector< VectorData > p_vectorData)
Definition: kagedo.cpp:37
void clear()
Definition: kagedo.cpp:45
unsigned int _frame
Definition: kagedo.h:33
void push(KageDo p_vectorsData)
Definition: kagedo.cpp:49
virtual ~KageDo()
Definition: kagedo.cpp:33
bool isEmpty()
Definition: kagedo.cpp:80
KageDo()
Definition: kagedo.cpp:24
vector< VectorData > getVectorData()
Definition: kagedo.cpp:41
KageDo clone()
Definition: kagedo.cpp:68
Definition: strokecolor.h:27
type
Definition: vectordata.h:34