From 7f9fa2c360a7cf77d69aa4c31d57becc2ac117e7 Mon Sep 17 00:00:00 2001 From: Tobias Maier Date: Mon, 18 Jul 2022 22:39:42 +0200 Subject: [PATCH] :Keep old ColorWheel interface and add extra method to implement ColorWheel interface. --- components/pango_opengl/include/pangolin/gl/colour.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/components/pango_opengl/include/pangolin/gl/colour.h b/components/pango_opengl/include/pangolin/gl/colour.h index e8fa6b052..7d6c43c99 100644 --- a/components/pango_opengl/include/pangolin/gl/colour.h +++ b/components/pango_opengl/include/pangolin/gl/colour.h @@ -176,11 +176,17 @@ class ColourWheel : public ColourProvider } /// Return next unique colour from ColourWheel. - inline Colour GetNext() override + inline Colour GetUniqueColour() { return GetColourBin(unique_colours++); } + /// Return next unique colour from ColourWheel for ColorProvider. + inline Colour GetNext() override + { + return GetUniqueColour(); + } + /// Reset colour wheel counter to initial state inline void Reset() override { unique_colours = 0;