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";
49 StatusCode status = sg->
retrieve(trackColl, trackname);
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();
75 for (it = params->begin();it!=itE;++it) {
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;
DataVector< Trk::Track > TrackCollection
This typedef represents a collection of Trk::Track objects.
DataModel_detail::const_iterator< DataVector > const_iterator
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
void buildEventSceneGraph(StoreGateSvc *sg, SoSeparator *root)
IVP13DSystemSimple(const QString &name, const QString &information, const QString &contact_info)
void message(const QString &) const
The Athena Transient Store API.
StatusCode retrieve(const T *&ptr) const
Retrieve the default object into a const T*.