ACF $AcfVersion:0$
CAnnulusSegmentComp.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// ACF includes
8
9
10namespace i2d
11{
12
13
18class CAnnulusSegmentComp: public TObject2dCompWrap<CAnnulusSegment>
19{
20public:
22
23 I_BEGIN_COMPONENT(CAnnulusSegmentComp);
24 I_REGISTER_INTERFACE(CAnnulusSegment);
25 I_REGISTER_INTERFACE(CAnnulus);
26 I_REGISTER_INTERFACE(CPosition2d);
27 I_REGISTER_INTERFACE(IObject2d);
28 I_REGISTER_INTERFACE(iser::ISerializable);
29 I_ASSIGN(m_centerXAttrPtr, "X", "X-Position of the annulus center", true, 0);
30 I_ASSIGN(m_centerYAttrPtr, "Y", "X-Position of the annulus center", true, 0);
31 I_ASSIGN(m_innerRadiusAttrPtr, "InnerRadius", "Inner radius of the annulus", true, 0);
32 I_ASSIGN(m_outerRadiusAttrPtr, "OuterRadius", "Outer radius of the annulus", true, 0);
33 I_ASSIGN(m_beginAngleAttrPtr, "BeginAngle", "Begin angle (in degree) of the annulus segment", true, 0);
34 I_ASSIGN(m_endAngleAttrPtr, "EndAngle", "End angle (in degree) of the annulus segement", true, 360);
35 I_END_COMPONENT;
36
37protected:
38 // reimplemented (icomp::CComponentBase)
39 virtual void OnComponentCreated() override;
40
41private:
42 I_ATTR(double, m_centerXAttrPtr);
43 I_ATTR(double, m_centerYAttrPtr);
44 I_ATTR(double, m_innerRadiusAttrPtr);
45 I_ATTR(double, m_outerRadiusAttrPtr);
46 I_ATTR(double, m_beginAngleAttrPtr);
47 I_ATTR(double, m_endAngleAttrPtr);
48};
49
50
51} // namespace i2d
52
53
54
55
Definition of graphical annulus object.
Definition CAnnulus.h:20
Implementation of a annulus segment as a component.
TObject2dCompWrap< CAnnulusSegment > BaseClass
virtual void OnComponentCreated() override
Radial segment of the annulus object.
Definition of graphical point object.
Definition CPosition2d.h:18
Common interface for describing the 2D-objects.
Definition IObject2d.h:26
Base class for all components implementing 2D objects.
Common class for all classes which objects can be archived or restored from archive.
Contains the 2D objects.
Definition CAffine2d.h:11