HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
COP2_ColorCurve.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: COP2_Bright.h
7  *
8  * COMMENTS:
9  * ColorCurve COP.
10  */
11 #ifndef _COP2_COLORCURVE_H_
12 #define _COP2_COLORCURVE_H_
13 
14 #include "COP2_API.h"
15 #define ARG_COLORCURVE_EDIT (myParmBase + 0)
16 #define ARG_COLORCURVE_EXTEND (myParmBase + 1)
17 // label
18 #define ARG_COLORCURVE_USE_COMP (myParmBase + 3)
19 #define ARG_COLORCURVE_ALL (myParmBase + 4)
20 #define ARG_COLORCURVE_RED (myParmBase + 5)
21 #define ARG_COLORCURVE_GREEN (myParmBase + 6)
22 #define ARG_COLORCURVE_BLUE (myParmBase + 7)
23 #define ARG_COLORCURVE_ALPHA (myParmBase + 8)
24 
25 #include "COP2_PixelOp.h"
26 
28 {
29 public:
30 
31  static OP_Node *myConstructor(OP_Network*, const char *,
32  OP_Operator *);
35  static PRM_Template myTemplateList[];
36  static CH_LocalVariable myVariableList[];
37  static const char * myInputLabels[];
38 
39  static int componentModeChanged(void *, int, float,
40  const PRM_Template *);
41  static int globalChanged(void *, int, float,
42  const PRM_Template *);
43  static int redChanged(void *, int, float,
44  const PRM_Template *);
45  static int greenChanged(void *, int, float,
46  const PRM_Template *);
47  static int blueChanged(void *, int, float,
48  const PRM_Template *);
49  static int alphaChanged(void *, int, float,
50  const PRM_Template *);
51 
52  bool areComponentsModified();
53 
54  void componentModeChanged();
55 protected:
56  virtual RU_PixelFunction *addPixelFunction(const TIL_Plane *plane,
57  int array_index, float t,
58  int xres, int yres,
59  int thread);
60 
61  virtual bool isFrameEffectHandled() { return false; }
62 
63  virtual bool updateParmsFlags();
64 private:
65  COP2_ColorCurve(OP_Network *parent, const char *name,
66  OP_Operator *entry);
67  virtual ~COP2_ColorCurve();
68 
69 
70 
71  bool EXTEND_SLOPE()
72  { return (bool)evalInt(ARG_COLORCURVE_EXTEND,0,0.0f); }
73 
74  int COLOR_CURVE_ALL() {return evalInt(ARG_COLORCURVE_ALL,0,0.0f);}
75  bool COMPONENTS() {return evalInt(ARG_COLORCURVE_USE_COMP,0,0.0f);}
76 
77  int COLOR_CURVE_COMP(int index)
78  { return evalInt(ARG_COLORCURVE_RED+index,0,0.0f); }
79 
80  void COLORCURVE_POINT_ALL(int index, float &x, float &y, float &s,
81  float t);
82  void COLORCURVE_POINT_COMP(int comp, int index, float &x, float &y,
83  float &s, float t);
84  int myParmBase;
85 };
86 #endif
static OP_TemplatePair myTemplatePair
GLint y
Definition: glcorearb.h:102
#define ARG_COLORCURVE_RED
#define ARG_COLORCURVE_EXTEND
virtual bool updateParmsFlags()
GLfloat f
Definition: glcorearb.h:1925
GLuint const GLchar * name
Definition: glcorearb.h:785
#define COP2_API
Definition: COP2_API.h:10
virtual bool isFrameEffectHandled()
GLuint index
Definition: glcorearb.h:785
GLint GLenum GLint x
Definition: glcorearb.h:408
exint evalInt(int pi, int vi, fpreal t) const
#define ARG_COLORCURVE_ALL
#define ARG_COLORCURVE_USE_COMP
static OP_VariablePair myVariablePair
virtual RU_PixelFunction * addPixelFunction(const TIL_Plane *plane, int array_index, float t, int xres, int yres, int thread)=0