Cumulia Illustrator Rendering Engine v1.1.0
A Rendering engine for industrial CAD/CAE model and optimized for greatest performance
 
Loading...
Searching...
No Matches
scheme.h
1//##################################################################################################
2//
3// Copyright (c) 2024 Beijing Qiongqi Tech Co.,Ltd. All rights reserved.
4
5// This source code is confidential and proprietary to Beijing Qiongqi Tech Co.,Ltd(The Holder).
6// Any unauthorized use, copying, modification, or distribution of the code is strictly prohibited.
7// Any user shall obtain authorizaition from the Holder before modifying the source code. And the user shall not
8// sublicense, sell, distribute, or transfer the source code, whether in original or modified form, to any third party
9// without the prior written consent of the Holder.
10
11// This copyright notice and permission grant shall be included in all copies or substantial portions of the source code.
12
13// Author Cumulia Illustrator
14// Date 2024-10-31
15// Version V1.1.0
16//##################################################################################################
17
18#pragma once
19
20#include <cilcore.h>
21
22#include <memory>
23#include <vector>
24
25namespace cil
26{
28 {
29 public:
30 float position; // 0.0 - 1.0
32 };
33
35 {
36 public:
51 static ColorScheme jet();
53
54 private:
55 std::vector<ColorIndex> m_colors;
56
57 public:
60
61 Color3f at(float pos) const;
62 void set(const std::vector<ColorIndex>& colors);
63 void set(const std::vector<Color3f>& colors);
64 };
65
66 std::shared_ptr<Image2D> _image2d_scheme(const ColorScheme& scheme = ColorScheme::rainbow(), int nLevels = 256);
67
68 std::shared_ptr<Image2D> _image2d_rainbow();
69 std::shared_ptr<Image2D> _image2d_reverted_rainbow();
70 std::shared_ptr<Image2D> _image2d_black_white();
71 std::shared_ptr<Image2D> _image2d_cool_warm();
72 std::shared_ptr<Image2D> _image2d_metal_casting();
73 std::shared_ptr<Image2D> _image2d_thermal();
74 std::shared_ptr<Image2D> _image2d_viridis();
75 std::shared_ptr<Image2D> _image2d_kindlmann();
76 std::shared_ptr<Image2D> _image2d_inferno();
77 std::shared_ptr<Image2D> _image2d_plasma();
78 std::shared_ptr<Image2D> _image2d_radiation();
79 std::shared_ptr<Image2D> _image2d_green_brown();
80 std::shared_ptr<Image2D> _image2d_white_brown();
81 std::shared_ptr<Image2D> _image2d_gray_red();
82 std::shared_ptr<Image2D> _image2d_jet();
83 std::shared_ptr<Image2D> _image2d_terrain();
84}
The Color3f class inherits from Color3, specilizing the template parameters to float for element type...
Definition color.h:105
Definition scheme.h:28
float position
Definition scheme.h:30
Color3f color
Definition scheme.h:31
Definition scheme.h:35
static ColorScheme kindlmann()
static ColorScheme revertedRainbow()
static ColorScheme viridis()
static ColorScheme white2Brown()
Color3f at(float pos) const
static ColorScheme cool2Warm()
static ColorScheme rainbow()
static ColorScheme terrain()
static ColorScheme plasma()
static ColorScheme metalCasting()
static ColorScheme jet()
static ColorScheme green2Brown()
static ColorScheme radiation()
static ColorScheme gray2Red()
static ColorScheme thermal()
void set(const std::vector< ColorIndex > &colors)
void set(const std::vector< Color3f > &colors)
static ColorScheme black2White()
static ColorScheme inferno()
Definition decal.h:23
std::shared_ptr< Image2D > _image2d_reverted_rainbow()
std::shared_ptr< Image2D > _image2d_green_brown()
std::shared_ptr< Image2D > _image2d_white_brown()
std::shared_ptr< Image2D > _image2d_viridis()
std::shared_ptr< Image2D > _image2d_thermal()
std::shared_ptr< Image2D > _image2d_radiation()
std::shared_ptr< Image2D > _image2d_metal_casting()
std::shared_ptr< Image2D > _image2d_inferno()
std::shared_ptr< Image2D > _image2d_jet()
std::shared_ptr< Image2D > _image2d_rainbow()
std::shared_ptr< Image2D > _image2d_gray_red()
std::shared_ptr< Image2D > _image2d_black_white()
std::shared_ptr< Image2D > _image2d_kindlmann()
std::shared_ptr< Image2D > _image2d_plasma()
std::shared_ptr< Image2D > _image2d_cool_warm()
std::shared_ptr< Image2D > _image2d_scheme(const ColorScheme &scheme=ColorScheme::rainbow(), int nLevels=256)
std::shared_ptr< Image2D > _image2d_terrain()