FLImaging 6.5.8.1
SNAPFigureOutputInfo.h
1#pragma once
2#include "DefinitionGUISNAP.h"
3#include "GUIDefinitions.h"
4#include "../FLImagingFoundation/DefinitionsFigureText.h"
5
6namespace FLImaging
7{
8 namespace GUI
9 {
10 class FL_EXPORT CSNAPFigureOutputInfo : public Base::CFLBase
11 {
12 SupportToDuplicateObject(CSNAPFigureOutputInfo, *this);
13
14 enum ECrosshairSource
15 {
16 ECrosshairSource_Center = 0,
17 ECrosshairSource_ElementwiseCenter,
18 };
19
20 public:
21 CSNAPFigureOutputInfo();
22 CSNAPFigureOutputInfo(const CSNAPFigureOutputInfo& rh);
23 virtual ~CSNAPFigureOutputInfo();
24
25 const CResult Assign(const CSNAPFigureOutputInfo& rh);
26
27 void SetMode(EFigureOutputMode eMode);
28 EFigureOutputMode GetMode() const;
29
30 void SetLineColor(uint32_t u32Line);
31 uint32_t GetLineColor() const;
32
33 void SetLineWidth(int32_t i32LineWidth);
34 int32_t GetLineWidth() const;
35
36 void SetFillColor(uint32_t u32Fill);
37 uint32_t GetFillColor() const;
38
39 void SetPenStyle(EGUIViewImagePenStyle ePenStyle);
40 EGUIViewImagePenStyle GetPenStyle() const;
41
42 void SetLineColorAlphaRatio(float fRatio);
43 float GetLineColorAlphaRatio() const;
44
45 void SetFillColorAlphaRatio(float fRatio);
46 float GetFillColorAlphaRatio() const;
47
48 void SetEdgeColor(uint32_t u32Edge);
49 uint32_t GetEdgeColor() const;
50
51 void EnableMakeCrosshair(bool bEnable);
52 bool IsMakeCrosshairEnabled() const;
53
54 void SetCrosshairSource(ECrosshairSource eSource);
55 ECrosshairSource GetCrosshairSource() const;
56
57 void SetCrosshairLength(double f64Length);
58 double GetCrosshairLength() const;
59
60 void EnableCrosshairDiagonal(bool bEnable);
61 bool IsCrosshairDiagonalEnabled() const;
62
63 DeclareGetClassType();
64
65 protected:
66 EFigureOutputMode m_eMode;
67
68 uint32_t m_u32Line;
69 int32_t m_i32LineWidth;
70 uint32_t m_u32Fill;
71 EGUIViewImagePenStyle m_ePenStyle;
72 float m_fLineColorAlpha;
73 float m_fFillColorAlpha;
74 uint32_t m_u32Edge;
75
76 bool m_bMakeCrosshair;
77 ECrosshairSource m_eCrosshairSource;
78 double m_f64CrosshairLength;
79 bool m_bCrosshairDiagonal;
80 };
81 }
82}
83
84
EGUIViewImagePenStyle
이미지 뷰의 펜 스타일
Definition GUIDefinitions.h:4810
@ Assign
CGUIPropertyItemView3DFigure 의 값을 해당 도형으로 설정하는 함수