HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TIL_ColorCurves.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: TIL_ColorCurves.h ( TIL Library, C++)
7  *
8  * COMMENTS:
9  * A class for sampling color curves.
10  */
11 #ifndef TIL_COLOR_CURVES_H
12 #define TIL_COLOR_CURVES_H
13 
14 #include "TIL_API.h"
15 
17 {
18 public:
19  TIL_ColorCurves(int curve_size = 256);
20  ~TIL_ColorCurves();
21 
22  void setValid(bool valid);
23  void setValid(int comp, bool valid);
24 
25  void setCurveSize(int size);
26  int getCurveSize() const { return myCurveSize; }
27 
28  const float *getCurve(int comp) const;
29  float *getCurveForWrite(int comp);
30 
31  void setDomain(float start, float end) { myStart=start; myEnd=end;}
32  void getDomain(float &start, float &end) const
33  { start = myStart; end = myEnd; }
34 
35  void clampRange(float minr, float maxr);
36 
37 private:
38  bool myValid[4];
39  float *myCurves[4];
40  int myCurveSize;
41  float myStart;
42  float myEnd;
43 };
44 
45 #endif
GLuint start
Definition: glcorearb.h:474
void getDomain(float &start, float &end) const
GLsizeiptr size
Definition: glcorearb.h:663
GLuint GLuint end
Definition: glcorearb.h:474
void setDomain(float start, float end)
int getCurveSize() const
#define TIL_API
Definition: TIL_API.h:10