Cumulia Illustrator Rendering Engine v2.1.0
A Rendering engine for industrial CAD/CAE model and optimized for greatest performance
 
Loading...
Searching...
No Matches
settings.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 2025-08-05
15// Version V2.1.0
16//##################################################################################################
17
18#pragma once
19
20#include <map>
21#include <memory>
22#include <string>
23
24#include <cilcore.h>
25
26namespace cil
27{
28 class DataSolution;
29 class VizScalar;
30 class VizVector;
31
33 {
34 public:
36
37 void initialize(const std::shared_ptr<DataSolution>& dataSolution);
38 void updateBoundingBox(const std::shared_ptr<DataSolution>& dataSolution);
39 void updateScalarSettings(const std::shared_ptr<DataSolution>& dataSolution);
40 void updateVectorSettings(const std::shared_ptr<DataSolution>& dataSolution);
41 void updateLegoSettings(const std::shared_ptr<DataSolution>& dataSolution);
42
43 std::map<std::string, std::shared_ptr<VizScalar>> vizScalars;
44 std::map<std::string, std::shared_ptr<VizVector>> vizVectors;
45 std::string defaultScalar;
46 std::string defaultVector;
47 std::string defaultOffset;
48 std::shared_ptr<BoundingBox> boundingBox;
49 std::shared_ptr<Color4f> lineColor;
50 std::shared_ptr<Color4f> widthLineColor;
51 std::shared_ptr<Real> pointSize;
52 std::shared_ptr<Real> lineWidth;
53 std::shared_ptr<ImageCube> envMappingImage;
54
58 std::shared_ptr<Real> opacity;
59 std::shared_ptr<Real> currentTime;
60 std::shared_ptr<Real> cycleTime;
61 std::shared_ptr<Integer> strips;
62
63 std::shared_ptr<Real> legoDensity;
64 std::shared_ptr<Real> legoGap;
65 std::shared_ptr<Real> legoWidth;
66
67 };
68}
Definition settings.h:33
std::shared_ptr< Real > lineWidth
Definition settings.h:52
std::map< std::string, std::shared_ptr< VizVector > > vizVectors
Definition settings.h:44
void updateBoundingBox(const std::shared_ptr< DataSolution > &dataSolution)
std::string defaultOffset
Definition settings.h:47
void updateVectorSettings(const std::shared_ptr< DataSolution > &dataSolution)
std::shared_ptr< Color4f > lineColor
Definition settings.h:49
std::shared_ptr< Color4f > widthLineColor
Definition settings.h:50
std::shared_ptr< ImageCube > envMappingImage
Definition settings.h:53
std::shared_ptr< Real > opacity
Definition settings.h:58
std::shared_ptr< BoundingBox > boundingBox
Definition settings.h:48
std::shared_ptr< Real > legoDensity
Definition settings.h:63
std::shared_ptr< Integer > strips
Definition settings.h:61
std::map< std::string, std::shared_ptr< VizScalar > > vizScalars
Definition settings.h:43
std::string defaultScalar
Definition settings.h:45
std::shared_ptr< Real > cycleTime
Definition settings.h:60
std::string defaultVector
Definition settings.h:46
std::shared_ptr< Real > legoWidth
Definition settings.h:65
float maximiumOffsetLength
Definition settings.h:55
bool fixedArrowLength
Definition settings.h:57
float maximiumVectorLength
Definition settings.h:56
void updateLegoSettings(const std::shared_ptr< DataSolution > &dataSolution)
void updateScalarSettings(const std::shared_ptr< DataSolution > &dataSolution)
std::shared_ptr< Real > pointSize
Definition settings.h:51
std::shared_ptr< Real > legoGap
Definition settings.h:64
void initialize(const std::shared_ptr< DataSolution > &dataSolution)
std::shared_ptr< Real > currentTime
Definition settings.h:59
Definition decal.h:23