Skip to content

Commit

Permalink
Renamed colorConstants to match CamelCase
Browse files Browse the repository at this point in the history
Renamed colorConstants to ColorConstants and also added 3b and 4b to buw namespace
  • Loading branch information
Helge Hecht committed Aug 6, 2020
1 parent 11b3b1c commit b4caada
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions ImageProcessing/src/BlueFramework/ImageProcessing/colorConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace BlueFramework
{
// Implements different color constants.
template<typename ColorType>
struct colorConstants
struct ColorConstants
{
static ColorType aliceBlue()
{
Expand Down Expand Up @@ -734,7 +734,7 @@ namespace BlueFramework
};

template<>
struct colorConstants<Color3f>
struct ColorConstants<Color3f>
{
static Color3f aliceBlue()
{
Expand Down Expand Up @@ -1593,7 +1593,7 @@ namespace BlueFramework
};

template<>
struct colorConstants<Color4f>
struct ColorConstants<Color4f>
{
static Color4f black()
{
Expand All @@ -1607,7 +1607,7 @@ namespace BlueFramework
};

template<>
struct colorConstants<Color3b>
struct ColorConstants<Color3b>
{
static Color3b aliceBlue()
{
Expand Down Expand Up @@ -2311,7 +2311,7 @@ namespace BlueFramework
};

template <>
struct colorConstants<Color4b> {
struct ColorConstants<Color4b> {
static Color4b aliceBlue() {
return Color4b(240, 248, 255, 255);
};
Expand Down Expand Up @@ -2874,16 +2874,20 @@ namespace BlueFramework
};


typedef colorConstants<Color3f> colorConstants3f;
typedef colorConstants<Color4f> colorConstants4f;
typedef ColorConstants<Color3f> ColorConstants3f;
typedef ColorConstants<Color4f> ColorConstants4f;
typedef ColorConstants<Color3b> ColorConstants3b;
typedef ColorConstants<Color4b> ColorConstants4b;
} // end namespace ImageProcessing
} // end namespace BlueFramework

namespace buw
{
using BlueFramework::ImageProcessing::colorConstants;
using BlueFramework::ImageProcessing::colorConstants3f;
using BlueFramework::ImageProcessing::colorConstants4f;
}
using BlueFramework::ImageProcessing::ColorConstants;
using BlueFramework::ImageProcessing::ColorConstants3f;
using BlueFramework::ImageProcessing::ColorConstants4f;
using BlueFramework::ImageProcessing::ColorConstants4b;
using BlueFramework::ImageProcessing::ColorConstants4b;
} // namespace buw

#endif // end define BlueFramework_ImageProcessing_ColorConstants_e730a33d_4053_4c52_bd16_ecf1fba26816_h

0 comments on commit b4caada

Please sign in to comment.