ICF 3.1.1.10
Technical documentation of ICF Libraries
CTubePolylineComp.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/CTubePolyline.h>
12
13
14namespace i2d
15{
16
17
21class CTubePolylineComp: public TObject2dCompWrap<CTubePolyline>
22{
23public:
25
26 I_BEGIN_COMPONENT(CTubePolylineComp);
27 I_REGISTER_INTERFACE(CTubePolyline);
28 I_ASSIGN(m_minTubeRangeValueAttrPtr, "DefaultLeftTubeRange", "Default left tube range value", false, -10);
29 I_ASSIGN(m_maxTubeRangeValueAttrPtr, "DefaultRightTubeRange", "Default right tube range value", false, 10);
30 I_ASSIGN(m_defaultAXPtr, "Default_A_X", "Default x coordinate for first line point", false, 40);
31 I_ASSIGN(m_defaultAYPtr, "Default_A_Y", "Default y coordinate for first line point", false, 40);
32 I_ASSIGN(m_defaultBXPtr, "Default_B_X", "Default x coordinate for second line point", false, 120);
33 I_ASSIGN(m_defaultBYPtr, "Default_B_Y", "Default y coordinate for second line point", false, 40);
34 I_END_COMPONENT;
35
36 // reimplemented (i2d::CPolygon)
37 bool InsertNode(const i2d::CVector2d& node) override;
38 bool InsertNode(int index, const i2d::CVector2d& node) override;
39
40protected:
41 // reimplemented (i2d::CPolygon)
42 void SetNodesCount(int count) override;
43
44 // reimplemented (icomp::CComponentBase)
45 void OnComponentCreated() override;
46
47private:
48 I_ATTR(double, m_minTubeRangeValueAttrPtr);
49 I_ATTR(double, m_maxTubeRangeValueAttrPtr);
50 I_ATTR(int, m_defaultAXPtr);
51 I_ATTR(int, m_defaultAYPtr);
52 I_ATTR(int, m_defaultBXPtr);
53 I_ATTR(int, m_defaultBYPtr);
54
55 istd::CRange m_defaultTubeRange;
56};
57
58
59} // namespace i2d
60
61
Component definition of the tube region based on a polyline.
TObject2dCompWrap< CTubePolyline > BaseClass
void OnComponentCreated() override
bool InsertNode(int index, const i2d::CVector2d &node) override
Insert a node at specified index.
void SetNodesCount(int count) override
Set new nodes count.
bool InsertNode(const i2d::CVector2d &node) override
Insert a node at the end of node table.
Definition of tube region based on polyline.
Definition of position or mathematical vector on 2D plane.
Definition CVector2d.h:29
Base class for all components implementing 2D objects.
Contains the 2D objects.
Definition CAffine2d.h:15

© Witold Gantzke and Kirill Lepskiy