CParallelogramComp.h
Go to the documentation of this file.
1 #pragma once
2 
3 
4 // ACF includes
6 
7 
8 // RTVision includes
9 #include <i2d/CParallelogram.h>
10 
11 
12 namespace i2d
13 {
14 
15 
20 class CParallelogramComp: public i2d::TObject2dCompWrap<i2d::CParallelogram>
21 {
22 public:
24 
25  I_BEGIN_COMPONENT(CParallelogramComp);
26  I_REGISTER_INTERFACE(CParallelogram);
27  I_REGISTER_INTERFACE(IObject2d);
28  I_REGISTER_INTERFACE(iser::ISerializable);
29  I_ASSIGN(m_xAttrPtr, "X", "X-Position of the parallelogramm", true, 0);
30  I_ASSIGN(m_yAttrPtr, "Y", "Y-Position of the parallelogramm", true, 0);
31  I_ASSIGN(m_widthAttrPtr, "Width", "Width of the parallelogramm", true, 200);
32  I_ASSIGN(m_heightAttrPtr, "Height", "Height of the parallelogramm", true, 200);
33  I_END_COMPONENT;
34 
35 protected:
36  // reimplemented (icomp::CComponentBase)
37  virtual void OnComponentCreated();
38 
39 private:
40  I_ATTR(double, m_xAttrPtr);
41  I_ATTR(double, m_yAttrPtr);
42  I_ATTR(double, m_widthAttrPtr);
43  I_ATTR(double, m_heightAttrPtr);
44 };
45 
46 
47 } // namespace i2d
48 
49 
Common class for all classes which objects can be archived or restored from archive.
Definition: ISerializable.h:23
i2d::TObject2dCompWrap< i2d::CParallelogram > BaseClass
Implementation of a parallelogram as a component.
Common interface for describing the 2D-objects.
Definition: IObject2d.h:22
This class defines parallelogram.
virtual void OnComponentCreated()
Base class for all components implementing 2D objects.

© 2007-2017 Witold Gantzke and Kirill Lepskiy