17 #include <Inventor/nodes/SoSeparator.h>
18 #include <Inventor/nodes/SoLineSet.h>
19 #include <Inventor/nodes/SoVertexProperty.h>
26 #include "GaudiKernel/SystemOfUnits.h"
32 "This is an illustration of a very basic 3D system.\n"
33 "It transforms track information found in storegate"
34 " into relevant 3D objects (SoLineSet's), and displays track information when tracks are selected by the cursor.",
35 "Thomas.Kittelmann@cern.ch")
49 message(
"Error: Got null storegate pointer");
54 std::string trackname=
"Tracks";
56 if (
status != StatusCode::SUCCESS || !trackColl) {
57 message(
"Error: Could not retrieve track collection (used key="+QString(trackname.c_str())+
")");
65 for ( trackItr = trackColl->
begin() ; trackItr != trackItrEnd; ++trackItr) {
77 SoVertexProperty *vertices =
new SoVertexProperty();
82 vertices->vertex.set1Value(iver++,(*it)->position().x(),(*it)->position().y(),(*it)->position().z());
86 SoLineSet *
line =
new SoLineSet();
87 line->numVertices = iver;
88 line->vertexProperty = vertices;
108 message(
"Error: Does not have track information for picked node");
115 message(
"Error: Track has no trackparameters");