20ElementDataObject::ElementDataObject() : wxDataObjectSimple(wxDataFormat(wxT(
"PSPCopy")))
25ElementDataObject::ElementDataObject(std::vector<Element*> elementList) : wxDataObjectSimple(wxDataFormat(wxT(
"PSPCopy")))
28 if(elementList.size() > 0) {
30 for(
auto it = elementList.begin(), itEnd = elementList.end(); it != itEnd; ++it) {
33 if(
Bus* bus =
dynamic_cast<Bus*
>(copy))
34 m_elementsLists->parentList.push_back(bus);
36 m_elementsLists->elementList.push_back(copy);
42ElementDataObject::~ElementDataObject() {}
43size_t ElementDataObject::GetDataSize()
const
49bool ElementDataObject::GetDataHere(
void* buf)
const
56bool ElementDataObject::SetData(
size_t len,
const void* buf)
Node for power elements. All others power elements are connected through this.
Base class of all elements of the program. This class is responsible for manage graphical and his dat...
virtual Element * GetCopy()
Get a the element copy.