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 | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
DialogAFBody Class Reference

#include <DialogAFBody.h>

Inheritance diagram for DialogAFBody:

Public Types

enum  { IDD = IDD_DIALOG_AF_BODY }
 

Public Member Functions

 DialogAFBody (CWnd *pParent=NULL)
 
virtual ~DialogAFBody ()
 
void LoadFile (idDeclAF *af)
 
void SaveFile (void)
 
void LoadBody (const char *name)
 
void SaveBody (void)
 
void UpdateFile (void)
 

Public Attributes

DialogAFConstraintconstraintDlg
 

Protected Member Functions

virtual BOOL OnInitDialog ()
 
virtual void DoDataExchange (CDataExchange *pDX)
 
virtual int OnToolHitTest (CPoint point, TOOLINFO *pTI) const
 
afx_msg BOOL OnToolTipNotify (UINT id, NMHDR *pNMHDR, LRESULT *pResult)
 
afx_msg void OnShowWindow (BOOL bShow, UINT nStatus)
 
afx_msg void OnCbnSelchangeComboBodies ()
 
afx_msg void OnBnClickedButtonNewbody ()
 
afx_msg void OnBnClickedButtonRenamebody ()
 
afx_msg void OnBnClickedButtonDeletebody ()
 
afx_msg void OnCbnSelchangeComboCmType ()
 
afx_msg void OnEnChangeEditCmLength ()
 
afx_msg void OnDeltaposSpinCmLength (NMHDR *pNMHDR, LRESULT *pResult)
 
afx_msg void OnEnChangeEditCmHeight ()
 
afx_msg void OnDeltaposSpinCmHeight (NMHDR *pNMHDR, LRESULT *pResult)
 
afx_msg void OnEnChangeEditCmWidth ()
 
afx_msg void OnDeltaposSpinCmWidth (NMHDR *pNMHDR, LRESULT *pResult)
 
afx_msg void OnEnChangeEditCmNumsides ()
 
afx_msg void OnDeltaposSpinCmNumsides (NMHDR *pNMHDR, LRESULT *pResult)
 
afx_msg void OnCbnSelchangeComboBoneJoint1 ()
 
afx_msg void OnCbnSelchangeComboBoneJoint2 ()
 
afx_msg void OnEnChangeEditCmDensity ()
 
afx_msg void OnDeltaposSpinCmDensity (NMHDR *pNMHDR, LRESULT *pResult)
 
afx_msg void OnEnChangeEditCmInertiascale ()
 
afx_msg void OnBnClickedRadioOriginCoordinates ()
 
afx_msg void OnBnClickedRadioOriginBonecenter ()
 
afx_msg void OnBnClickedRadioOriginJoint ()
 
afx_msg void OnEnChangeEditAfVectorX ()
 
afx_msg void OnDeltaposSpinAfVectorX (NMHDR *pNMHDR, LRESULT *pResult)
 
afx_msg void OnEnChangeEditAfVectorY ()
 
afx_msg void OnDeltaposSpinAfVectorY (NMHDR *pNMHDR, LRESULT *pResult)
 
afx_msg void OnEnChangeEditAfVectorZ ()
 
afx_msg void OnDeltaposSpinAfVectorZ (NMHDR *pNMHDR, LRESULT *pResult)
 
afx_msg void OnOnCbnSelchangeComboOriginBoneCenterJoint1 ()
 
afx_msg void OnOnCbnSelchangeComboOriginBoneCenterJoint2 ()
 
afx_msg void OnOnCbnSelchangeComboOriginJoint ()
 
afx_msg void OnEnChangeEditAnglesPitch ()
 
afx_msg void OnDeltaposSpinAnglesPitch (NMHDR *pNMHDR, LRESULT *pResult)
 
afx_msg void OnEnChangeEditAnglesYaw ()
 
afx_msg void OnDeltaposSpinAnglesYaw (NMHDR *pNMHDR, LRESULT *pResult)
 
afx_msg void OnEnChangeEditAnglesRoll ()
 
afx_msg void OnDeltaposSpinAnglesRoll (NMHDR *pNMHDR, LRESULT *pResult)
 
afx_msg void OnBnClickedCheckSelfcollision ()
 
afx_msg void OnEnChangeEditContents ()
 
afx_msg void OnEnChangeEditClipmask ()
 
afx_msg void OnEnChangeEditLinearfriction ()
 
afx_msg void OnDeltaposSpinLinearfriction (NMHDR *pNMHDR, LRESULT *pResult)
 
