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

#include <VectorCtl.h>

Inheritance diagram for CVectorCtl:

Public Member Functions

 CVectorCtl ()
 
virtual ~CVectorCtl ()
 
virtual void DrawItem (LPDRAWITEMSTRUCT lpDrawItemStruct)
 
void SetDiffuseColor (COLORREF clr)
 
COLORREF GetDiffuseColor ()
 
void SetAmbientColor (COLORREF clr)
 
COLORREF GetAmbientColor ()
 
void SetLightColor (COLORREF clr)
 
COLORREF GetLightColor ()
 
void SetBackgroundColor (COLORREF clrStart, COLORREF clrEnd)
 
BOOL SetBackgroundImage (UINT uBackgroundBitmapID)
 
BOOL SetSpecularExponent (double dExp)
 
double GetSpecularExponent ()
 
void SetAxisControl (int nXCtl, int nYCtl, int nZCtl)
 
void SetRadius (UINT uRadius)
 
UINT GetRadius ()
 
void SetCenter (UINT uHorizPos, UINT uVertPos)
 
UINT GetHorizCenter ()
 
UINT GetVertCenter ()
 
void SetX (double dx)
 
double GetX ()
 
void SetY (double dy)
 
double GetY ()
 
void SetZ (double dz)
 
double GetZ ()
 
void SetVector (double dx, double dy, double dz)
 
void SetidAxis (const idMat3 &mat)
 
BOOL SetSensitivity (UINT uSens)
 
UINT GetSensitivity ()
 
void ClipToFront (BOOL bEnable)
 
void SetVectorChangingCallback (VectorCtlCallbackProc proc)
 
void SetVectorChangedCallback (VectorCtlCallbackProc proc)
 

Private Member Functions

afx_msg void OnLButtonDown (UINT nFlags, CPoint point)
 
afx_msg void OnLButtonUp (UINT nFlags, CPoint point)
 
afx_msg void OnMouseMove (UINT nFlags, CPoint point)
 
void OnMouseDrag (int, int)
 
void InitBitmap (LPDRAWITEMSTRUCT lpDrawItemStruct, CDC *pDC)
 
void BuildImage (LPDRAWITEMSTRUCT lpDrawItemStruct)
 
void ClearBackgroundBitmap ()
 
BOOL Normalize ()
 
COLORREF CalcLight (double dx, double dy, double dz)
 
void RotateByXandY (double XRot, double YRot)
 
void CreateBackground ()
 
void Redraw (BOOL bErase=FALSE)
 
void UpdateAxisControls ()
 
void SetAxis (double d, int nAxis)
 

Private Attributes

CBitmap m_bmpBuffer
 
CBitmap m_bmpBack
 
CDC m_dcMem
 
BOOL m_bBmpCreated
 
BOOL m_bBackgroundBitmapUsed
 
BOOL m_bImageChange
 
BOOL m_bFrontVector
 
BOOL m_bHasFocus
 
BOOL m_bSelected
 
int m_iWidth
 
int m_iHeight
 
int m_iRadius
 
int m_iSqrRadius
 
int m_iXCenter
 
int m_iYCenter
 
CBitmap * m_pOldBitmap
 
COLORREF m_clrDiffuse
 
COLORREF m_clrAmbient
 
COLORREF m_clrLight
 
COLORREF m_clrBackgroundStart
 
COLORREF m_clrBackgroundEnd
 
CWnd * pCtl [3]
 
double m_dSpecularExponent
 
double m_dSensitivity
 
idVec3 m_dVec
 
idMat3 rotationMatrix
 
idQuat rotationQuat
 
idQuat previousQuat
 
idVec3 lastPress
 
float radius
 
VectorCtlCallbackProc m_procVectorChanging
 
VectorCtlCallbackProc m_procVectorChanged
 

Detailed Description

Definition at line 64 of file VectorCtl.h.

Constructor & Destructor Documentation

CVectorCtl::CVectorCtl ( )

Definition at line 43 of file VectorCtl.cpp.

CVectorCtl::~CVectorCtl ( )
virtual

Definition at line 72 of file VectorCtl.cpp.

Member Function Documentation

void CVectorCtl::BuildImage ( LPDRAWITEMSTRUCT  lpDrawItemStruct)
private

Definition at line 115 of file VectorCtl.cpp.

COLORREF CVectorCtl::CalcLight ( double  dx,
double  dy,
double  dz 
)
private

Definition at line 152 of file VectorCtl.cpp.

void CVectorCtl::ClearBackgroundBitmap ( )
private

