doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
CXYWnd Class Reference

#include <XYWnd.h>

Inheritance diagram for CXYWnd:

Public Types

enum  { PRECISION_CROSSHAIR_NONE = 0, PRECISION_CROSSHAIR_SNAP = 1, PRECISION_CROSSHAIR_FREE = 2, PRECISION_CROSSHAIR_MAX }
 

Public Member Functions

 CXYWnd ()
 
bool AreaSelectOK ()
 
idVec3RotateOrigin ()
 
idVec3Rotation ()
 
void UndoClear ()
 
bool UndoAvailable ()
 
void KillPathMode ()
 
void Undo ()
 
void UndoCopy ()
 
void Copy ()
 
void Paste ()
 
void Redraw (unsigned int nBits)
 
void VectorCopyXY (const idVec3 &in, idVec3 &out)
 
void PositionView ()
 
void FlipClip ()
 
void SplitClip ()
 
void Clip ()
 
idVec3GetOrigin ()
 
void SetOrigin (idVec3 org)
 
void XY_Init ()
 
void XY_Draw ()
 
void DrawZIcon ()
 
void DrawRotateIcon ()
 
void DrawCameraIcon ()
 
void XY_DrawBlockGrid ()
 
void XY_DrawGrid ()
 
bool XY_MouseMoved (int x, int y, int buttons)
 
void NewBrushDrag (int x, int y)
 
bool DragDelta (int x, int y, idVec3 &move)
 
void XY_MouseUp (int x, int y, int buttons)
 
void XY_MouseDown (int x, int y, int buttons)
 
void XY_ToGridPoint (int x, int y, idVec3 &point)
 
void XY_ToPoint (int x, int y, idVec3 &point)
 
void SnapToPoint (int x, int y, idVec3 &point)
 
void SetActive (bool b)
 
bool Active ()
 
void DropClipPoint (UINT nFlags, CPoint point)
 
int GetAxisHoriz ()
 
int GetAxisVert ()
 
void AnalogMouseZoom (int mouseDeltaY)
 
bool RogueClipMode ()
 
bool ClipMode ()
 
void SetClipMode (bool bMode)
 
void RetainClipMode (bool bMode)
 
bool RotateMode ()
 
bool SetRotateMode (bool bMode)
 
bool ScaleMode ()
 
void SetScaleMode (bool bMode)
 
bool PathMode ()
 
void DropPathPoint (UINT nFlags, CPoint point)
 
bool PointMode ()
 
void AddPointPoint (UINT nFlags, idVec3 *pVec)
 
void SetPointMode (bool b)
 
virtual ~CXYWnd ()
 
void SetViewType (int n)
 
int GetViewType ()
 
void SetScale (float f)
 
float Scale ()
 
int Width ()
 
int Height ()
 
void UpdateViewDependencies (void)
 
void DrawPrecisionCrosshair ()
 
void CyclePrecisionCrosshairMode ()
 

Public Attributes

bool m_bActive
 
int m_precisionCrosshairMode
 
int m_mouseX
 
int m_mouseY
 

Protected Member Functions

virtual BOOL PreCreateWindow (CREATESTRUCT &cs)
 
void OriginalButtonUp (UINT nFlags, CPoint point)
 
void OriginalButtonDown (UINT nFlags, CPoint point)
 
void ProduceSplits (brush_t **pFront, brush_t **pBack)
 
void ProduceSplitLists ()
 
void HandleDrop ()
 
void PaintSizeInfo (int nDim1, int nDim2, idVec3 vMinBounds, idVec3 vMaxBounds)
 
void DrawSelectedCentroid (int nDim1, int nDim2, idVec3 vMinBounds, idVec3 vMaxBounds)
 
void OnEntityCreate (unsigned int nID)
 
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
 
afx_msg void OnLButtonDown (UINT nFlags, CPoint point)
 
afx_msg void OnMButtonDown (UINT nFlags, CPoint point)
 