afx_msg void OnEnChangeEditAngularfriction ()
 
afx_msg void OnDeltaposSpinAngularfriction (NMHDR *pNMHDR, LRESULT *pResult)
 
afx_msg void OnEnChangeEditContactfriction ()
 
afx_msg void OnDeltaposSpinContactfriction (NMHDR *pNMHDR, LRESULT *pResult)
 
afx_msg void OnEnChangeEditFrictionDirection ()
 
afx_msg void OnEnChangeEditContactMotorDirection ()
 
afx_msg void OnCbnSelchangeComboModifiedjoint ()
 
afx_msg void OnBnClickedRadioModifyOrientation ()
 
afx_msg void OnBnClickedRadioModifyPosition ()
 
afx_msg void OnBnClickedRadioModifyBoth ()
 
afx_msg void OnEnChangeEditContainedjoints ()
 

Private Member Functions

void InitBodyList (void)
 
void InitJointLists (void)
 
void InitCollisionModelType (void)
 
void InitModifiedJointList (void)
 
void InitNewRenameDeleteButtons (void)
 
void ValidateCollisionModelLength (bool update)
 
void ValidateCollisionModelHeight (bool update)
 
void ValidateCollisionModelWidth (bool update)
 
void ValidateCollisionModelNumSides (bool update)
 
void ValidateCollisionModelDensity (bool update)
 

Private Attributes

idDeclAFfile
 
idDeclAF_Bodybody
 
int numJoints
 
CComboBox bodyList
 
CComboBox cm_comboType
 
float cm_length
 
float cm_height
 
float cm_width
 
CComboBox cm_comboBoneJoint1
 
CComboBox cm_comboBoneJoint2
 
float cm_numSides
 
float cm_density
 
CEdit cm_inertiaScale
 
float cm_origin_x
 
float cm_origin_y
 
float cm_origin_z
 
CComboBox cm_originBoneCenterJoint1
 
CComboBox cm_originBoneCenterJoint2
 
CComboBox cm_originJoint
 
float cm_angles_pitch
 
float cm_angles_yaw
 
float cm_angles_roll
 
BOOL m_selfCollision
 
CEdit m_editContents
 
CEdit m_editClipMask
 
float m_linearFriction
 
float m_angularFriction
 
float m_contactFriction
 
CEdit m_frictionDirection
 
CEdit m_contactMotorDirection
 
CComboBox m_comboModifiedJoint
 
CEdit m_editContainedJoints
 

Static Private Attributes

static toolTip_t toolTips []
 

Detailed Description

Definition at line 32 of file DialogAFBody.h.

Member Enumeration Documentation

anonymous enum
Enumerator
IDD 

Definition at line 47 of file DialogAFBody.h.

Constructor & Destructor Documentation

DialogAFBody::DialogAFBody ( CWnd *  pParent = NULL)

Definition at line 127 of file DialogAFBody.cpp.

DialogAFBody::~DialogAFBody ( )
virtual

Definition at line 158 of file DialogAFBody.cpp.

Member Function Documentation

void DialogAFBody::DoDataExchange ( CDataExchange *  pDX)
protectedvirtual

Definition at line 166 of file DialogAFBody.cpp.

void DialogAFBody::InitBodyList ( void  )
private

Definition at line 206 of file DialogAFBody.cpp.

void DialogAFBody::InitCollisionModelType ( void  )
private

Definition at line 265 of file DialogAFBody.cpp.

void DialogAFBody::InitJointLists ( void  )
private

Definition at line 230 of file DialogAFBody.cpp.

void DialogAFBody::InitModifiedJointList ( void  )
private

Definition at line 340 of file DialogAFBody.cpp.

void DialogAFBody::InitNewRenameDeleteButtons ( void  )
private

Definition at line 408 of file DialogAFBody.cpp.

void DialogAFBody::LoadBody ( const char *  name)

Definition at line 453 of file DialogAFBody.cpp.

void DialogAFBody::LoadFile ( idDeclAF af)

Definition at line 431 of file DialogAFBody.cpp.

void DialogAFBody::OnBnClickedButtonDeletebody ( )
protected

Definition at line 852 of file DialogAFBody.cpp.

void DialogAFBody::OnBnClickedButtonNewbody ( )
protected

Definition at line 796 of file DialogAFBody.cpp.

void DialogAFBody::OnBnClickedButtonRenamebody ( )
protected

