select.h

Go to the documentation of this file.
00001 /*
00002  Copyright (C) 1999-2006 Id Software, Inc. and contributors.
00003  For a list of contributors, see the accompanying CONTRIBUTORS file.
00004 
00005  This file is part of GtkRadiant.
00006 
00007  GtkRadiant is free software; you can redistribute it and/or modify
00008  it under the terms of the GNU General Public License as published by
00009  the Free Software Foundation; either version 2 of the License, or
00010  (at your option) any later version.
00011 
00012  GtkRadiant is distributed in the hope that it will be useful,
00013  but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  GNU General Public License for more details.
00016 
00017  You should have received a copy of the GNU General Public License
00018  along with GtkRadiant; if not, write to the Free Software
00019  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00020  */
00021 
00022 #if !defined(INCLUDED_SELECT_H)
00023 #define INCLUDED_SELECT_H
00024 
00025 #include "math/Vector3.h"
00026 #include <string>
00027 
00028 void Select_GetBounds (Vector3& mins, Vector3& maxs);
00029 void Select_GetMid (Vector3& mid);
00030 
00031 void Selection_Deselect (void);
00032 
00033 void Select_Delete ();
00034 void Select_Invert ();
00035 void Select_Inside ();
00036 void Select_Touching ();
00037 void Scene_ExpandSelectionToEntities ();
00038 
00039 void Selection_Flipx ();
00040 void Selection_Flipy ();
00041 void Selection_Flipz ();
00042 void Selection_Rotatex ();
00043 void Selection_Rotatey ();
00044 void Selection_Rotatez ();
00045 
00046 void Selection_MoveDown ();
00047 void Selection_MoveUp ();
00048 
00049 void Select_AllOfType ();
00050 void Select_AllFacesWithTexture (void);
00051 
00052 void DoRotateDlg ();
00053 void DoScaleDlg ();
00054 
00055 void Select_SetShader (const char* shader);
00056 
00057 class TextureProjection;
00058 void Select_SetTexdef (const TextureProjection& projection);
00059 
00060 class ContentsFlagsValue;
00061 void Select_SetFlags (const ContentsFlagsValue& flags);
00062 
00063 void Select_RotateTexture (float amt);
00064 void Select_ScaleTexture (float x, float y);
00065 void Select_ShiftTexture (float x, float y);
00066 void Select_FitTexture (float horizontal = 1, float vertical = 1);
00067 void FindReplaceTextures (const std::string& pFind, const std::string& pReplace, bool bSelected);
00068 
00069 void HideSelected ();
00070 void Select_ShowAllHidden ();
00071 
00072 // updating workzone to a given brush (depends on current view)
00073 
00074 void Selection_Construct ();
00075 void Selection_Destroy ();
00076 
00082 struct WorkZone
00083 {
00084         // defines the boundaries of the current work area
00085         // is used to guess brushes and drop points third coordinate when creating from 2D view
00086         Vector3 min, max;
00087 
00088         WorkZone () :
00089             min(-64.0f, -64.0f, -64.0f), max(64.0f, 64.0f, 64.0f)
00090         {
00091         }
00092 };
00093 
00094 const WorkZone& Select_getWorkZone ();
00095 
00096 #endif

Generated by  doxygen 1.6.2