afx_msg void OnRButtonDown (UINT nFlags, CPoint point)
 
afx_msg void OnLButtonUp (UINT nFlags, CPoint point)
 
afx_msg void OnMButtonUp (UINT nFlags, CPoint point)
 
afx_msg void OnRButtonUp (UINT nFlags, CPoint point)
 
afx_msg void OnMouseMove (UINT nFlags, CPoint point)
 
afx_msg void OnPaint ()
 
afx_msg void OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags)
 
afx_msg void OnSize (UINT nType, int cx, int cy)
 
afx_msg void OnDestroy ()
 
afx_msg void OnSelectMouserotate ()
 
afx_msg void OnTimer (UINT nIDEvent)
 
afx_msg void OnKeyUp (UINT nChar, UINT nRepCnt, UINT nFlags)
 
afx_msg void OnNcCalcSize (BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR *lpncsp)
 
afx_msg void OnKillFocus (CWnd *pNewWnd)
 
afx_msg void OnSetFocus (CWnd *pOldWnd)
 
afx_msg void OnClose ()
 
afx_msg BOOL OnEraseBkgnd (CDC *pDC)
 
afx_msg void OnDropNewmodel ()
 
afx_msg BOOL OnMouseWheel (UINT nFlags, short zDelta, CPoint pt)
 
afx_msg BOOL OnCmdMsg (UINT nID, int nCode, void *pExtra, AFX_CMDHANDLERINFO *pHandlerInfo)
 

Protected Attributes

int m_nUpdateBits
 
int m_nWidth
 
int m_nHeight
 
float m_fScale
 
float m_TopClip
 
float m_BottomClip
 
bool m_bDirty
 
idVec3 m_vOrigin
 
CPoint m_ptCursor
 
bool m_bRButtonDown
 
int m_nButtonstate
 
int m_nPressx
 
int m_nPressy
 
idVec3 m_vPressdelta
 
bool m_bPress_selection
 
int m_axisHoriz
 
int m_axisVert
 
float m_mcWidth
 Each of the following _mc fields are stored in map-coordinates, NOT screen-pixels. More...
 
float m_mcHeight
 
float m_mcLeft
 
float m_mcRight
 
float m_mcTop
 
float m_mcBottom
 
friend CCamWnd
 
CMenu m_mnuDrop
 
int m_nViewType
 
unsigned int m_nTimerID
 
int m_nScrollFlags
 
CPoint m_ptDrag
 
CPoint m_ptDragAdj
 
CPoint m_ptDragTotal
 
CPoint m_ptDown
 

Private Member Functions

 DECLARE_DYNCREATE (CXYWnd)
 

Detailed Description

Definition at line 70 of file XYWnd.h.

Member Enumeration Documentation

anonymous enum
Enumerator
PRECISION_CROSSHAIR_NONE 
PRECISION_CROSSHAIR_SNAP 
PRECISION_CROSSHAIR_FREE 
PRECISION_CROSSHAIR_MAX 

Definition at line 165 of file XYWnd.h.

Constructor & Destructor Documentation

CXYWnd::CXYWnd ( )

Definition at line 501 of file XYWnd.cpp.

CXYWnd::~CXYWnd ( )
virtual

Definition at line 529 of file XYWnd.cpp.

Member Function Documentation

bool CXYWnd::Active ( void  )
inline

Definition at line 126 of file XYWnd.h.

void CXYWnd::AddPointPoint ( UINT  nFlags,
idVec3 pVec 
)

Definition at line 873 of file XYWnd.cpp.

void CXYWnd::AnalogMouseZoom ( int  mouseDeltaY)
bool CXYWnd::AreaSelectOK ( )

Definition at line 4438 of file XYWnd.cpp.

void CXYWnd::Clip ( )

Definition at line 3874 of file XYWnd.cpp.

bool CXYWnd::ClipMode ( )

