1 /* 2 Copyright (C) 2010-2014 Kristian Duske 3 4 This file is part of TrenchBroom. 5 6 TrenchBroom is free software: you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation, either version 3 of the License, or 9 (at your option) any later version. 10 11 TrenchBroom is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with TrenchBroom. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 20 #include "MapView.h" 21 22 #include <cassert> 23 24 namespace TrenchBroom { 25 namespace View { ~MapView()26 MapView::~MapView() {} 27 isCurrent() const28 bool MapView::isCurrent() const { 29 return doGetIsCurrent(); 30 } 31 setToolBoxDropTarget()32 void MapView::setToolBoxDropTarget() { 33 doSetToolBoxDropTarget(); 34 } 35 clearDropTarget()36 void MapView::clearDropTarget() { 37 doClearDropTarget(); 38 } 39 canSelectTall()40 bool MapView::canSelectTall() { 41 return doCanSelectTall(); 42 } 43 selectTall()44 void MapView::selectTall() { 45 doSelectTall(); 46 } 47 canFlipObjects() const48 bool MapView::canFlipObjects() const { 49 return doCanFlipObjects(); 50 } 51 flipObjects(const Math::Direction direction)52 void MapView::flipObjects(const Math::Direction direction) { 53 assert(canFlipObjects()); 54 doFlipObjects(direction); 55 } 56 pasteObjectsDelta(const BBox3 & bounds,const BBox3 & referenceBounds) const57 Vec3 MapView::pasteObjectsDelta(const BBox3& bounds, const BBox3& referenceBounds) const { 58 return doGetPasteObjectsDelta(bounds, referenceBounds); 59 } 60 focusCameraOnSelection(const bool animate)61 void MapView::focusCameraOnSelection(const bool animate) { 62 doFocusCameraOnSelection(animate); 63 } 64 moveCameraToPosition(const Vec3 & position,const bool animate)65 void MapView::moveCameraToPosition(const Vec3& position, const bool animate) { 66 doMoveCameraToPosition(position, animate); 67 } 68 moveCameraToCurrentTracePoint()69 void MapView::moveCameraToCurrentTracePoint() { 70 doMoveCameraToCurrentTracePoint(); 71 } 72 } 73 } 74