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

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the ISIS Support Center
File Modified: 07/12/2023 23:16:10