Cumulia Illustrator Rendering Engine v1.0.0
A Rendering engine for industrial CAD/CAE model and optimized for greatest performance
 
Loading...
Searching...
No Matches
solution.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-05-01
15// Version V1.0.0
16//##################################################################################################
17
18#pragma once
19
20#include <cilcore.h>
21
22#include <string>
23#include <memory>
24#include <vector>
25
26namespace cil
27{
28 class Model;
29 class ResultGroup;
30
31 class Solution : public std::vector<std::shared_ptr<Model>>
32 {
33 private:
34 std::string m_strFileName;
35
36 std::shared_ptr<BoundingBox> m_boundingBox;
37 std::shared_ptr<ResultGroup> m_scalars;
38 std::shared_ptr<ResultGroup> m_vectors;
39
40 void parse();
41
42 public:
44
45 void setFileName(const std::string& strFileName);
46
47 static std::shared_ptr<Solution> readVTKFile(const std::string& strFileName);
48 static std::shared_ptr<Solution> readVTUFile(const std::string& strFileName);
49 static std::shared_ptr<Solution> readVTIFile(const std::string& strFileName);
50 static std::shared_ptr<Solution> readVTPFile(const std::string& strFileName);
51 static std::shared_ptr<Solution> readVTSFile(const std::string& strFileName);
52 static std::shared_ptr<Solution> readVTRFile(const std::string& strFileName);
53 static std::shared_ptr<Solution> readVTMFile(const std::string& strFileName);
54
55 static std::shared_ptr<Solution> readGambitFile(const std::string& strFileName);
56 static std::shared_ptr<Solution> readTecplotFile(const std::string& strFileName);
57 static std::shared_ptr<Solution> readLSDynaFile(const std::string& strFileName);
58 static std::shared_ptr<Solution> readOpenFoamFile(const std::string& strFileName);
59 static std::shared_ptr<Solution> readEnSightFile(const std::string& strFileName);
60 static std::shared_ptr<Solution> readCGNSFile(const std::string& strFileName);
61
62 static std::shared_ptr<Solution> readDICOMFile(const std::string& strFileName);
63 static std::shared_ptr<Solution> readSLCFile(const std::string& strFileName);
64 static std::shared_ptr<Solution> readBYUFile(const std::string& strFileName);
65 static std::shared_ptr<Solution> readSTLFile(const std::string& strFileName);
66 static std::shared_ptr<Solution> readPLYFile(const std::string& strFileName);
67 static std::shared_ptr<Solution> readOBJFile(const std::string& strFileName);
68
69 const std::shared_ptr<ResultGroup>& scalars() const;
70 const std::shared_ptr<ResultGroup>& vectors() const;
71 const std::shared_ptr<BoundingBox>& boundingBox() const;
72 };
73}
Definition solution.h:32
static std::shared_ptr< Solution > readGambitFile(const std::string &strFileName)
static std::shared_ptr< Solution > readSLCFile(const std::string &strFileName)
const std::shared_ptr< BoundingBox > & boundingBox() const
static std::shared_ptr< Solution > readBYUFile(const std::string &strFileName)
static std::shared_ptr< Solution > readVTPFile(const std::string &strFileName)
static std::shared_ptr< Solution > readVTMFile(const std::string &strFileName)
static std::shared_ptr< Solution > readOpenFoamFile(const std::string &strFileName)
static std::shared_ptr< Solution > readTecplotFile(const std::string &strFileName)
static std::shared_ptr< Solution > readEnSightFile(const std::string &strFileName)
const std::shared_ptr< ResultGroup > & scalars() const
void setFileName(const std::string &strFileName)
static std::shared_ptr< Solution > readCGNSFile(const std::string &strFileName)
const std::shared_ptr< ResultGroup > & vectors() const
static std::shared_ptr< Solution > readOBJFile(const std::string &strFileName)
static std::shared_ptr< Solution > readVTUFile(const std::string &strFileName)
static std::shared_ptr< Solution > readVTIFile(const std::string &strFileName)
static std::shared_ptr< Solution > readPLYFile(const std::string &strFileName)
static std::shared_ptr< Solution > readSTLFile(const std::string &strFileName)
static std::shared_ptr< Solution > readLSDynaFile(const std::string &strFileName)
static std::shared_ptr< Solution > readVTRFile(const std::string &strFileName)
static std::shared_ptr< Solution > readVTKFile(const std::string &strFileName)
static std::shared_ptr< Solution > readVTSFile(const std::string &strFileName)
static std::shared_ptr< Solution > readDICOMFile(const std::string &strFileName)
Definition decal.h:23