Isis 3 Programmer Reference
PointParentItem.cpp
1 #include "IsisDebug.h"
2 
3 #include "PointParentItem.h"
4 
5 #include "MeasureLeafItem.h"
6 
7 
8 namespace Isis {
9  PointParentItem::PointParentItem(ControlPoint *cp,
10  int avgCharWidth, AbstractTreeItem *parent)
11  : AbstractTreeItem(parent), AbstractPointItem(cp, avgCharWidth) {
12  }
13 
14 
15  PointParentItem::~PointParentItem() {
16  }
17 
18 
19  void PointParentItem::addChild(AbstractTreeItem *child) {
20  // Only MeasureLeafItems should be children of PointParentItems
21  ASSERT(dynamic_cast< MeasureLeafItem * >(child));
22 
23  AbstractParentItem::addChild(child);
24  }
25 }
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31