ICF 3.1.1.10
Technical documentation of ICF Libraries
CCircleComp.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/CCircle.h>
12
13
14namespace i2d
15{
16
17
22class CCircleComp: public TObject2dCompWrap<CCircle>
23{
24public:
26
27 I_BEGIN_COMPONENT(CCircleComp);
28 I_REGISTER_INTERFACE(CCircle);
29 I_REGISTER_INTERFACE(CPosition2d);
30 I_ASSIGN(m_centerXAttrPtr, "X", "X-Position of the circle center", true, 0);
31 I_ASSIGN(m_centerYAttrPtr, "Y", "Y-Position of the circle center", true, 0);
32 I_ASSIGN(m_radiusAttrPtr, "Radius", "Radius of the circle", true, 0);
33 I_END_COMPONENT;
34
35protected:
36 // reimplemented (icomp::CComponentBase)
37 void OnComponentCreated() override;
38
39private:
40 I_ATTR(double, m_centerXAttrPtr);
41 I_ATTR(double, m_centerYAttrPtr);
42 I_ATTR(double, m_radiusAttrPtr);
43};
44
45
46} // namespace i2d
47
48
Implementation of a circle as a component.
Definition CCircleComp.h:23
TObject2dCompWrap< CCircle > BaseClass
Definition CCircleComp.h:25
void OnComponentCreated() override
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