ICF 3.1.1.10
Technical documentation of ICF Libraries
CAnnulusComp.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/CAnnulus.h>
12
13
14namespace i2d
15{
16
17
22class CAnnulusComp: public TObject2dCompWrap<CAnnulus>
23{
24public:
26
27 I_BEGIN_COMPONENT(CAnnulusComp);
28 I_REGISTER_INTERFACE(i2d::CAnnulus);
29 I_REGISTER_INTERFACE(CPosition2d);
30 I_ASSIGN(m_centerXAttrPtr, "X", "X-Position of the annulus center", true, 0);
31 I_ASSIGN(m_centerYAttrPtr, "Y", "X-Position of the annulus center", true, 0);
32 I_ASSIGN(m_innerRadiusAttrPtr, "InnerRadius", "Inner radius of the annulus", true, 0);
33 I_ASSIGN(m_outerRadiusAttrPtr, "OuterRadius", "Outer radius of the annulus", true, 0);
34 I_END_COMPONENT;
35
36protected:
37 // reimplemented (icomp::CComponentBase)
38 void OnComponentCreated() override;
39
40 // reimplemented (istd::IChangeable)
42
43private:
44 I_ATTR(double, m_centerXAttrPtr);
45 I_ATTR(double, m_centerYAttrPtr);
46 I_ATTR(double, m_innerRadiusAttrPtr);
47 I_ATTR(double, m_outerRadiusAttrPtr);
48};
49
50
51} // namespace i2d
52
53
Implementation of an annulus as a component.
TObject2dCompWrap< CAnnulus > BaseClass
void OnComponentCreated() override
bool ResetData(CompatibilityMode mode=CM_WITHOUT_REFS) override
Reset data to its default state.
Definition of graphical annulus object.
Definition CAnnulus.h:24
Definition of graphical point object.
Definition CPosition2d.h:22
Base class for all components implementing 2D objects.
CompatibilityMode
Control how relationship betweeen objects are interpreted.
@ CM_WITHOUT_REFS
External references are simple ignored.
Contains the 2D objects.
Definition CAffine2d.h:15

© Witold Gantzke and Kirill Lepskiy