Definition at line 1428 of file XYWnd.cpp.

void CXYWnd::Copy ( void  )

Definition at line 4142 of file XYWnd.cpp.

void CXYWnd::CyclePrecisionCrosshairMode ( void  )

Cycle to next mode, wrap if necessary

Definition at line 4484 of file XYWnd.cpp.

CXYWnd::DECLARE_DYNCREATE ( CXYWnd  )
private
bool CXYWnd::DragDelta ( int  x,
int  y,
idVec3 move 
)

Definition at line 2491 of file XYWnd.cpp.

void CXYWnd::DrawCameraIcon ( )

Definition at line 3076 of file XYWnd.cpp.

void CXYWnd::DrawPrecisionCrosshair ( void  )

Transform the mouse coordinates into axis-correct map-coordinates

Use the color specified by the user

Set up OpenGL states (for drawing smooth-shaded plain-colored lines)

Draw a fullscreen-sized crosshair over the cursor

Draw the horizontal precision line (in two pieces)

Draw the vertical precision line (in two pieces)

Definition at line 4505 of file XYWnd.cpp.

void CXYWnd::DrawRotateIcon ( )

Definition at line 3015 of file XYWnd.cpp.

void CXYWnd::DrawSelectedCentroid ( int  nDim1,
int  nDim2,
idVec3  vMinBounds,
idVec3  vMaxBounds 
)
protected
void CXYWnd::DrawZIcon ( void  )

Definition at line 3126 of file XYWnd.cpp.

void CXYWnd::DropClipPoint ( UINT  nFlags,
CPoint  point 
)

Definition at line 774 of file XYWnd.cpp.

void CXYWnd::DropPathPoint ( UINT  nFlags,
CPoint  point 
)

Definition at line 843 of file XYWnd.cpp.

void CXYWnd::FlipClip ( )

Definition at line 3941 of file XYWnd.cpp.

int CXYWnd::GetAxisHoriz ( )
inline

Definition at line 129 of file XYWnd.h.

int CXYWnd::GetAxisVert ( )
inline

Definition at line 130 of file XYWnd.h.

idVec3 & CXYWnd::GetOrigin ( void  )

Definition at line 3840 of file XYWnd.cpp.

int CXYWnd::GetViewType ( )
inline

Definition at line 154 of file XYWnd.h.

void CXYWnd::HandleDrop ( )
protected

Definition at line 2126 of file XYWnd.cpp.

int CXYWnd::Height ( )
inline

Definition at line 158 of file XYWnd.h.

void CXYWnd::KillPathMode ( )

Definition at line 1911 of file XYWnd.cpp.

void CXYWnd::NewBrushDrag ( int  x,
int  y 
)

Definition at line 2523 of file XYWnd.cpp.

void CXYWnd::OnClose ( )
protected

Definition at line 4429 of file XYWnd.cpp.

BOOL CXYWnd::OnCmdMsg ( UINT  nID,
int  nCode,
void pExtra,
AFX_CMDHANDLERINFO *  pHandlerInfo 
)
protected

Definition at line 1972 of file XYWnd.cpp.

int CXYWnd::OnCreate ( LPCREATESTRUCT  lpCreateStruct)
protected

Definition at line 749 of file XYWnd.cpp.

void CXYWnd::OnDestroy ( )
protected

Definition at line 3988 of file XYWnd.cpp.

void CXYWnd::OnDropNewmodel ( )
protected

Definition at line 4453 of file XYWnd.cpp.

void CXYWnd::OnEntityCreate ( unsigned int  nID)
protected

Definition at line 1928 of file XYWnd.cpp.

BOOL CXYWnd::OnEraseBkgnd ( CDC *  pDC)
protected

Definition at line 4446 of file XYWnd.cpp.

void CXYWnd::OnKeyDown ( UINT  nChar,
UINT  nRepCnt,
UINT  nFlags 
)
protected

