Cumulia Illustrator Rendering Engine v1.1.0
A Rendering engine for industrial CAD/CAE model and optimized for greatest performance
 
Loading...
Searching...
No Matches
consumer.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 protected:
30 std::shared_ptr<Vector2i> m_windowSize;
31
32 public:
33 SelectionConsumer(const std::shared_ptr<Vector2i>& windowSize);
35 };
36
38 {
39 public:
40 PixelConsumer(const std::shared_ptr<Vector2i>& windowSize);
41 virtual ~PixelConsumer();
42 int select(int x, int y);
43 };
44
46 {
47 public:
48 BoxConsumer(const std::shared_ptr<Vector2i>& windowSize);
49 virtual ~BoxConsumer();
50 std::vector<int> select(int x1, int y1, int x2, int y2);
51 };
52}
Definition consumer.h:46
std::vector< int > select(int x1, int y1, int x2, int y2)
BoxConsumer(const std::shared_ptr< Vector2i > &windowSize)
virtual ~BoxConsumer()
Definition consumer.h:38
PixelConsumer(const std::shared_ptr< Vector2i > &windowSize)
int select(int x, int y)
virtual ~PixelConsumer()
Definition consumer.h:28
virtual ~SelectionConsumer()
std::shared_ptr< Vector2i > m_windowSize
Definition consumer.h:30
SelectionConsumer(const std::shared_ptr< Vector2i > &windowSize)
Definition decal.h:23