X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdesigner%2Fcameracontroller.cpp;h=97703206588b038c1b6ad862f0dd78d4f1f8f4a7;hb=f8a7788cee0261babfc4c804a58515aad6dfbc3d;hp=edebff75f375f7911499e38f7edafb3a592217ec;hpb=293bfd4d1a5dbd57c7d3c657e5f6467d9f2e3300;p=r2c2.git diff --git a/source/designer/cameracontroller.cpp b/source/designer/cameracontroller.cpp index edebff7..9770320 100644 --- a/source/designer/cameracontroller.cpp +++ b/source/designer/cameracontroller.cpp @@ -1,6 +1,6 @@ /* $Id$ -This file is part of the MSP Märklin suite +This file is part of R²C² Copyright © 2010 Mikkosoft Productions, Mikko Rasa Distributed under the GPL */ @@ -12,7 +12,7 @@ Distributed under the GPL using namespace std; using namespace Msp; -using namespace Marklin; +using namespace R2C2; CameraController::CameraController(Designer &d, Graphics::EventSource &es, GL::Camera &c): designer(d), @@ -46,14 +46,14 @@ void CameraController::set_look_direction(const GL::Vector3 &look) void CameraController::view_all() { - Point minp; - Point maxp; + Vector minp; + Vector maxp; const Layout3D::TrackMap &tracks = designer.get_layout_3d().get_tracks(); for(Layout3D::TrackMap::const_iterator i=tracks.begin(); i!=tracks.end(); ++i) { - Point tmin; - Point tmax; + Vector tmin; + Vector tmax; i->second->get_bounds(0, tmin, tmax); minp.x = min(minp.x, tmin.x); minp.y = min(minp.y, tmin.y);