ACF
$AcfVersion:0$
Acf
Include
i2d
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
6
#include <
i2d/TObject2dCompWrap.h
>
7
#include <
i2d/CPolygon.h
>
8
9
10
namespace
i2d
11
{
12
13
18
class
CPolygonComp
:
public
TObject2dCompWrap
<CPolygon>
19
{
20
public
:
21
typedef
TObject2dCompWrap<CPolygon>
BaseClass
;
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
29
protected
:
30
// reimplemented (icomp::CComponentBase)
31
virtual
void
OnComponentCreated
()
override
;
32
33
private
:
34
I_MULTIATTR(
double
, m_xAttrPtr);
35
I_MULTIATTR(
double
, m_yAttrPtr);
36
};
37
38
39
}
// namespace i2d
40
41
42
43
CPolygon.h
TObject2dCompWrap.h
i2d::CPolygonComp
Implementation of a polygon as a component.
Definition
CPolygonComp.h:19
i2d::CPolygonComp::BaseClass
TObject2dCompWrap< CPolygon > BaseClass
Definition
CPolygonComp.h:21
i2d::CPolygonComp::OnComponentCreated
virtual void OnComponentCreated() override
i2d::CPolygon
Definition of the data model for a polygon.
Definition
CPolygon.h:20
i2d::TObject2dCompWrap
Base class for all components implementing 2D objects.
Definition
TObject2dCompWrap.h:21
i2d
Contains the 2D objects.
Definition
CAffine2d.h:11
Generated by
1.9.8