doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions | Variables
XYWnd.cpp File Reference
#include "../../idlib/precompiled.h"
#include "qe3.h"
#include "Radiant.h"
#include "XYWnd.h"
#include "DialogInfo.h"
#include "splines.h"
#include "../../renderer/tr_local.h"
#include "../../renderer/model_local.h"

Go to the source code of this file.

Macros

#define MAX_DRAG_POINTS   128
 

Functions

void Select_Ungroup ()
 
void AcquirePath (int nCount, PFNPathCallback *pFunc)
 
CMemFile g_Clipboard (4096)
 
CMemFile g_PatchClipboard (4096)
 
float fDiff (float f1, float f2)
 
CDragPoint * PointRay (const idVec3 &org, const idVec3 &dir, float *dist)
 
void ClearSelectablePoints (brush_t *b)
 
void AddSelectablePoint (brush_t *b, idVec3 v, int type, bool priority)
 
void UpdateSelectablePoint (brush_t *b, idVec3 v, int type)
 
void VectorToAngles (idVec3 vec, idVec3 angles)
 
void VectorSnapGrid (idVec3 &v)
 
idVec3 Brush_TransformedPoint (brush_t *b, const idVec3 &in)
 
idMat3 Brush_RotationMatrix (brush_t *b)
 
bool UpdateActiveDragPoint (const idVec3 &move)
 
bool SetDragPointCursor (idVec3 p, int nView)
 
void SetActiveDrag (CDragPoint *p)
 
void ClearActiveDrag ()
 
 IMPLEMENT_DYNCREATE (CXYWnd, CWnd)
 
LONG WINAPI XYWndProc (HWND, UINT, WPARAM, LPARAM)
 
void WXY_Print (void)
 
float ptSum (idVec3 pt)
 
float Betwixt (float f1, float f2)
 
void CleanList (brush_t *pList)
 
void Brush_CopyList (brush_t *pFrom, brush_t *pTo)
 
void CreateEntityFromName (char *pName, brush_t *pBrush, bool forceFixed, idVec3 min, idVec3 max, idVec3 org)
 
brush_t * CreateEntityBrush (int x, int y, CXYWnd *pWnd)
 
void CreateRightClickEntity (CXYWnd *pWnd, int x, int y, char *pName)
 
brush_t * CreateSmartBrush (idVec3 v)
 
void _SmartPointDone (bool b, int n)
 
void CreateSmartEntity (CXYWnd *pWnd, int x, int y, const char *pName)
 
void FinishSmartCreation ()
 
bool MergeMenu (CMenu *pMenuDestination, const CMenu *pMenuAdd, bool bTopLevel)
 
void GLColoredBoxWithLabel (float x, float y, float size, idVec4 color, const char *text, idVec4 textColor, float xofs, float yofs, float lineSize)
 
bool FilterBrush (brush_t *pb)
 
void DrawPathLines (void)
 
void DrawBrushEntityName (brush_t *b)
 
bool Select_OnlyModelsSelected ()
 
void CleanCopyEntities ()
 
entity_tEntity_CopyClone (entity_t *e)
 
bool OnList (entity_t *pFind, CPtrArray *pList)
 
void AssignModel ()
 

Variables

const char * g_pDimStrings [] = { "x:%.f", "y:%.f", "z:%.f" }
 
const char * g_pOrgStrings [] = { "(x:%.f y:%.f)", "(x:%.f z:%.f)", "(y:%.f z:%.f)" }
 
CString g_strDim
 
CString g_strStatus
 
bool g_bCrossHairs = false
 
bool g_bScaleMode
 
int g_nScaleHow
 
bool g_bRotateMode
 
bool g_bClipMode
 
bool g_bRogueClipMode
 
bool g_bSwitch
 
CClipPoint g_Clip1
 
CClipPoint g_Clip2
 
CClipPoint g_Clip3
 
CClipPointg_pMovingClip
 
brush_t g_brFrontSplits
 
brush_t g_brBackSplits
 
brush_t g_brClipboard
 
brush_t g_brUndo
 
entity_t g_enClipboard
 
idVec3 g_vRotateOrigin
 
idVec3 g_vRotation
 
bool g_bPathMode
 
CClipPoint g_PathPoints [256]
 
CClipPointg_pMovingPath
 
int g_nPathCount
 
int g_nPathLimit
 
bool g_bSmartGo
 
bool g_bPointMode
 
CClipPoint g_PointPoints [512]
 
CClipPointg_pMovingPoint
 
int g_nPointCount
 
int g_nPointLimit
 
const int XY_LEFT = 0x01
 
const int XY_RIGHT = 0x02
 
const int XY_UP = 0x04
 
const int XY_DOWN = 0x08
 
PFNPathCallbackg_pPathFunc = NULL
 
CPtrArray g_ptrMenus
 
int pressx
 
int pressy
 
CPtrArray dragPoints
 
HDC s_hdcXY
 
HGLRC s_hglrcXY
 
idVec3 tdp
 
CString g_strSmartEntity
 
