ACF $AcfVersion:0$
CPolygonComp.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
7#include <i2d/CPolygon.h>
8
9
10namespace i2d
11{
12
13
18class CPolygonComp: public TObject2dCompWrap<CPolygon>
19{
20public:
22
23 I_BEGIN_COMPONENT(CPolygonComp);
24 I_REGISTER_INTERFACE(CPolygon);
25 I_ASSIGN_MULTI_0(m_xAttrPtr, "X", "X-Positions of the polygon points", true);
26 I_ASSIGN_MULTI_0(m_yAttrPtr, "Y", "Y-Positions of the polygon points", true);
27 I_END_COMPONENT;
28
29protected:
30 // reimplemented (icomp::CComponentBase)
31 virtual void OnComponentCreated() override;
32
33private:
34 I_MULTIATTR(double, m_xAttrPtr);
35 I_MULTIATTR(double, m_yAttrPtr);
36};
37
38
39} // namespace i2d
40
41
42
43
Implementation of a polygon as a component.
TObject2dCompWrap< CPolygon > BaseClass
virtual void OnComponentCreated() override
Definition of the data model for a polygon.
Definition CPolygon.h:20
Base class for all components implementing 2D objects.
Contains the 2D objects.
Definition CAffine2d.h:11