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

#include <CamWnd.h>

Inheritance diagram for CCamWnd:

Public Member Functions

 CCamWnd ()
 
void ShiftTexture_BrushPrimit (face_t *f, int x, int y)
 
void SetXYFriend (CXYWnd *pWnd)
 
virtual ~CCamWnd ()
 
camera_tCamera ()
 
void Cam_MouseControl (float dtime)
 
void Cam_ChangeFloor (bool up)
 
void BuildRendererState ()
 
void ToggleRenderMode ()
 
void ToggleRebuildMode ()
 
void ToggleEntityMode ()
 
void ToggleSelectMode ()
 
void ToggleAnimationMode ()
 
void ToggleSoundMode ()
 
void SetProjectionMatrix ()
 
void UpdateCameraView ()
 
void BuildEntityRenderState (entity_t *ent, bool update)
 
bool GetRenderMode ()
 
bool GetRebuildMode ()
 
bool GetEntityMode ()
 
bool GetAnimationMode ()
 
bool GetSelectMode ()
 
bool GetSoundMode ()
 
bool UpdateRenderEntities ()
 
void MarkWorldDirty ()
 
void SetView (const idVec3 &origin, const idAngles &angles)
 

Public Attributes

CXYWndm_pXYFriend
 

Protected Member Functions

virtual BOOL PreCreateWindow (CREATESTRUCT &cs)
 
void Cam_Init ()
 
void Cam_BuildMatrix ()
 
void Cam_PositionDrag ()
 
void Cam_MouseLook ()
 
void Cam_MouseDown (int x, int y, int buttons)
 
void Cam_MouseUp (int x, int y, int buttons)
 
void Cam_MouseMoved (int x, int y, int buttons)
 
void InitCull ()
 
bool CullBrush (brush_t *b, bool cubicOnly)
 
void Cam_Draw ()
 
void Cam_Render ()
 
void FreeRendererState ()
 
void UpdateCaption ()
 
bool BuildBrushRenderData (brush_t *brush)
 
void DrawEntityData ()
 
void OriginalMouseDown (UINT nFlags, CPoint point)
 
void OriginalMouseUp (UINT nFlags, CPoint point)
 
afx_msg void OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags)
 
afx_msg void OnPaint ()
 
afx_msg void OnDestroy ()
 
afx_msg void OnClose ()
 
afx_msg void OnMouseMove (UINT nFlags, CPoint point)
 
afx_msg void OnLButtonDown (UINT nFlags, CPoint point)
 
afx_msg void OnLButtonUp (UINT nFlags, CPoint point)
 
afx_msg void OnMButtonDown (UINT nFlags, CPoint point)
 
afx_msg void OnMButtonUp (UINT nFlags, CPoint point)
 
afx_msg void OnRButtonDown (UINT nFlags, CPoint point)
 
afx_msg void OnRButtonUp (UINT nFlags, CPoint point)
 
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
 
afx_msg void OnSize (UINT nType, int cx, int cy)
 
afx_msg void OnKeyUp (UINT nChar, UINT nRepCnt, UINT nFlags)
 
afx_msg void OnTimer (UINT nIDEvent)
 

Protected Attributes

qhandle_t worldModelDef
 
idRenderModelworldModel
 
bool worldDirty
 
bool renderMode
 
bool rebuildMode
 
bool entityMode
 
bool selectMode
 
bool animationMode
 
bool soundMode
 
camera_t m_Camera
 
int m_nCambuttonstate
 
CPoint m_ptButton
 
CPoint m_ptCursor
 
CPoint m_ptLastCursor
 
face_t * m_pSide_select
 
idVec3 m_vCull1
 
idVec3 m_vCull2
 
int m_nCullv1 [3]
 
int m_nCullv2 [3]
 
bool m_bClipMode
 
idVec3 saveOrg
 
idAngles saveAng
 
bool saveValid
 

Private Member Functions

 DECLARE_DYNCREATE (CCamWnd)
 

Detailed Description

Definition at line 64 of file CamWnd.h.

Constructor & Destructor Documentation

CCamWnd::CCamWnd ( )

Definition at line 76 of file CamWnd.cpp.

CCamWnd::~CCamWnd ( )
virtual

Definition at line 97 of file CamWnd.cpp.

Member Function Documentation

