ACF $AcfVersion:0$
CParallelogramComp.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 CParallelogramComp: public i2d::TObject2dCompWrap<i2d::CParallelogram>
19{
20public:
22
23 I_BEGIN_COMPONENT(CParallelogramComp);
24 I_REGISTER_INTERFACE(CParallelogram);
25 I_REGISTER_INTERFACE(IObject2d);
26 I_REGISTER_INTERFACE(iser::ISerializable);
27 I_ASSIGN(m_xAttrPtr, "X", "X-Position of the parallelogramm", true, 0);
28 I_ASSIGN(m_yAttrPtr, "Y", "Y-Position of the parallelogramm", true, 0);
29 I_ASSIGN(m_widthAttrPtr, "Width", "Width of the parallelogramm", true, 200);
30 I_ASSIGN(m_heightAttrPtr, "Height", "Height of the parallelogramm", true, 200);
31 I_END_COMPONENT;
32
33protected:
34 // reimplemented (icomp::CComponentBase)
35 virtual void OnComponentCreated() override;
36
37private:
38 I_ATTR(double, m_xAttrPtr);
39 I_ATTR(double, m_yAttrPtr);
40 I_ATTR(double, m_widthAttrPtr);
41 I_ATTR(double, m_heightAttrPtr);
42};
43
44
45} // namespace i2d
46
47
Implementation of a parallelogram as a component.
i2d::TObject2dCompWrap< i2d::CParallelogram > BaseClass
virtual void OnComponentCreated() override
This class defines parallelogram.
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