2 Copyright (C) 1999-2006 Id Software, Inc. and contributors.
3 For a list of contributors, see the accompanying CONTRIBUTORS file.
5 This file is part of GtkRadiant.
7 GtkRadiant is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 GtkRadiant is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GtkRadiant; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 #if !defined(INCLUDED_SELECT_H)
23 #define INCLUDED_SELECT_H
25 #include "math/vector.h"
27 void Select_GetBounds(Vector3& mins, Vector3& maxs);
28 void Select_GetMid(Vector3& mid);
32 void Scene_ExpandSelectionToEntities();
34 void Selection_Flipx();
35 void Selection_Flipy();
36 void Selection_Flipz();
37 void Selection_Rotatex();
38 void Selection_Rotatey();
39 void Selection_Rotatez();
42 void Selection_MoveDown();
43 void Selection_MoveUp();
45 void Select_AllOfType();
51 void Select_SetShader(const char* shader);
53 class TextureProjection;
54 void Select_SetTexdef(const TextureProjection& projection);
56 class ContentsFlagsValue;
57 void Select_SetFlags(const ContentsFlagsValue& flags);
59 void Select_RotateTexture(float amt);
60 void Select_ScaleTexture(float x, float y);
61 void Select_ShiftTexture(float x, float y);
62 void Select_FitTexture(float horizontal = 1, float vertical = 1);
63 void FindReplaceTextures(const char* pFind, const char* pReplace, bool bSelected);
66 void Select_ShowAllHidden();
68 // updating workzone to a given brush (depends on current view)
70 void Selection_construct();
71 void Selection_destroy();
74 struct select_workzone_t
76 // defines the boundaries of the current work area
77 // is used to guess brushes and drop points third coordinate when creating from 2D view
78 Vector3 d_work_min, d_work_max;
81 d_work_min(-64.0f,-64.0f,-64.0f),
82 d_work_max( 64.0f, 64.0f, 64.0f)
87 const select_workzone_t& Select_getWorkZone();