bool CCamWnd::BuildBrushRenderData ( brush_t *  brush)
protected
void CCamWnd::BuildEntityRenderState ( entity_t ent,
bool  update 
)

Definition at line 1237 of file CamWnd.cpp.

void CCamWnd::BuildRendererState ( )

Definition at line 1707 of file CamWnd.cpp.

void CCamWnd::Cam_BuildMatrix ( )
protected

Definition at line 439 of file CamWnd.cpp.

void CCamWnd::Cam_ChangeFloor ( bool  up)

Definition at line 472 of file CamWnd.cpp.

void CCamWnd::Cam_Draw ( )
protected

Definition at line 946 of file CamWnd.cpp.

void CCamWnd::Cam_Init ( )
protected

Definition at line 425 of file CamWnd.cpp.

void CCamWnd::Cam_MouseControl ( float  dtime)

Definition at line 552 of file CamWnd.cpp.

void CCamWnd::Cam_MouseDown ( int  x,
int  y,
int  buttons 
)
protected

Definition at line 613 of file CamWnd.cpp.

void CCamWnd::Cam_MouseLook ( )
protected

Definition at line 530 of file CamWnd.cpp.

void CCamWnd::Cam_MouseMoved ( int  x,
int  y,
int  buttons 
)
protected

Definition at line 683 of file CamWnd.cpp.

void CCamWnd::Cam_MouseUp ( int  x,
int  y,
int  buttons 
)
protected

Definition at line 674 of file CamWnd.cpp.

void CCamWnd::Cam_PositionDrag ( )
protected

Definition at line 517 of file CamWnd.cpp.

void CCamWnd::Cam_Render ( )
protected

Definition at line 2055 of file CamWnd.cpp.

camera_t& CCamWnd::Camera ( )
inline

Definition at line 90 of file CamWnd.h.

bool CCamWnd::CullBrush ( brush_t *  b,
bool  cubicOnly 
)
protected

Definition at line 742 of file CamWnd.cpp.

CCamWnd::DECLARE_DYNCREATE ( CCamWnd  )
private
void CCamWnd::DrawEntityData ( )
protected

Definition at line 1992 of file CamWnd.cpp.

void CCamWnd::FreeRendererState ( )
protected

Definition at line 1828 of file CamWnd.cpp.

bool CCamWnd::GetAnimationMode ( )
inline

Definition at line 113 of file CamWnd.h.

bool CCamWnd::GetEntityMode ( )
inline

Definition at line 110 of file CamWnd.h.

bool CCamWnd::GetRebuildMode ( )
inline

Definition at line 107 of file CamWnd.h.

bool CCamWnd::GetRenderMode ( )
inline

Definition at line 104 of file CamWnd.h.

bool CCamWnd::GetSelectMode ( )
inline

Definition at line 116 of file CamWnd.h.

bool CCamWnd::GetSoundMode ( )
inline

Definition at line 119 of file CamWnd.h.

void CCamWnd::InitCull ( )
protected

Definition at line 715 of file CamWnd.cpp.

void CCamWnd::MarkWorldDirty ( )

Definition at line 1977 of file CamWnd.cpp.

void CCamWnd::OnClose ( )
protected

Definition at line 240 of file CamWnd.cpp.

int CCamWnd::OnCreate ( LPCREATESTRUCT  lpCreateStruct)
protected

Definition at line 324 of file CamWnd.cpp.

void CCamWnd::OnDestroy ( )
protected

Definition at line 232 of file CamWnd.cpp.

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

Definition at line 187 of file CamWnd.cpp.

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

Definition at line 1166 of file CamWnd.cpp.

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

Definition at line 275 of file CamWnd.cpp.

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

Definition at line 284 of file CamWnd.cpp.

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

Definition at line 292 of file CamWnd.cpp.

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

Definition at line 300 of file CamWnd.cpp.

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

Definition at line 250 of file CamWnd.cpp.

void CCamWnd::OnPaint ( )
protected

Definition at line 197 of file CamWnd.cpp.

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

Definition at line 308 of file CamWnd.cpp.

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

Definition at line 316 of file CamWnd.cpp.

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

Definition at line 1151 of file CamWnd.cpp.

void CCamWnd::OnTimer ( UINT  nIDEvent)
protected

Definition at line 2121 of file CamWnd.cpp.

void CCamWnd::OriginalMouseDown ( UINT  nFlags,
CPoint  point 
)
protected

