]> git.tdb.fi Git - r2c2.git/blobdiff - source/designer/cameracontroller.cpp
Rename Point to Vector
[r2c2.git] / source / designer / cameracontroller.cpp
index edebff75f375f7911499e38f7edafb3a592217ec..97703206588b038c1b6ad862f0dd78d4f1f8f4a7 100644 (file)
@@ -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);