X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Ftrack.cpp;h=401dd2d9634956a15d645047881663e1d355c44c;hb=1ff06c5bc46a677fa389ef86c6b26664368f1653;hp=a5c5dbf62a166904a5e3203d28b53af8a637284c;hpb=bc8ac89bbe774bb133b758416182aa18e5e0a5a5;p=r2c2.git diff --git a/source/3d/track.cpp b/source/3d/track.cpp index a5c5dbf..401dd2d 100644 --- a/source/3d/track.cpp +++ b/source/3d/track.cpp @@ -1,6 +1,6 @@ /* $Id$ -This file is part of the MSP Märklin suite +This file is part of R²C² Copyright © 2006-2010 Mikkosoft Productions, Mikko Rasa Distributed under the GPL */ @@ -8,32 +8,36 @@ Distributed under the GPL #include #include #include -#include "libmarklin/tracktype.h" +#include "libr2c2/tracktype.h" #include "endpoint.h" #include "layout.h" +#include "path.h" #include "track.h" #include "tracktype.h" using namespace std; using namespace Msp; -namespace Marklin { +namespace R2C2 { Track3D::Track3D(Layout3D &l, Track &t): layout(l), track(t), - type(layout.get_catalogue().get_track(track.get_type())) + type(layout.get_catalogue().get_track(track.get_type())), + path(new Path3D(*this)) { layout.add_track(*this); layout.get_scene().add(*this); - const vector &type_eps = track.get_type().get_endpoints(); + const vector &type_eps = track.get_type().get_endpoints(); for(unsigned i=0; i(this)); @@ -95,4 +104,4 @@ void Track3D::render(const GL::Tag &tag) const glPopName(); } -} // namespace Marklin +} // namespace R2C2