Definition at line 824 of file DialogAFBody.cpp.

void DialogAFBody::OnBnClickedCheckSelfcollision ( )
protected

Definition at line 1244 of file DialogAFBody.cpp.

void DialogAFBody::OnBnClickedRadioModifyBoth ( )
protected

Definition at line 1342 of file DialogAFBody.cpp.

void DialogAFBody::OnBnClickedRadioModifyOrientation ( )
protected

Definition at line 1324 of file DialogAFBody.cpp.

void DialogAFBody::OnBnClickedRadioModifyPosition ( )
protected

Definition at line 1333 of file DialogAFBody.cpp.

void DialogAFBody::OnBnClickedRadioOriginBonecenter ( )
protected

Definition at line 1073 of file DialogAFBody.cpp.

void DialogAFBody::OnBnClickedRadioOriginCoordinates ( )
protected

Definition at line 1064 of file DialogAFBody.cpp.

void DialogAFBody::OnBnClickedRadioOriginJoint ( )
protected

Definition at line 1082 of file DialogAFBody.cpp.

void DialogAFBody::OnCbnSelchangeComboBodies ( )
protected

Definition at line 789 of file DialogAFBody.cpp.

void DialogAFBody::OnCbnSelchangeComboBoneJoint1 ( )
protected

Definition at line 1016 of file DialogAFBody.cpp.

void DialogAFBody::OnCbnSelchangeComboBoneJoint2 ( )
protected

Definition at line 1023 of file DialogAFBody.cpp.

void DialogAFBody::OnCbnSelchangeComboCmType ( )
protected

Definition at line 877 of file DialogAFBody.cpp.

void DialogAFBody::OnCbnSelchangeComboModifiedjoint ( )
protected

Definition at line 1320 of file DialogAFBody.cpp.

void DialogAFBody::OnDeltaposSpinAfVectorX ( NMHDR *  pNMHDR,
LRESULT *  pResult 
)
protected

Definition at line 1100 of file DialogAFBody.cpp.

void DialogAFBody::OnDeltaposSpinAfVectorY ( NMHDR *  pNMHDR,
LRESULT *  pResult 
)
protected

Definition at line 1122 of file DialogAFBody.cpp.

void DialogAFBody::OnDeltaposSpinAfVectorZ ( NMHDR *  pNMHDR,
LRESULT *  pResult 
)
protected

Definition at line 1144 of file DialogAFBody.cpp.

void DialogAFBody::OnDeltaposSpinAnglesPitch ( NMHDR *  pNMHDR,
LRESULT *  pResult 
)
protected

Definition at line 1184 of file DialogAFBody.cpp.

void DialogAFBody::OnDeltaposSpinAnglesRoll ( NMHDR *  pNMHDR,
LRESULT *  pResult 
)
protected

Definition at line 1230 of file DialogAFBody.cpp.

void DialogAFBody::OnDeltaposSpinAnglesYaw ( NMHDR *  pNMHDR,
LRESULT *  pResult 
)
protected

Definition at line 1207 of file DialogAFBody.cpp.

void DialogAFBody::OnDeltaposSpinAngularfriction ( NMHDR *  pNMHDR,
LRESULT *  pResult 
)
protected

Definition at line 1285 of file DialogAFBody.cpp.

void DialogAFBody::OnDeltaposSpinCmDensity ( NMHDR *  pNMHDR,
LRESULT *  pResult 
)
protected

Definition at line 1050 of file DialogAFBody.cpp.

void DialogAFBody::OnDeltaposSpinCmHeight ( NMHDR *  pNMHDR,
LRESULT *  pResult 
)
protected

Definition at line 935 of file DialogAFBody.cpp.

void DialogAFBody::OnDeltaposSpinCmLength ( NMHDR *  pNMHDR,
LRESULT *  pResult 
)
protected

Definition at line 902 of file DialogAFBody.cpp.

void DialogAFBody::OnDeltaposSpinCmNumsides ( NMHDR *  pNMHDR,
LRESULT *  pResult 
)
protected

Definition at line 1003 of file DialogAFBody.cpp.

void DialogAFBody::OnDeltaposSpinCmWidth ( NMHDR *  pNMHDR,
LRESULT *  pResult 
)
protected

Definition at line 968 of file DialogAFBody.cpp.

void DialogAFBody::OnDeltaposSpinContactfriction ( NMHDR *  pNMHDR,
LRESULT *  pResult 
)
protected

Definition at line 1301 of file DialogAFBody.cpp.

void DialogAFBody::OnDeltaposSpinLinearfriction ( NMHDR *  pNMHDR,
LRESULT *  pResult 
)
protected

Definition at line 1269 of file DialogAFBody.cpp.

void DialogAFBody::OnEnChangeEditAfVectorX ( )
protected

Definition at line 1091 of file DialogAFBody.cpp.

void DialogAFBody::OnEnChangeEditAfVectorY ( )
protected

Definition at line 1113 of file DialogAFBody.cpp.

void DialogAFBody::OnEnChangeEditAfVectorZ ( )
protected

Definition at line 1135 of file DialogAFBody.cpp.

void DialogAFBody::OnEnChangeEditAnglesPitch ( )
protected

Definition at line 1175 of file DialogAFBody.cpp.

void DialogAFBody::OnEnChangeEditAnglesRoll ( )
protected

Definition at line 1221 of file DialogAFBody.cpp.

void DialogAFBody::OnEnChangeEditAnglesYaw ( )
protected

Definition at line 1198 of file DialogAFBody.cpp.

void DialogAFBody::OnEnChangeEditAngularfriction ( )
protected

Definition at line 1276 of file DialogAFBody.cpp.

void DialogAFBody::OnEnChangeEditClipmask ( )
protected

Definition at line 1254 of file DialogAFBody.cpp.

void DialogAFBody::OnEnChangeEditCmDensity ( )
protected

Definition at line 1040 of file DialogAFBody.cpp.

void DialogAFBody::OnEnChangeEditCmHeight ( )
protected

Definition at line 925 of file DialogAFBody.cpp.

void DialogAFBody::OnEnChangeEditCmInertiascale ( )
protected

Definition at line 1058 of file DialogAFBody.cpp.

void DialogAFBody::OnEnChangeEditCmLength ( )
protected

Definition at line 892 of file DialogAFBody.cpp.

void DialogAFBody::OnEnChangeEditCmNumsides ( )
protected

Definition at line 996 of file DialogAFBody.cpp.

void DialogAFBody::OnEnChangeEditCmWidth ( )
protected

Definition at line 958 of file DialogAFBody.cpp.

void DialogAFBody::OnEnChangeEditContactfriction ( )
protected

Definition at line 1292 of file DialogAFBody.cpp.

void DialogAFBody::OnEnChangeEditContactMotorDirection ( )
protected

Definition at line 1314 of file DialogAFBody.cpp.

void DialogAFBody::OnEnChangeEditContainedjoints ( )
protected

Definition at line 1351 of file DialogAFBody.cpp.

void DialogAFBody::OnEnChangeEditContents ( )
protected

Definition at line 1248 of file DialogAFBody.cpp.

void DialogAFBody::OnEnChangeEditFrictionDirection ( )
protected

Definition at line 1308 of file DialogAFBody.cpp.

void DialogAFBody::OnEnChangeEditLinearfriction ( )
protected

Definition at line 1260 of file DialogAFBody.cpp.

BOOL DialogAFBody::OnInitDialog ( )
protectedvirtual

Definition at line 686 of file DialogAFBody.cpp.

void DialogAFBody::OnOnCbnSelchangeComboOriginBoneCenterJoint1 ( )
protected

Definition at line 1157 of file DialogAFBody.cpp.

void DialogAFBody::OnOnCbnSelchangeComboOriginBoneCenterJoint2 ( )
protected

Definition at line 1164 of file DialogAFBody.cpp.

void DialogAFBody::OnOnCbnSelchangeComboOriginJoint ( )
protected

Definition at line 1171 of file DialogAFBody.cpp.

void DialogAFBody::OnShowWindow ( BOOL  bShow,
UINT  nStatus 
)
protected

Definition at line 780 of file DialogAFBody.cpp.

int DialogAFBody::OnToolHitTest ( CPoint  point,
TOOLINFO *  pTI 
) const
protectedvirtual

Definition at line 710 of file DialogAFBody.cpp.

BOOL DialogAFBody::OnToolTipNotify ( UINT  id,
NMHDR *  pNMHDR,
LRESULT *  pResult 
)
protected

Definition at line 776 of file DialogAFBody.cpp.

void DialogAFBody::SaveBody ( void  )

Definition at line 571 of file DialogAFBody.cpp.

void DialogAFBody::SaveFile ( void  )

Definition at line 444 of file DialogAFBody.cpp.

void DialogAFBody::UpdateFile ( void  )

