ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
colorseries.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <QColor>
11 
12 #include "../qPCL.h"
13 
14 namespace Utils {
15 
16 class ColorSeriesPrivate;
18 public:
19  enum Scheme { Spectrum, Warm, Cool, Blues, WildFlower, Citrus };
20 
21  ColorSeries();
22  ~ColorSeries();
23 
24  void setScheme(Scheme scheme);
25  Scheme scheme() const;
26 
27  QColor color(int index) const;
28  QColor nextColor() const;
29 
30 private:
31  ColorSeriesPrivate* d_ptr;
32  Q_DISABLE_COPY(ColorSeries)
33 };
34 
35 } // namespace Utils
math::float4 color
#define QPCL_ENGINE_LIB_API
Definition: qPCL.h:15