22 #include <Inventor/nodes/SoSeparator.h>
23 #include <Inventor/nodes/SoLineSet.h>
24 #include <Inventor/nodes/SoVertexProperty.h>
29 "This is an illustration of a very basic 3D system.\n"
30 "It simply transforms track information found in storegate"
31 " into relevant 3D objects (SoLineSet's).",
32 "Thomas.Kittelmann@cern.ch")
43 message(
"Error: Got null storegate pointer");
48 std::string trackname=
"Tracks";
50 if (
status != StatusCode::SUCCESS || !trackColl) {
51 message(
"Error: Could not retrieve track collection (used key="+QString(trackname.c_str())+
")");
59 for ( trackItr = trackColl->
begin() ; trackItr != trackItrEnd; ++trackItr) {
71 SoVertexProperty *vertices =
new SoVertexProperty();
76 vertices->vertex.set1Value(iver++,(*it)->position().x(),(*it)->position().y(),(*it)->position().z());
80 SoLineSet *
line =
new SoLineSet();
81 line->numVertices = iver;
82 line->vertexProperty = vertices;