Definition at line 1630 of file XYWnd.cpp.

void CXYWnd::OnKeyUp ( UINT  nChar,
UINT  nRepCnt,
UINT  nFlags 
)
protected

Definition at line 4393 of file XYWnd.cpp.

void CXYWnd::OnKillFocus ( CWnd *  pNewWnd)
protected

Definition at line 4411 of file XYWnd.cpp.

void CXYWnd::OnLButtonDown ( UINT  nFlags,
CPoint  point 
)
protected

Definition at line 887 of file XYWnd.cpp.

void CXYWnd::OnLButtonUp ( UINT  nFlags,
CPoint  point 
)
protected

Definition at line 1113 of file XYWnd.cpp.

void CXYWnd::OnMButtonDown ( UINT  nFlags,
CPoint  point 
)
protected

Definition at line 923 of file XYWnd.cpp.

void CXYWnd::OnMButtonUp ( UINT  nFlags,
CPoint  point 
)
protected

Definition at line 1129 of file XYWnd.cpp.

void CXYWnd::OnMouseMove ( UINT  nFlags,
CPoint  point 
)
protected

If precision crosshair is active, force redraw of the 2d view on mouse move

Force 2d view redraw (so that the precision cursor moves with the mouse)

Definition at line 1198 of file XYWnd.cpp.

BOOL CXYWnd::OnMouseWheel ( UINT  nFlags,
short  zDelta,
CPoint  pt 
)
protected

Definition at line 4462 of file XYWnd.cpp.

void CXYWnd::OnNcCalcSize ( BOOL  bCalcValidRects,
NCCALCSIZE_PARAMS FAR lpncsp 
)
protected

Definition at line 4403 of file XYWnd.cpp.

void CXYWnd::OnPaint ( )
protected

Definition at line 1471 of file XYWnd.cpp.

void CXYWnd::OnRButtonDown ( UINT  nFlags,
CPoint  point 
)
protected

Definition at line 1086 of file XYWnd.cpp.

void CXYWnd::OnRButtonUp ( UINT  nFlags,
CPoint  point 
)
protected

Definition at line 1137 of file XYWnd.cpp.

void CXYWnd::OnSelectMouserotate ( )
protected

Definition at line 4078 of file XYWnd.cpp.

void CXYWnd::OnSetFocus ( CWnd *  pOldWnd)
protected

Definition at line 4420 of file XYWnd.cpp.

void CXYWnd::OnSize ( UINT  nType,
int  cx,
int  cy 
)
protected

Definition at line 3858 of file XYWnd.cpp.

void CXYWnd::OnTimer ( UINT  nIDEvent)
protected

Definition at line 4369 of file XYWnd.cpp.

void CXYWnd::OriginalButtonDown ( UINT  nFlags,
CPoint  point 
)
protected

Definition at line 1165 of file XYWnd.cpp.

void CXYWnd::OriginalButtonUp ( UINT  nFlags,
CPoint  point 
)
protected

Definition at line 1183 of file XYWnd.cpp.

void CXYWnd::PaintSizeInfo ( int  nDim1,
int  nDim2,
idVec3  vMinBounds,
idVec3  vMaxBounds 
)
protected

Definition at line 3412 of file XYWnd.cpp.

void CXYWnd::Paste ( void  )

Definition at line 4260 of file XYWnd.cpp.

bool CXYWnd::PathMode ( )

Definition at line 1444 of file XYWnd.cpp.

bool CXYWnd::PointMode ( )

Definition at line 1452 of file XYWnd.cpp.

void CXYWnd::PositionView ( )

Definition at line 3951 of file XYWnd.cpp.

BOOL CXYWnd::PreCreateWindow ( CREATESTRUCT &  cs)
protectedvirtual

Definition at line 577 of file XYWnd.cpp.

void CXYWnd::ProduceSplitLists ( )
protected

Definition at line 1001 of file XYWnd.cpp.