Definition at line 410 of file CamWnd.cpp.

void CCamWnd::OriginalMouseUp ( UINT  nFlags,
CPoint  point 
)
protected

Definition at line 397 of file CamWnd.cpp.

BOOL CCamWnd::PreCreateWindow ( CREATESTRUCT &  cs)
protectedvirtual

Definition at line 151 of file CamWnd.cpp.

void CCamWnd::SetProjectionMatrix ( )

Definition at line 894 of file CamWnd.cpp.

void CCamWnd::SetView ( const idVec3 origin,
const idAngles angles 
)
inline

Definition at line 127 of file CamWnd.h.

void CCamWnd::SetXYFriend ( CXYWnd pWnd)

Definition at line 224 of file CamWnd.cpp.

void CCamWnd::ShiftTexture_BrushPrimit ( face_t *  f,
int  x,
int  y 
)

Definition at line 1175 of file CamWnd.cpp.

void CCamWnd::ToggleAnimationMode ( )

Definition at line 1931 of file CamWnd.cpp.

void CCamWnd::ToggleEntityMode ( )

Definition at line 1918 of file CamWnd.cpp.

void CCamWnd::ToggleRebuildMode ( )

Definition at line 1906 of file CamWnd.cpp.

void CCamWnd::ToggleRenderMode ( )

Definition at line 1894 of file CamWnd.cpp.

void CCamWnd::ToggleSelectMode ( )

Definition at line 1965 of file CamWnd.cpp.

void CCamWnd::ToggleSoundMode ( )

Definition at line 1948 of file CamWnd.cpp.

void CCamWnd::UpdateCameraView ( )

Definition at line 2136 of file CamWnd.cpp.

void CCamWnd::UpdateCaption ( )
protected

Definition at line 1868 of file CamWnd.cpp.

bool CCamWnd::UpdateRenderEntities ( )

Definition at line 1805 of file CamWnd.cpp.

Member Data Documentation

bool CCamWnd::animationMode
protected

Definition at line 153 of file CamWnd.h.

bool CCamWnd::entityMode
protected

Definition at line 151 of file CamWnd.h.

bool CCamWnd::m_bClipMode
protected

Definition at line 171 of file CamWnd.h.

camera_t CCamWnd::m_Camera
protected

Definition at line 161 of file CamWnd.h.

int CCamWnd::m_nCambuttonstate
protected

Definition at line 162 of file CamWnd.h.

int CCamWnd::m_nCullv1[3]
protected

Definition at line 169 of file CamWnd.h.

int CCamWnd::m_nCullv2[3]
protected

Definition at line 170 of file CamWnd.h.

face_t* CCamWnd::m_pSide_select
protected

Definition at line 166 of file CamWnd.h.

CPoint CCamWnd::m_ptButton
protected

Definition at line 163 of file CamWnd.h.

CPoint CCamWnd::m_ptCursor
protected

Definition at line 164 of file CamWnd.h.

CPoint CCamWnd::m_ptLastCursor
protected

Definition at line 165 of file CamWnd.h.

CXYWnd* CCamWnd::m_pXYFriend

Definition at line 87 of file CamWnd.h.

idVec3 CCamWnd::m_vCull1
protected

Definition at line 167 of file CamWnd.h.

idVec3 CCamWnd::m_vCull2
protected

Definition at line 168 of file CamWnd.h.

bool CCamWnd::rebuildMode
protected

Definition at line 150 of file CamWnd.h.

bool CCamWnd::renderMode
protected

Definition at line 149 of file CamWnd.h.

idAngles CCamWnd::saveAng
protected

Definition at line 173 of file CamWnd.h.

idVec3 CCamWnd::saveOrg
protected

Definition at line 172 of file CamWnd.h.

bool CCamWnd::saveValid
protected

Definition at line 174 of file CamWnd.h.

bool CCamWnd::selectMode
protected

Definition at line 152 of file CamWnd.h.

bool CCamWnd::soundMode
protected

Definition at line 154 of file CamWnd.h.

bool CCamWnd::worldDirty
protected

Definition at line 148 of file CamWnd.h.

idRenderModel* CCamWnd::worldModel
protected

Definition at line 147 of file CamWnd.h.

qhandle_t CCamWnd::worldModelDef
protected

Definition at line 146 of file CamWnd.h.


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