-/* $Id$
-
-This file is part of R²C²
-Copyright © 2010 Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
#include <msp/gl/matrix.h>
#include <msp/gl/meshbuilder.h>
#include "3d/tracktype.h"
-#include "designer.h"
#include "selection.h"
#include "trackwrap.h"
using namespace Msp;
using namespace R2C2;
-TrackWrap::TrackWrap(Designer &d, Selection &s):
- designer(d),
+TrackWrap::TrackWrap(Layout3D &l, Selection &s):
+ layout(l),
selection(s)
{
selection.signal_changed.connect(sigc::mem_fun(this, &TrackWrap::selection_changed));
if(j!=meshes.end())
return *j->second;
- const TrackType3D &type3d = designer.get_layout_3d().get_catalogue().get_track(type);
+ const TrackType3D &type3d = layout.get_catalogue().get_track(type);
float min_area = -1;
float angle = 0;