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