Definition at line 674 of file DialogAFBody.cpp.

void DialogAFBody::ValidateCollisionModelDensity ( bool  update)
private

Definition at line 1030 of file DialogAFBody.cpp.

void DialogAFBody::ValidateCollisionModelHeight ( bool  update)
private

Definition at line 915 of file DialogAFBody.cpp.

void DialogAFBody::ValidateCollisionModelLength ( bool  update)
private

Definition at line 882 of file DialogAFBody.cpp.

void DialogAFBody::ValidateCollisionModelNumSides ( bool  update)
private

Definition at line 981 of file DialogAFBody.cpp.

void DialogAFBody::ValidateCollisionModelWidth ( bool  update)
private

Definition at line 948 of file DialogAFBody.cpp.

Member Data Documentation

idDeclAF_Body* DialogAFBody::body
private

Definition at line 112 of file DialogAFBody.h.

CComboBox DialogAFBody::bodyList
private

Definition at line 116 of file DialogAFBody.h.

float DialogAFBody::cm_angles_pitch
private

Definition at line 132 of file DialogAFBody.h.

float DialogAFBody::cm_angles_roll
private

Definition at line 134 of file DialogAFBody.h.

float DialogAFBody::cm_angles_yaw
private

Definition at line 133 of file DialogAFBody.h.

CComboBox DialogAFBody::cm_comboBoneJoint1
private

Definition at line 121 of file DialogAFBody.h.

CComboBox DialogAFBody::cm_comboBoneJoint2
private

Definition at line 122 of file DialogAFBody.h.

CComboBox DialogAFBody::cm_comboType
private

Definition at line 117 of file DialogAFBody.h.

float DialogAFBody::cm_density
private

Definition at line 124 of file DialogAFBody.h.

float DialogAFBody::cm_height
private

Definition at line 119 of file DialogAFBody.h.

CEdit DialogAFBody::cm_inertiaScale
private

Definition at line 125 of file DialogAFBody.h.

float DialogAFBody::cm_length
private

Definition at line 118 of file DialogAFBody.h.

float DialogAFBody::cm_numSides
private

Definition at line 123 of file DialogAFBody.h.

float DialogAFBody::cm_origin_x
private

Definition at line 126 of file DialogAFBody.h.

float DialogAFBody::cm_origin_y
private

Definition at line 127 of file DialogAFBody.h.

float DialogAFBody::cm_origin_z
private

Definition at line 128 of file DialogAFBody.h.

CComboBox DialogAFBody::cm_originBoneCenterJoint1
private

Definition at line 129 of file DialogAFBody.h.

CComboBox DialogAFBody::cm_originBoneCenterJoint2
private

Definition at line 130 of file DialogAFBody.h.

CComboBox DialogAFBody::cm_originJoint
private

Definition at line 131 of file DialogAFBody.h.

float DialogAFBody::cm_width
private

Definition at line 120 of file DialogAFBody.h.

DialogAFConstraint* DialogAFBody::constraintDlg

Definition at line 45 of file DialogAFBody.h.

idDeclAF* DialogAFBody::file
private

Definition at line 111 of file DialogAFBody.h.

float DialogAFBody::m_angularFriction
private

Definition at line 139 of file DialogAFBody.h.

CComboBox DialogAFBody::m_comboModifiedJoint
private

Definition at line 143 of file DialogAFBody.h.

float DialogAFBody::m_contactFriction
private

Definition at line 140 of file DialogAFBody.h.

CEdit DialogAFBody::m_contactMotorDirection
private

Definition at line 142 of file DialogAFBody.h.

CEdit DialogAFBody::m_editClipMask
private

Definition at line 137 of file DialogAFBody.h.

CEdit DialogAFBody::m_editContainedJoints
private

Definition at line 144 of file DialogAFBody.h.

CEdit DialogAFBody::m_editContents
private

Definition at line 136 of file DialogAFBody.h.

CEdit DialogAFBody::m_frictionDirection
private

Definition at line 141 of file DialogAFBody.h.

float DialogAFBody::m_linearFriction
private

Definition at line 138 of file DialogAFBody.h.

BOOL DialogAFBody::m_selfCollision
private

Definition at line 135 of file DialogAFBody.h.

int DialogAFBody::numJoints
private

Definition at line 113 of file DialogAFBody.h.

toolTip_t DialogAFBody::toolTips
staticprivate

Definition at line 147 of file DialogAFBody.h.


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