int g_nSmartX
 
int g_nSmartY
 
bool g_bSmartWaiting
 
idVec3 dragOrigin
 
idVec3 dragDir
 
idVec3 dragX
 
idVec3 dragY
 
long g_lCount = 0
 
long g_lTotal = 0
 
brush_t hold_brushes
 

Macro Definition Documentation

#define MAX_DRAG_POINTS   128

Definition at line 126 of file XYWnd.cpp.

Function Documentation

void _SmartPointDone ( bool  b,
int  n 
)

Definition at line 1812 of file XYWnd.cpp.

void AcquirePath ( int  nCount,
PFNPathCallback pFunc 
)

Definition at line 98 of file XYWnd.cpp.

void AddSelectablePoint ( brush_t *  b,
idVec3  v,
int  type,
bool  priority 
)

Definition at line 230 of file XYWnd.cpp.

void AssignModel ( )
float Betwixt ( float  f1,
float  f2 
)

Definition at line 931 of file XYWnd.cpp.

void Brush_CopyList ( brush_t *  pFrom,
brush_t *  pTo 
)

Definition at line 1072 of file XYWnd.cpp.

idMat3 Brush_RotationMatrix ( brush_t *  b)

Definition at line 3050 of file EditorBrush.cpp.

idVec3 Brush_TransformedPoint ( brush_t *  b,
const idVec3 in 
)

Definition at line 3059 of file EditorBrush.cpp.

void CleanCopyEntities ( )

Definition at line 4086 of file XYWnd.cpp.

void CleanList ( brush_t *  pList)

Definition at line 988 of file XYWnd.cpp.

void ClearActiveDrag ( )

Definition at line 490 of file XYWnd.cpp.

void ClearSelectablePoints ( brush_t *  b)

Definition at line 205 of file XYWnd.cpp.

brush_t* CreateEntityBrush ( int  x,
int  y,
CXYWnd pWnd 
)

Definition at line 1710 of file XYWnd.cpp.

void CreateEntityFromName ( char *  pName,
brush_t *  pBrush,
bool  forceFixed,
idVec3  min,
idVec3  max,
idVec3  org 
)

Definition at line 1639 of file XYWnd.cpp.

void CreateRightClickEntity ( CXYWnd pWnd,
int  x,
int  y,
char *  pName 
)

Definition at line 1756 of file XYWnd.cpp.

brush_t* CreateSmartBrush ( idVec3  v)

Definition at line 1781 of file XYWnd.cpp.

void CreateSmartEntity ( CXYWnd pWnd,
int  x,
int  y,
const char *  pName 
)

Definition at line 1820 of file XYWnd.cpp.

void DrawBrushEntityName ( brush_t *  b)

Definition at line 587 of file EditorBrush.cpp.

void DrawPathLines ( void  )

Definition at line 3314 of file XYWnd.cpp.

entity_t* Entity_CopyClone ( entity_t e)

Definition at line 4103 of file XYWnd.cpp.

float fDiff ( float  f1,
float  f2 
)

Definition at line 117 of file XYWnd.cpp.

bool FilterBrush ( brush_t *  pb)

Definition at line 3167 of file XYWnd.cpp.

void FinishSmartCreation ( )

Definition at line 1870 of file XYWnd.cpp.

CMemFile g_Clipboard ( 4096  )
CMemFile g_PatchClipboard ( 4096  )
void GLColoredBoxWithLabel ( float  x,
float  y,
float  size,
idVec4  color,
const char *  text,
idVec4  textColor,
float  xofs,
float  yofs,
float  lineSize 
)

Definition at line 2992 of file XYWnd.cpp.

IMPLEMENT_DYNCREATE ( CXYWnd  ,
CWnd   
)
bool MergeMenu ( CMenu *  pMenuDestination,
const CMenu *  pMenuAdd,
bool  bTopLevel 
)

Definition at line 1980 of file XYWnd.cpp.

bool OnList ( entity_t pFind,
CPtrArray *  pList 
)

Definition at line 4126 of file XYWnd.cpp.

CDragPoint* PointRay ( const idVec3 org,
const idVec3 dir,
float dist 
)

Definition at line 157 of file XYWnd.cpp.

float ptSum ( idVec3  pt)

Definition at line 766 of file XYWnd.cpp.

bool Select_OnlyModelsSelected ( )
void Select_Ungroup ( )
void SetActiveDrag ( CDragPoint *  p)

Definition at line 482 of file XYWnd.cpp.

bool SetDragPointCursor ( idVec3  p,
int  nView 
)

Definition at line 464 of file XYWnd.cpp.

bool UpdateActiveDragPoint ( const idVec3 move)

Definition at line 375 of file XYWnd.cpp.

void UpdateSelectablePoint ( brush_t *  b,
idVec3  v,
int  type 
)

Definition at line 238 of file XYWnd.cpp.

void VectorSnapGrid ( idVec3 v)

Definition at line 291 of file XYWnd.cpp.

void VectorToAngles ( idVec3  vec,
idVec3  angles 
)

