ICF 3.1.1.10
Technical documentation of ICF Libraries
CArcComp.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#pragma once
7
8
9// ICF includes
11#include <i2d/CArc.h>
12
13
14namespace i2d
15{
16
17
22class CArcComp: public TObject2dCompWrap<CArc>
23{
24public:
26
27 I_BEGIN_COMPONENT(CArcComp);
28 I_REGISTER_INTERFACE(CArc);
29 I_REGISTER_INTERFACE(CCircle);
30 I_REGISTER_INTERFACE(CPosition2d);
31 I_ASSIGN(m_centerXAttrPtr, "X", "X-Position of the arc center", true, 0);
32 I_ASSIGN(m_centerYAttrPtr, "Y", "Y-Position of the arc center", true, 0);
33 I_ASSIGN(m_radiusAttrPtr, "Radius", "Radius of the arc", true, 0);
34 I_ASSIGN(m_startAngleAttrPtr, "StartAngle", "Start angle of the arc", true, 0);
35 I_ASSIGN(m_endAngleAttrPtr, "EndAngle", "End angle of the arc", true, 0);
36 I_END_COMPONENT;
37
38protected:
39 // reimplemented (icomp::CComponentBase)
40 void OnComponentCreated() override;
41
42private:
43 I_ATTR(double, m_centerXAttrPtr);
44 I_ATTR(double, m_centerYAttrPtr);
45 I_ATTR(double, m_radiusAttrPtr);
46 I_ATTR(double, m_startAngleAttrPtr);
47 I_ATTR(double, m_endAngleAttrPtr);
48};
49
50
51} // namespace i2d
52
53
Implementation of a arc as a component.
Definition CArcComp.h:23
void OnComponentCreated() override
TObject2dCompWrap< CArc > BaseClass
Definition CArcComp.h:25
Definition of graphical circle object.
Definition CCircle.h:26
Definition of graphical point object.
Definition CPosition2d.h:22
Base class for all components implementing 2D objects.
Contains the 2D objects.
Definition CAffine2d.h:15

© Witold Gantzke and Kirill Lepskiy