void CXYWnd::ProduceSplits ( brush_t **  pFront,
brush_t **  pBack 
)
protected

Definition at line 944 of file XYWnd.cpp.

void CXYWnd::Redraw ( unsigned int  nBits)

Definition at line 4013 of file XYWnd.cpp.

void CXYWnd::RetainClipMode ( bool  bMode)

Definition at line 1383 of file XYWnd.cpp.

bool CXYWnd::RogueClipMode ( )

Definition at line 1436 of file XYWnd.cpp.

bool CXYWnd::RotateMode ( )

Definition at line 4023 of file XYWnd.cpp.

idVec3 & CXYWnd::RotateOrigin ( )

Definition at line 4361 of file XYWnd.cpp.

idVec3 & CXYWnd::Rotation ( )

Definition at line 4353 of file XYWnd.cpp.

float CXYWnd::Scale ( )
inline

Definition at line 156 of file XYWnd.h.

bool CXYWnd::ScaleMode ( )

Definition at line 4031 of file XYWnd.cpp.

void CXYWnd::SetActive ( bool  b)
inline

Definition at line 125 of file XYWnd.h.

void CXYWnd::SetClipMode ( bool  bMode)

Definition at line 1398 of file XYWnd.cpp.

void CXYWnd::SetOrigin ( idVec3  org)

Definition at line 3848 of file XYWnd.cpp.

void CXYWnd::SetPointMode ( bool  b)

Definition at line 1460 of file XYWnd.cpp.

bool CXYWnd::SetRotateMode ( bool  bMode)

Definition at line 4040 of file XYWnd.cpp.

void CXYWnd::SetScale ( float  f)
inline

Definition at line 155 of file XYWnd.h.

void CXYWnd::SetScaleMode ( bool  bMode)

Definition at line 4068 of file XYWnd.cpp.

void CXYWnd::SetViewType ( int  n)

Definition at line 3998 of file XYWnd.cpp.

void CXYWnd::SnapToPoint ( int  x,
int  y,
idVec3 point 
)

Definition at line 2234 of file XYWnd.cpp.

void CXYWnd::SplitClip ( )

Definition at line 3920 of file XYWnd.cpp.

void CXYWnd::Undo ( void  )

Definition at line 4215 of file XYWnd.cpp.

bool CXYWnd::UndoAvailable ( )

Definition at line 4252 of file XYWnd.cpp.

void CXYWnd::UndoClear ( )

Definition at line 4231 of file XYWnd.cpp.

void CXYWnd::UndoCopy ( )

Definition at line 4239 of file XYWnd.cpp.

void CXYWnd::UpdateViewDependencies ( void  )
void CXYWnd::VectorCopyXY ( const idVec3 in,
idVec3 out 
)

Definition at line 3969 of file XYWnd.cpp.

int CXYWnd::Width ( )
inline

Definition at line 157 of file XYWnd.h.

void CXYWnd::XY_Draw ( )

Draw a "precision crosshair" if enabled

Definition at line 3539 of file XYWnd.cpp.

void CXYWnd::XY_DrawBlockGrid ( )

Definition at line 2922 of file XYWnd.cpp.

void CXYWnd::XY_DrawGrid ( )

Definition at line 2741 of file XYWnd.cpp.

void CXYWnd::XY_Init ( )

Definition at line 2222 of file XYWnd.cpp.

void CXYWnd::XY_MouseDown ( int  x,
int  y,
int  buttons 
)

Definition at line 2324 of file XYWnd.cpp.

bool CXYWnd::XY_MouseMoved ( int  x,
int  y,
int  buttons 
)

Definition at line 2590 of file XYWnd.cpp.

void CXYWnd::XY_MouseUp ( int  x,
int  y,
int  buttons 
)

Definition at line 2475 of file XYWnd.cpp.

void CXYWnd::XY_ToGridPoint ( int  x,
int  y,
idVec3 point 
)

