1.3.11
by Matteo F. Vescovi
Import upstream version 2.65a+svn53743 |
1 |
/*
|
2 |
* Copyright 2011, Blender Foundation.
|
|
3 |
*
|
|
4 |
* This program is free software; you can redistribute it and/or
|
|
5 |
* modify it under the terms of the GNU General Public License
|
|
6 |
* as published by the Free Software Foundation; either version 2
|
|
7 |
* of the License, or (at your option) any later version.
|
|
8 |
*
|
|
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.
|
|
13 |
*
|
|
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 Foundation,
|
|
16 |
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
17 |
*
|
|
18 |
* Contributor:
|
|
19 |
* Jeroen Bakker
|
|
20 |
* Monique Dewanchand
|
|
21 |
* Lukas Tönne
|
|
22 |
*/
|
|
23 |
||
24 |
||
25 |
#ifndef _COM_MultilayerImageOperation_h
|
|
26 |
#define _COM_MultilayerImageOperation_h
|
|
27 |
||
28 |
#include "COM_ImageOperation.h" |
|
29 |
||
30 |
class MultilayerBaseOperation : public BaseImageOperation { |
|
31 |
private: |
|
32 |
int m_passId; |
|
33 |
RenderLayer *m_renderlayer; |
|
34 |
protected: |
|
35 |
ImBuf *getImBuf(); |
|
36 |
public: |
|
37 |
/**
|
|
38 |
* Constructor
|
|
39 |
*/
|
|
1.5.4
by Matteo F. Vescovi
Import upstream version 2.69 |
40 |
MultilayerBaseOperation(int passindex); |
1.3.11
by Matteo F. Vescovi
Import upstream version 2.65a+svn53743 |
41 |
void setRenderLayer(RenderLayer *renderlayer) { this->m_renderlayer = renderlayer; } |
42 |
};
|
|
43 |
||
44 |
class MultilayerColorOperation : public MultilayerBaseOperation { |
|
45 |
public: |
|
1.5.4
by Matteo F. Vescovi
Import upstream version 2.69 |
46 |
MultilayerColorOperation(int passindex) : MultilayerBaseOperation(passindex) { |
1.3.11
by Matteo F. Vescovi
Import upstream version 2.65a+svn53743 |
47 |
this->addOutputSocket(COM_DT_COLOR); |
48 |
}
|
|
49 |
void executePixel(float output[4], float x, float y, PixelSampler sampler); |
|
50 |
};
|
|
51 |
||
52 |
class MultilayerValueOperation : public MultilayerBaseOperation { |
|
53 |
public: |
|
1.5.4
by Matteo F. Vescovi
Import upstream version 2.69 |
54 |
MultilayerValueOperation(int passindex) : MultilayerBaseOperation(passindex) { |
1.3.11
by Matteo F. Vescovi
Import upstream version 2.65a+svn53743 |
55 |
this->addOutputSocket(COM_DT_VALUE); |
56 |
}
|
|
57 |
void executePixel(float output[4], float x, float y, PixelSampler sampler); |
|
58 |
};
|
|
59 |
||
60 |
class MultilayerVectorOperation : public MultilayerBaseOperation { |
|
61 |
public: |
|
1.5.4
by Matteo F. Vescovi
Import upstream version 2.69 |
62 |
MultilayerVectorOperation(int passindex) : MultilayerBaseOperation(passindex) { |
1.3.11
by Matteo F. Vescovi
Import upstream version 2.65a+svn53743 |
63 |
this->addOutputSocket(COM_DT_VECTOR); |
64 |
}
|
|
65 |
void executePixel(float output[4], float x, float y, PixelSampler sampler); |
|
66 |
};
|
|
67 |
||
68 |
#endif
|