Drive Engine  1.0.0
Plateforme de reconstruction 3D
DefaultColor.h
1 // Copyright (c) 2015. All rights reserved to DriveEngine Team.
2 
3 #pragma once
4 
5 #include "Public/Datatypes/IColor.h"
6 #include "Public/ImplementationUtilities/ImplementationUtilities.h"
7 
8 namespace DriveEngine
9 {
10  class DefaultColor : public IColor
11  {
12  private:
13  float R, G, B, I;
14 
15  public:
16 
24 
34  CONSTRUCTOR_H(IColor, DefaultColor, float intensity);
35 
49  CONSTRUCTOR_H(IColor, DefaultColor, float red, float green, float blue);
50 
51  DESTRUCTOR_H(DefaultColor);
52 
53  virtual float GetRed() const;
54  virtual float GetBlue() const;
55  virtual float GetGreen() const;
56  virtual float GetIntensity() const;
57 
58  private:
59  void SetIntensityFromRGB();
60  };
61 }
virtual float GetIntensity() const
Gets the intensity.
virtual float GetRed() const
Gets the red composant value. If the pixel is gray scaled, return the intensity.
virtual float GetBlue() const
Gets the blue composant value. If the pixel is gray scaled, return the intensity. ...
Definition: DefaultColor.h:10
Definition: DefaultCalibrationInfoList.h:12
CONSTRUCTOR_H(IColor, DefaultColor)
Default constructor.
The color datatype interface.
Definition: IColor.h:10
virtual float GetGreen() const
Gets the green composant value. If the pixel is gray scaled, return the intensity.