2
* Copyright (c) 2004 Cyrille Berger <cberger@cberger.net>
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
#ifndef _KIS_QUANTUM_OPERATIONS_H_
20
#define _KIS_QUANTUM_OPERATIONS_H_
22
#include "kis_global.h"
24
/** This class is meant to be used inside KisQuantum
26
class KisQuantumOperation {
28
KisQuantumOperation( ) { };
29
virtual QUANTUM operation(QUANTUM) =0;
30
/** This function is called to clone this object.
31
* @param index this is the offset
33
virtual KisQuantumOperation* clone(int index) =0;
36
class KisQuantumOperationLinear : public KisQuantumOperation {
38
KisQuantumOperationLinear( ) { };
39
virtual QUANTUM operation(QUANTUM);
40
virtual KisQuantumOperation* clone(int index);
43
class KisQuantumOperationMasked : public KisQuantumOperation {
45
KisQuantumOperationMasked( ) { };
46
virtual QUANTUM operation(QUANTUM);
47
virtual KisQuantumOperation* clone(int index);