Definition at line 356 of file VectorCtl.cpp.

void CVectorCtl::ClipToFront ( BOOL  bEnable)
inline

Definition at line 142 of file VectorCtl.h.

void CVectorCtl::CreateBackground ( )
private

Definition at line 318 of file VectorCtl.cpp.

void CVectorCtl::DrawItem ( LPDRAWITEMSTRUCT  lpDrawItemStruct)
virtual

Definition at line 80 of file VectorCtl.cpp.

COLORREF CVectorCtl::GetAmbientColor ( )
inline

Definition at line 93 of file VectorCtl.h.

COLORREF CVectorCtl::GetDiffuseColor ( )
inline

Definition at line 89 of file VectorCtl.h.

UINT CVectorCtl::GetHorizCenter ( )
inline

Definition at line 120 of file VectorCtl.h.

COLORREF CVectorCtl::GetLightColor ( )
inline

Definition at line 97 of file VectorCtl.h.

UINT CVectorCtl::GetRadius ( void  )
inline

Definition at line 116 of file VectorCtl.h.

UINT CVectorCtl::GetSensitivity ( )
inline

Definition at line 139 of file VectorCtl.h.

double CVectorCtl::GetSpecularExponent ( )
inline

Definition at line 107 of file VectorCtl.h.

UINT CVectorCtl::GetVertCenter ( )
inline

Definition at line 121 of file VectorCtl.h.

double CVectorCtl::GetX ( )
inline

Definition at line 125 of file VectorCtl.h.

double CVectorCtl::GetY ( )
inline

Definition at line 127 of file VectorCtl.h.

double CVectorCtl::GetZ ( )
inline

Definition at line 129 of file VectorCtl.h.

void CVectorCtl::InitBitmap ( LPDRAWITEMSTRUCT  lpDrawItemStruct,
CDC *  pDC 
)
private

Definition at line 186 of file VectorCtl.cpp.

BOOL CVectorCtl::Normalize ( void  )
private

Definition at line 133 of file VectorCtl.cpp.

void CVectorCtl::OnLButtonDown ( UINT  nFlags,
CPoint  point 
)
private

Definition at line 413 of file VectorCtl.cpp.

void CVectorCtl::OnLButtonUp ( UINT  nFlags,
CPoint  point 
)
private

Definition at line 420 of file VectorCtl.cpp.

void CVectorCtl::OnMouseDrag ( int  ixMove,
int  iyMove 
)
private

Definition at line 108 of file VectorCtl.cpp.

void CVectorCtl::OnMouseMove ( UINT  nFlags,
CPoint  point 
)
private

Definition at line 378 of file VectorCtl.cpp.

void CVectorCtl::Redraw ( BOOL  bErase = FALSE)
private

Definition at line 372 of file VectorCtl.cpp.

void CVectorCtl::RotateByXandY ( double  XRot,
double  YRot 
)
private

Definition at line 210 of file VectorCtl.cpp.

void CVectorCtl::SetAmbientColor ( COLORREF  clr)
inline

Definition at line 92 of file VectorCtl.h.

void CVectorCtl::SetAxis ( double  d,
int  nAxis 
)
private

Definition at line 274 of file VectorCtl.cpp.

void CVectorCtl::SetAxisControl ( int  nXCtl,
int  nYCtl,
int  nZCtl 
)

Definition at line 249 of file VectorCtl.cpp.

void CVectorCtl::SetBackgroundColor ( COLORREF  clrStart,
COLORREF  clrEnd 
)

Definition at line 296 of file VectorCtl.cpp.

BOOL CVectorCtl::SetBackgroundImage ( UINT  uBackgroundBitmapID)

Definition at line 305 of file VectorCtl.cpp.

void CVectorCtl::SetCenter ( UINT  uHorizPos,
UINT  uVertPos 
)

Definition at line 265 of file VectorCtl.cpp.

void CVectorCtl::SetDiffuseColor ( COLORREF  clr)
inline

Definition at line 88 of file VectorCtl.h.

void CVectorCtl::SetidAxis ( const idMat3 mat)
inline

Definition at line 131 of file VectorCtl.h.

void CVectorCtl::SetLightColor ( COLORREF  clr)
inline

Definition at line 96 of file VectorCtl.h.

void CVectorCtl::SetRadius ( UINT  uRadius)

Definition at line 256 of file VectorCtl.cpp.

BOOL CVectorCtl::SetSensitivity ( UINT  uSens)

Definition at line 364 of file VectorCtl.cpp.

