50 #include <Inventor/Qt/SoQt.h>
51 #include <Inventor/Qt/viewers/SoQtExaminerViewer.h>
52 #include <Inventor/SoInput.h>
53 #include <Inventor/nodes/SoSeparator.h>
54 #include <Inventor/nodes/SoPointSet.h>
55 #include <Inventor/nodes/SoCoordinate3.h>
66 m_pMainWidget = SoQt::init(argc, args, args[0]);
68 m_pRoot =
new SoSeparator();
69 m_pPointSet =
new SoPointSet();
70 m_pCoordinate3 =
new SoCoordinate3();
72 m_pRoot->addChild(m_pCoordinate3);
73 m_pRoot->addChild(m_pPointSet);
95 m_pCoordinate3->point.set1Value(m_nCounter++, (
float) point.
x, (
float) point.
y, (
float) point.
z);
104 SoQtExaminerViewer *pViewer =
new SoQtExaminerViewer(m_pMainWidget);
105 pViewer->setSceneGraph(m_pRoot);
109 SoQt::show(m_pMainWidget);
~COpenInventorVisualizer()
void AddPoint(const Vec3d &point)
Data structure for the representation of a 3D vector.
COpenInventorVisualizer(int argc, char **args)