FLImaging 6.5.8.1
SNAPFeatureFigureScaleElementwise.h
1#pragma once
2
3#include "SNAPFeatureBase.h"
4
5
6namespace FLImaging
7{
8 namespace GUI
9 {
10 class FL_EXPORT CSNAPFeatureFigureScaleElementwise : public CSNAPFeatureBase
11 {
12 SupportToDuplicateObject(CSNAPFeatureFigureScaleElementwise, *this);
13
14 public:
15 CSNAPFeatureFigureScaleElementwise();
16 CSNAPFeatureFigureScaleElementwise(const CSNAPFeatureFigureScaleElementwise& rhs);
17 CSNAPFeatureFigureScaleElementwise(const CSNAPFeatureFigureScaleElementwise* pRhs);
18 virtual ~CSNAPFeatureFigureScaleElementwise();
19
20 virtual const CResult Assign(const CSNAPFeatureFigureScaleElementwise& rhs);
21 virtual const CResult Assign(const CSNAPFeatureFigureScaleElementwise* pRhs);
22
23 virtual const CResult Clear() override;
24
25 virtual const CResult SetSourceFigure(const Foundation::CFLFigure* pFlfSource);
26 virtual const Foundation::CFLFigure* GetSourceFigure() const;
27
28 virtual const CResult SetRatioX(double f64RatioX);
29 virtual double GetRatioX() const;
30
31 virtual const CResult SetRatioY(double f64RatioY);
32 virtual double GetRatioY() const;
33
34 virtual const CResult SetCenterType(Foundation::ECenterType eCenterType);
35 virtual Foundation::ECenterType GetCenterType() const;
36
37 virtual const Foundation::CFLFigureArray* GetResultFigure() const;
38
39 virtual const CResult Execute();
40
41 DeclareGetClassType();
42
43 public:
44 static Foundation::ECenterType ConvertCenterType(Base::CFLString<wchar_t> flsCenterType);
45 static Base::CFLString<wchar_t> ConvertCenterType(Foundation::ECenterType eCenterType);
46
47 protected:
48 static Base::CFLString<wchar_t> m_arrFlsCenterType[Foundation::g_i32GlobalCountOfECenterType];
49
50 Foundation::CFLFigure* m_pFlfSource;
51 double m_f64RatioX;
52 double m_f64RatioY;
53 Foundation::ECenterType m_eCenterType;
54
55 Foundation::CFLFigureArray* m_pFlfaResult;
56 };
57 }
58}
59
@ Assign
Set the value of CGUIPropertyItemView3DFigure to the specified figure.
@ Clear
Clear all the figure objects.