1 //////////////////////////////////////////////////////////////////////
2 //
3 // Pixie
4 //
5 // Copyright � 1999 - 2003, Okan Arikan
6 //
7 // Contact: okan@cs.utexas.edu
8 //
9 // This library is free software; you can redistribute it and/or
10 // modify it under the terms of the GNU Lesser General Public
11 // License as published by the Free Software Foundation; either
12 // version 2.1 of the License, or (at your option) any later version.
13 //
14 // This library is distributed in the hope that it will be useful,
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 // Lesser General Public License for more details.
18 //
19 // You should have received a copy of the GNU Lesser General Public
20 // License along with this library; if not, write to the Free Software
21 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 //
23 ///////////////////////////////////////////////////////////////////////
24 ///////////////////////////////////////////////////////////////////////
25 //
26 // File : displayChannel.cpp
27 // Classes : CDisplayChannel
28 // Description :
29 //
30 ////////////////////////////////////////////////////////////////////////
31 #include "displayChannel.h"
32 #include <string.h>
33
34
35 ///////////////////////////////////////////////////////////////////////
36 // Class : CDisplayChannel
37 // Description : display channel info ctor
38 // Return Value :
39 // Comments : var can be NULL
CDisplayChannel()40 CDisplayChannel::CDisplayChannel() {
41 strcpy(this->name,"*INVALID*");
42 variable = NULL;
43 numSamples = 0;
44 sampleStart = -1;
45 outType = -1;
46 fill = NULL;
47 matteMode = 1; // Respect mattes
48 filterType = AOV_FILTER_DEFAULT;
49 }
50
51 ///////////////////////////////////////////////////////////////////////
52 // Class : CDisplayChannel
53 // Description : display channel info dtor
54 // Return Value :
55 // Comments : var can be NULL
~CDisplayChannel()56 CDisplayChannel::~CDisplayChannel() {
57 if (fill) delete [] fill;
58 }
59
60 ///////////////////////////////////////////////////////////////////////
61 // Class : CDisplayChannel
62 // Description : display channel info ctor
63 // Return Value :
64 // Comments : var can be NULL
CDisplayChannel(const char * name,CVariable * var,int samples,int start,int entry)65 CDisplayChannel::CDisplayChannel(const char *name,CVariable *var,int samples,int start,int entry) {
66 strcpy(this->name,name);
67 variable = var;
68 numSamples = samples;
69 sampleStart = start;
70 outType = entry;
71 fill = NULL;
72 matteMode = 1; // Respect mattes
73 filterType = AOV_FILTER_DEFAULT;
74 }
75
76