20#include <Inventor/C/errors/debugerror.h>
21#include <Inventor/nodes/SoVertexProperty.h>
22#include <Inventor/nodes/SoPointSet.h>
23#include <Inventor/nodes/SoSeparator.h>
25#include <QTreeWidgetItem>
29#include <Inventor/SoPath.h>
45 SoVertexProperty * vertices =
new SoVertexProperty;
46 vertices->vertex.set1Value(0,0.0f,0.0f,0.0f);
50 m_d->last_selectedHandle=0;
64 m_d->nodeToHandle[
h->nodes()]=
h;
72 for (
auto it :
m_d->nodeToHandle) {
74 m_d->nodeToHandle.erase(it.first);
80 auto it =
m_d->nodeToHandle.find(
node);
81 if (it==
m_d->nodeToHandle.end()){
82 message(
"AODSysCommonData::getHandleFromNode - handle not registered!");
83 message(
"AODSysCommonData::getHandleFromNode - have this many handles:"+
str(
m_d->nodeToHandle.size()));
92 const int n(path?path->getLength():0);
94 for (
int i = 0; i < n; ++i) {
95 if (path->getNodeFromTail(i)->getTypeId()==SoSeparator::getClassTypeId()) {
105 message(
"AODSysCommonData::getNodeFromBrowser - about to loop over this many handles:"+
str(
m_d->nodeToHandle.size()));
108 std::map<SoNode*,AODHandleBase*>::iterator it =
m_d->nodeToHandle.begin(), itEnd=
m_d->nodeToHandle.end();
109 for (; it!=itEnd;++it)
110 if (it->second->browserTreeItem()==item)
return it->first;
117 m_d->last_selectedHandle=
h;
std::map< SoNode *, AODHandleBase * > nodeToHandle
AODHandleBase * last_selectedHandle
SoPointSet * m_singlePoint
const AODSystemController * controller() const
void registerHandle(AODHandleBase *h)
VP1AODSystem * m_3dsystem
AODHandleBase * getHandleFromNode(SoNode *node)
void deregisterHandle(AODHandleBase *h)
SoNode * getNodeFromBrowser(QTreeWidgetItem *item)
Trk::IExtrapolationEngine * m_extrapolator
void setLastSelectedHandle(AODHandleBase *h)
AODSystemController * m_controller
virtual ~AODSysCommonData()
AODSysCommonData(VP1AODSystem *sys, AODSystemController *)
Header file for AthHistogramAlgorithm.
VP1HelperClassBase(IVP1System *sys=0, QString helpername="")
void message(const QString &) const