Definition at line 253 of file XYWnd.cpp.

void WXY_Print ( void  )

Definition at line 687 of file XYWnd.cpp.

LONG WINAPI XYWndProc ( HWND  hWnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 644 of file XYWnd.cpp.

Variable Documentation

idVec3 dragDir

Definition at line 2320 of file XYWnd.cpp.

idVec3 dragOrigin

Definition at line 2319 of file XYWnd.cpp.

CPtrArray dragPoints

Definition at line 128 of file XYWnd.cpp.

idVec3 dragX

Definition at line 2321 of file XYWnd.cpp.

idVec3 dragY

Definition at line 2322 of file XYWnd.cpp.

bool g_bClipMode

Definition at line 55 of file XYWnd.cpp.

bool g_bCrossHairs = false

Definition at line 51 of file XYWnd.cpp.

bool g_bPathMode

Definition at line 72 of file XYWnd.cpp.

bool g_bPointMode

Definition at line 80 of file XYWnd.cpp.

brush_t g_brBackSplits

Definition at line 63 of file XYWnd.cpp.

brush_t g_brClipboard

Definition at line 65 of file XYWnd.cpp.

brush_t g_brFrontSplits

Definition at line 62 of file XYWnd.cpp.

bool g_bRogueClipMode

Definition at line 56 of file XYWnd.cpp.

bool g_bRotateMode

Definition at line 54 of file XYWnd.cpp.

brush_t g_brUndo

Definition at line 66 of file XYWnd.cpp.

bool g_bScaleMode

Definition at line 52 of file XYWnd.cpp.

bool g_bSmartGo

Definition at line 78 of file XYWnd.cpp.

bool g_bSmartWaiting

Definition at line 1806 of file XYWnd.cpp.

bool g_bSwitch

Definition at line 57 of file XYWnd.cpp.

CClipPoint g_Clip1

Definition at line 58 of file XYWnd.cpp.

CClipPoint g_Clip2

Definition at line 59 of file XYWnd.cpp.

CClipPoint g_Clip3

Definition at line 60 of file XYWnd.cpp.

entity_t g_enClipboard

Definition at line 67 of file XYWnd.cpp.

long g_lCount = 0

Definition at line 3531 of file XYWnd.cpp.

long g_lTotal = 0

Definition at line 3532 of file XYWnd.cpp.

int g_nPathCount

Definition at line 75 of file XYWnd.cpp.

int g_nPathLimit

Definition at line 76 of file XYWnd.cpp.

int g_nPointCount

Definition at line 83 of file XYWnd.cpp.

int g_nPointLimit

Definition at line 84 of file XYWnd.cpp.

int g_nScaleHow

Definition at line 53 of file XYWnd.cpp.

int g_nSmartX

Definition at line 1804 of file XYWnd.cpp.

int g_nSmartY

Definition at line 1805 of file XYWnd.cpp.

CClipPoint g_PathPoints[256]

Definition at line 73 of file XYWnd.cpp.

const char* g_pDimStrings[] = { "x:%.f", "y:%.f", "z:%.f" }

Definition at line 46 of file XYWnd.cpp.

CClipPoint* g_pMovingClip

Definition at line 61 of file XYWnd.cpp.

CClipPoint* g_pMovingPath

Definition at line 74 of file XYWnd.cpp.

CClipPoint* g_pMovingPoint

Definition at line 82 of file XYWnd.cpp.

CClipPoint g_PointPoints[512]

Definition at line 81 of file XYWnd.cpp.

const char* g_pOrgStrings[] = { "(x:%.f y:%.f)", "(x:%.f z:%.f)", "(y:%.f z:%.f)" }

Definition at line 47 of file XYWnd.cpp.

PFNPathCallback* g_pPathFunc = NULL

Definition at line 91 of file XYWnd.cpp.

CPtrArray g_ptrMenus

Definition at line 105 of file XYWnd.cpp.

CString g_strDim

Definition at line 48 of file XYWnd.cpp.

CString g_strSmartEntity

Definition at line 1803 of file XYWnd.cpp.

CString g_strStatus

Definition at line 49 of file XYWnd.cpp.

idVec3 g_vRotateOrigin

Definition at line 69 of file XYWnd.cpp.

idVec3 g_vRotation

Definition at line 70 of file XYWnd.cpp.

brush_t hold_brushes

Definition at line 3868 of file XYWnd.cpp.

int pressx
int pressy
HDC s_hdcXY

Definition at line 601 of file XYWnd.cpp.

HGLRC s_hglrcXY

Definition at line 602 of file XYWnd.cpp.

idVec3 tdp

Definition at line 1192 of file XYWnd.cpp.

const int XY_DOWN = 0x08

Definition at line 89 of file XYWnd.cpp.

const int XY_LEFT = 0x01

Definition at line 86 of file XYWnd.cpp.

const int XY_RIGHT = 0x02

Definition at line 87 of file XYWnd.cpp.

const int XY_UP = 0x04

Definition at line 88 of file XYWnd.cpp.