Definition at line 2284 of file XYWnd.cpp.

void CXYWnd::XY_ToPoint ( int  x,
int  y,
idVec3 point 
)

Definition at line 2249 of file XYWnd.cpp.

Member Data Documentation

friend CXYWnd::CCamWnd
protected

Definition at line 209 of file XYWnd.h.

int CXYWnd::m_axisHoriz
protected

Definition at line 197 of file XYWnd.h.

int CXYWnd::m_axisVert
protected

Definition at line 198 of file XYWnd.h.

bool CXYWnd::m_bActive

Definition at line 159 of file XYWnd.h.

bool CXYWnd::m_bDirty
protected

Definition at line 186 of file XYWnd.h.

float CXYWnd::m_BottomClip
protected

Definition at line 185 of file XYWnd.h.

bool CXYWnd::m_bPress_selection
protected

Definition at line 195 of file XYWnd.h.

bool CXYWnd::m_bRButtonDown
protected

Definition at line 189 of file XYWnd.h.

float CXYWnd::m_fScale
protected

Definition at line 183 of file XYWnd.h.

float CXYWnd::m_mcBottom
protected

Definition at line 206 of file XYWnd.h.

float CXYWnd::m_mcHeight
protected

Definition at line 202 of file XYWnd.h.

float CXYWnd::m_mcLeft
protected

Definition at line 203 of file XYWnd.h.

float CXYWnd::m_mcRight
protected

Definition at line 204 of file XYWnd.h.

float CXYWnd::m_mcTop
protected

Definition at line 205 of file XYWnd.h.

float CXYWnd::m_mcWidth
protected

Each of the following _mc fields are stored in map-coordinates, NOT screen-pixels.

Definition at line 201 of file XYWnd.h.

CMenu CXYWnd::m_mnuDrop
protected

Definition at line 212 of file XYWnd.h.

int CXYWnd::m_mouseX

Definition at line 174 of file XYWnd.h.

int CXYWnd::m_mouseY

Definition at line 175 of file XYWnd.h.

int CXYWnd::m_nButtonstate
protected

Definition at line 191 of file XYWnd.h.

int CXYWnd::m_nHeight
protected

Definition at line 182 of file XYWnd.h.

int CXYWnd::m_nPressx
protected

Definition at line 192 of file XYWnd.h.

int CXYWnd::m_nPressy
protected

Definition at line 193 of file XYWnd.h.

int CXYWnd::m_nScrollFlags
protected

Definition at line 216 of file XYWnd.h.

unsigned int CXYWnd::m_nTimerID
protected

Definition at line 215 of file XYWnd.h.

int CXYWnd::m_nUpdateBits
protected

Definition at line 180 of file XYWnd.h.

int CXYWnd::m_nViewType
protected

Definition at line 213 of file XYWnd.h.

int CXYWnd::m_nWidth
protected

Definition at line 181 of file XYWnd.h.

int CXYWnd::m_precisionCrosshairMode

Definition at line 173 of file XYWnd.h.

CPoint CXYWnd::m_ptCursor
protected

Definition at line 188 of file XYWnd.h.

CPoint CXYWnd::m_ptDown
protected

Definition at line 230 of file XYWnd.h.

CPoint CXYWnd::m_ptDrag
protected

Definition at line 217 of file XYWnd.h.

CPoint CXYWnd::m_ptDragAdj
protected

Definition at line 218 of file XYWnd.h.

CPoint CXYWnd::m_ptDragTotal
protected

Definition at line 219 of file XYWnd.h.

float CXYWnd::m_TopClip
protected

Definition at line 184 of file XYWnd.h.

idVec3 CXYWnd::m_vOrigin
protected

Definition at line 187 of file XYWnd.h.

idVec3 CXYWnd::m_vPressdelta
protected

Definition at line 194 of file XYWnd.h.


The documentation for this class was generated from the following files: