Cumulia Illustrator Rendering Engine v1.0.0
A Rendering engine for industrial CAD/CAE model and optimized for greatest performance
 
Loading...
Searching...
No Matches
axis.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
22namespace cil
23{
24 class Axis : public Pass
25 {
26 public:
27 Axis(const std::shared_ptr<Vector2i>& coordinate, const std::shared_ptr<Vector2i>& backgroundSize, const std::shared_ptr<Vector2i>& windowSize, const std::string& fontFile);
28 virtual ~Axis();
29
30 void sync(const std::shared_ptr<Camera>& camera);
31
32 private:
33 std::shared_ptr<Node> buildAxis();
34 std::shared_ptr<Node> buildLabel(const std::string& fontFile);
35
36 private:
37 std::shared_ptr<Vector2i> m_backgroundSize;
38 std::shared_ptr<Vector2i> m_windowSize;
39 };
40
41 std::shared_ptr<Axis> _axis(const std::shared_ptr<Vector2i>& coordinate, const std::shared_ptr<Vector2i>& backgroundSize, const std::shared_ptr<Vector2i>& windowSize, const std::string& fontFile);
42}
Definition axis.h:25
void sync(const std::shared_ptr< Camera > &camera)
Axis(const std::shared_ptr< Vector2i > &coordinate, const std::shared_ptr< Vector2i > &backgroundSize, const std::shared_ptr< Vector2i > &windowSize, const std::string &fontFile)
virtual ~Axis()
The Pass class represents a rendering pass within a graphics pipeline.
Definition pass.h:34
std::shared_ptr< Camera > camera
This member holds a shared pointer to a Camera object which the current pass uses for rendering.
Definition pass.h:39
Definition decal.h:23
std::shared_ptr< Axis > _axis(const std::shared_ptr< Vector2i > &coordinate, const std::shared_ptr< Vector2i > &backgroundSize, const std::shared_ptr< Vector2i > &windowSize, const std::string &fontFile)