ICF 3.1.1.10
Technical documentation of ICF Libraries
COrientedCircleComp.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/COrientedCircle.h>
12
13
14namespace i2d
15{
16
17
22class COrientedCircleComp: public TObject2dCompWrap<COrientedCircle>
23{
24public:
26
27 I_BEGIN_COMPONENT(COrientedCircleComp);
28 I_REGISTER_INTERFACE(COrientedCircle);
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_ASSIGN(m_isOrientedOutsideAttrPtr, "IsOrientedOutside", "Flag indicating that this circle is oriented to outside", true, false);
34 I_END_COMPONENT;
35
36protected:
37 // reimplemented (icomp::CComponentBase)
38 void OnComponentCreated() override;
39
40private:
41 I_ATTR(double, m_centerXAttrPtr);
42 I_ATTR(double, m_centerYAttrPtr);
43 I_ATTR(double, m_radiusAttrPtr);
44 I_ATTR(bool, m_isOrientedOutsideAttrPtr);
45};
46
47
48} // namespace i2d
49
50
Implementation of a circle as a component.
void OnComponentCreated() override
TObject2dCompWrap< COrientedCircle > BaseClass
Definition of an oriented graphical circle object.
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