select.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
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
00073
00074 void Selection_Construct ();
00075 void Selection_Destroy ();
00076
00082 struct WorkZone
00083 {
00084
00085
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