diff -r b486ffd0fa11 -r 8f987e376035 branchobj.cpp --- a/branchobj.cpp Mon Dec 14 10:17:55 2009 +0000 +++ b/branchobj.cpp Mon Jan 04 20:36:06 2010 +0000 @@ -26,22 +26,6 @@ init(); } -/* -BranchObj::BranchObj (QGraphicsScene* s, LinkableMapObj* p):OrnamentedObj (s)// FIXME-3 needed at all? -{ -// cout << "Const BranchObj (s,p)\n"; - scene=s; - setParObj (p); - if (treeItem->depth()==1) // FIXME-3 needed to recursively calc depth? - // Calc angle to mapCenter if I am a mainbranch - // needed for reordering the mainbranches clockwise - // around mapcenter - angle=getAngle (QPointF (x() - parObj->getChildPos().x() , - (y() - parObj->getChildPos().y() ) ) ); - init(); -} -*/ - BranchObj::~BranchObj () { // cout << "Destr BranchObj of "<getHeading().toStdString()<<")"<isScrolled() ) return r; +/* FIXME-2 really include children _here_ ? likely not needed anymore, but done in TreeItem */ for (int i=0; ibranchCount(); ++i) if (!treeItem->getBranchNum(i)->isHidden()) r=addBBox(treeItem->getBranchObjNum(i)->getTotalBBox(),r); @@ -643,9 +628,11 @@ (have been NULL at least in calcBBoxSizeWithChilds...) */ - for (int i=0; iimageCount(); ++i) +/* FIXME-2 in + for (int i=0; iimageCount(); ++i if (!treeItem->isHidden()) r=addBBox(treeItem->getImageObjNum(i)->getTotalBBox(),r); +*/ return r; } @@ -672,7 +659,7 @@ return MapObj::getBoundingPolygon(); } - calcBBoxSizeWithChildren(); //FIXME-3 really needed? + calcBBoxSizeWithChildren(); //FIXME-2 really needed? QPolygonF p; p<getModel(); - if (model) - return model->getSelectString (this); - else - return QString(); -} - void BranchObj::setAnimation(const AnimPoint &ap) { anim=ap;