BOOL CVectorCtl::SetSpecularExponent ( double  dExp)

Definition at line 200 of file VectorCtl.cpp.

void CVectorCtl::SetVector ( double  dx,
double  dy,
double  dz 
)

Definition at line 287 of file VectorCtl.cpp.

void CVectorCtl::SetVectorChangedCallback ( VectorCtlCallbackProc  proc)
inline

Definition at line 152 of file VectorCtl.h.

void CVectorCtl::SetVectorChangingCallback ( VectorCtlCallbackProc  proc)
inline

Definition at line 146 of file VectorCtl.h.

void CVectorCtl::SetX ( double  dx)
inline

Definition at line 124 of file VectorCtl.h.

void CVectorCtl::SetY ( double  dy)
inline

Definition at line 126 of file VectorCtl.h.

void CVectorCtl::SetZ ( double  dz)
inline

Definition at line 128 of file VectorCtl.h.

void CVectorCtl::UpdateAxisControls ( )
private

Definition at line 239 of file VectorCtl.cpp.

Member Data Documentation

idVec3 CVectorCtl::lastPress
private

Definition at line 212 of file VectorCtl.h.

BOOL CVectorCtl::m_bBackgroundBitmapUsed
private

Definition at line 186 of file VectorCtl.h.

BOOL CVectorCtl::m_bBmpCreated
private

Definition at line 186 of file VectorCtl.h.

BOOL CVectorCtl::m_bFrontVector
private

Definition at line 186 of file VectorCtl.h.

BOOL CVectorCtl::m_bHasFocus
private

Definition at line 186 of file VectorCtl.h.

BOOL CVectorCtl::m_bImageChange
private

Definition at line 186 of file VectorCtl.h.

CBitmap CVectorCtl::m_bmpBack
private

Definition at line 183 of file VectorCtl.h.

CBitmap CVectorCtl::m_bmpBuffer
private

Definition at line 183 of file VectorCtl.h.

BOOL CVectorCtl::m_bSelected
private

Definition at line 186 of file VectorCtl.h.

COLORREF CVectorCtl::m_clrAmbient
private

Definition at line 199 of file VectorCtl.h.

COLORREF CVectorCtl::m_clrBackgroundEnd
private

Definition at line 199 of file VectorCtl.h.

COLORREF CVectorCtl::m_clrBackgroundStart
private

Definition at line 199 of file VectorCtl.h.

COLORREF CVectorCtl::m_clrDiffuse
private

Definition at line 199 of file VectorCtl.h.

COLORREF CVectorCtl::m_clrLight
private

Definition at line 199 of file VectorCtl.h.

CDC CVectorCtl::m_dcMem
private

Definition at line 185 of file VectorCtl.h.

double CVectorCtl::m_dSensitivity
private

Definition at line 205 of file VectorCtl.h.

double CVectorCtl::m_dSpecularExponent
private

Definition at line 205 of file VectorCtl.h.

idVec3 CVectorCtl::m_dVec
private

Definition at line 208 of file VectorCtl.h.

int CVectorCtl::m_iHeight
private

Definition at line 192 of file VectorCtl.h.

int CVectorCtl::m_iRadius
private

Definition at line 192 of file VectorCtl.h.

int CVectorCtl::m_iSqrRadius
private

Definition at line 192 of file VectorCtl.h.

int CVectorCtl::m_iWidth
private

Definition at line 192 of file VectorCtl.h.

int CVectorCtl::m_iXCenter
private

Definition at line 192 of file VectorCtl.h.

int CVectorCtl::m_iYCenter
private

Definition at line 192 of file VectorCtl.h.

CBitmap* CVectorCtl::m_pOldBitmap
private

Definition at line 198 of file VectorCtl.h.

VectorCtlCallbackProc CVectorCtl::m_procVectorChanged
private

Definition at line 216 of file VectorCtl.h.

VectorCtlCallbackProc CVectorCtl::m_procVectorChanging
private

Definition at line 216 of file VectorCtl.h.

CWnd* CVectorCtl::pCtl[3]
private

Definition at line 204 of file VectorCtl.h.

idQuat CVectorCtl::previousQuat
private

Definition at line 211 of file VectorCtl.h.

float CVectorCtl::radius
private

Definition at line 213 of file VectorCtl.h.

idMat3 CVectorCtl::rotationMatrix
private

Definition at line 209 of file VectorCtl.h.

idQuat CVectorCtl::rotationQuat
private

Definition at line 210 of file VectorCtl.h.


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