6 #if !defined(LST_ELEMENTLIST_H__INCLUDED)
7 #define LST_ELEMENTLIST_H__INCLUDED
12 #include "Utility/DPoint.h"
36 { type = Graphical; data.pObj = NULL; flags = 0; };
39 { type = Graphical, data.pObj =
pObj; flags = 0; };
41 { type = AppStruct, data.pAppStruct =
pAppStruct; flags = 0; };
43 { type = Segment, data.pSegment =
pSegment; flags = 0; };
50 void Draw(CDrawBase* pDB);
51 DRect GetBounds(
bool locus =
false)
const;
52 bool HitTest(DPoint point,
double margin)
const;
53 void TransformBy(CMatrix* pXF);
55 enum PicElementType type;
87 bool erase(
int index);
100 #endif // LST_ELEMENTLIST_H__INCLUDED
virtual ~PicElement()
Deconstructor.
Definition: ElementList.cpp:106
PicElement – Picture element list container, each list element will be pointer to a Graphical Element...
Definition: ElementList.h:25
CSegment – Segment class- a segment is a list of picture elements.
Definition: Segment.h:7
PicElement()
Constructor for empty element.
Definition: ElementList.h:35
void add(CCgmBaseObj *pObj)
add graphical element
Definition: ElementList.cpp:45
CElementList * m_pParent
pointer to owner of this element list
Definition: ElementList.h:94
PicElement(CCgmBaseObj *pObj)
Constructor.
Definition: ElementList.h:38
CSegment * pSegment
pointer to local segment
Definition: ElementList.h:62
CCgmBaseObj * pObj
pointer to graphical element
Definition: ElementList.h:58
CElementList – Picture elements list.
Definition: ElementList.h:69
CAppStruct * pAppStruct
pointer to APS
Definition: ElementList.h:60
CCgmBaseObj – graphical element container base class.
Definition: CgmObj.h:121
CAppStruct – Application Structure (APS) container class.
Definition: AppStruct.h:23
bool erase(int index)
erase element at specified index in elements list
Definition: ElementList.cpp:82
int find(PicElement &elem)
find element in list
Definition: ElementList.cpp:70
CElementList()
Constructor.
Definition: ElementList.cpp:15
std::vector< PicElement > m_elements
elements list
Definition: ElementList.h:92
bool insert(int index, PicElement &elem)
insert element in elements list
Definition: ElementList.cpp:93