aboutsummaryrefslogtreecommitdiffstats
path: root/meowpp/colors/RGB.h
diff options
context:
space:
mode:
Diffstat (limited to 'meowpp/colors/RGB.h')
-rw-r--r--meowpp/colors/RGB.h77
1 files changed, 0 insertions, 77 deletions
diff --git a/meowpp/colors/RGB.h b/meowpp/colors/RGB.h
deleted file mode 100644
index 803cdd9..0000000
--- a/meowpp/colors/RGB.h
+++ /dev/null
@@ -1,77 +0,0 @@
-#ifndef colors_RGB_H_
-#define colors_RGB_H_
-
-#include <cstdlib>
-#include "../math.h"
-#include "../geo/Vector3D.h"
-
-namespace meow{
- template<class T>
- class RGB{
- protected:
- T rgb_[3];
- RGB();
- RGB(T const& r, T const& g, T const& b);
- RGB(T const* rgb);
- public:
- virtual ~RGB() { }
- ///////////////// **# not force #** ////////////////
- virtual T rMax() const = 0;
- virtual T rMin() const = 0;
- virtual T gMax() const = 0;
- virtual T gMin() const = 0;
- virtual T bMax() const = 0;
- virtual T bMin() const = 0;
- /////////////////// **# access #** /////////////////
- T r() const;
- T g() const;
- T b() const;
- T rgb(size_t i) const;
- T bgr(size_t i) const;
- /////////////////// **# setting #** ////////////////
- T r(T const& val);
- T g(T const& val);
- T b(T const& val);
- T rgb(size_t i, T const& val);
- T bgr(size_t i, T const& val);
- T rgb(T const& __r, T const& __g, T const& __b);
- T bgr(T const& __r, T const& __g, T const& __b);
- Matrix <T> matrix() const;
- Vector3D<T> vector() const;
- };
-
- class RGBf: public RGB<double>{
- public:
- RGBf();
- RGBf(double const&r,double const&g,double const&b);
- RGBf(double const* rgb);
- ~RGBf();
- double rMin() const;
- double rMax() const;
- double gMin() const;
- double gMax() const;
- double bMin() const;
- double bMax() const;
- };
-
- class RGBi: public RGB<int32_t>{
- public:
- RGBi();
- RGBi(int32_t const&r,int32_t const&g,int32_t const&b);
- RGBi(int32_t const* rgb);
- ~RGBi();
- int32_t rMin() const;
- int32_t rMax() const;
- int32_t gMin() const;
- int32_t gMax() const;
- int32_t bMin() const;
- int32_t bMax() const;
- };
-
- template<class RGB_T1, class RGB_T2>
- inline void RGB_to_RGB(RGB<RGB_T1> const& a, RGB<RGB_T2>* b);
-}
-
-#include "RGB.hpp"
-
-#endif // colors_RGB_H_