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 | List of all members
CDialogColorPicker Class Reference

#include <DialogColorPicker.h>

Inheritance diagram for CDialogColorPicker:

Public Types

enum  { IDD = IDD_DIALOG_COLORS }
 

Public Member Functions

 CDialogColorPicker (COLORREF c, CWnd *pParent=NULL)
 
 ~CDialogColorPicker ()
 
COLORREF GetColor ()
 
float GetOverBright ()
 

Public Attributes

float m_overBright
 
void(* UpdateParent )(float r, float g, float b, float a)
 

Protected 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)
 
afx_msg void OnSysColorChange ()
 
afx_msg void OnPaint ()
 
virtual BOOL OnInitDialog ()
 
afx_msg void OnChangeEditBlue ()
 
afx_msg void OnChangeEditGreen ()
 
afx_msg void OnChangeEditHue ()
 
afx_msg void OnChangeEditRed ()
 
afx_msg void OnChangeEditSat ()
 
afx_msg void OnChangeEditVal ()
 
afx_msg void OnChangeEditOverbright ()
 
afx_msg void OnTimer (UINT nIDEvent)
 
afx_msg void OnBtnColor ()
 
void DrawFilledColor (CDC *pDC, CRect cr, COLORREF c)
 
void DrawLines (CDC *pDC)
 
void DrawXorRect (CDC *pDC, CRect &cr)
 
void CalcSlopes ()
 
void CalcCuboid ()
 
void CreateBrightDIB ()
 
void SetDIBPalette ()
 
void DrawMarkers (CDC *pDC)
 
void TrackPoint (CPoint pt)
 
void CalcRects ()
 
BOOL InCircle (CPoint pt)
 
BOOL InBright (CPoint pt)
 
BOOL InOverBright (CPoint pt)
 
void SetSpinVals ()
 
void SetEditVals ()
 
void DrawAll ()
 
void DrawRGB (CDC *pDC)
 
void DrawHSB (CDC *pDC)
 
void LoadMappedBitmap (CBitmap &bitmap, UINT nIdResource, CSize &size)
 

Protected Attributes

CBitmap m_RgbBitmap
 
CBitmap m_HsbBitmap
 
CDC memDC
 
CPoint m_Centre
 
CDIB m_BrightDIB
 
int rgbWidth
 
int rgbHeight
 
int hsbWidth
 
int hsbHeight
 
int m_nMouseIn
 
CRect m_CurrentRect
 
CRect brightMark
 
CRect brightRect
 
CRect overBrightRect
 
HSVType hsvColor
 
RGBType color
 
RGBType m_OldColor
 
CPoint Vertex
 
CPoint Top
 
CPoint Left
 
CPoint Right
 
CRect rects [3]
 
CPoint m_Cuboid [8]
 
BOOL m_bInMouse
 
int nIndex
 
int RedLen
 
int GreenLen
 
int BlueLen
 
LineDesc lines [3]
 
CRect rgbRect
 
CRect hsbRect
 
CRect OldColorRect
 
CRect NewColorRect
 
BOOL m_bInitOver
 
BOOL m_bInDrawAll
 
float overBright
 

Detailed Description

Definition at line 73 of file DialogColorPicker.h.

Member Enumeration Documentation

anonymous enum
Enumerator
IDD 

Definition at line 86 of file DialogColorPicker.h.

Constructor & Destructor Documentation

CDialogColorPicker::CDialogColorPicker ( COLORREF  c,
CWnd *  pParent = NULL 
)

Definition at line 454 of file DialogColorPicker.cpp.

CDialogColorPicker::~CDialogColorPicker ( )

Definition at line 479 of file DialogColorPicker.cpp.

Member Function Documentation

void CDialogColorPicker::CalcCuboid ( )
protected

Definition at line 1020 of file DialogColorPicker.cpp.

void CDialogColorPicker::CalcRects ( )
protected

Definition at line 867 of file DialogColorPicker.cpp.

void CDialogColorPicker::CalcSlopes ( )
protected

Definition at line 981 of file DialogColorPicker.cpp.

void CDialogColorPicker::CreateBrightDIB ( )
protected

Definition at line 837 of file DialogColorPicker.cpp.

void CDialogColorPicker::DrawAll ( )
protected

Definition at line 1211 of file DialogColorPicker.cpp.

void CDialogColorPicker::DrawFilledColor ( CDC *  pDC,
CRect  cr,
COLORREF  c 
)
protected

Definition at line 1230 of file DialogColorPicker.cpp.

void CDialogColorPicker::DrawHSB ( CDC *  pDC)
protected

Definition at line 882 of file DialogColorPicker.cpp.

void CDialogColorPicker::DrawLines ( CDC *  pDC)
protected

Definition at line 907 of file DialogColorPicker.cpp.

void CDialogColorPicker::DrawMarkers ( CDC *  pDC)
protected

Definition at line 742 of file DialogColorPicker.cpp.

void CDialogColorPicker::DrawRGB ( CDC *  pDC)
protected

Definition at line 895 of file DialogColorPicker.cpp.

void CDialogColorPicker::DrawXorRect ( CDC *  pDC,
CRect &  cr 
)
protected

Definition at line 963 of file DialogColorPicker.cpp.

COLORREF CDialogColorPicker::GetColor ( void  )
inline

Definition at line 80 of file DialogColorPicker.h.

float CDialogColorPicker::GetOverBright ( )
inline

Definition at line 81 of file DialogColorPicker.h.

BOOL CDialogColorPicker::InBright ( CPoint  pt)
protected

Definition at line 774 of file DialogColorPicker.cpp.

BOOL CDialogColorPicker::InCircle ( CPoint  pt)
protected

Definition at line 769 of file DialogColorPicker.cpp.

BOOL CDialogColorPicker::InOverBright ( CPoint  pt)
protected

Definition at line 779 of file DialogColorPicker.cpp.

void CDialogColorPicker::LoadMappedBitmap ( CBitmap &  bitmap,
UINT  nIdResource,
CSize &  size 
)
protected

Definition at line 1238 of file DialogColorPicker.cpp.

void CDialogColorPicker::OnBtnColor ( )
protected

Definition at line 1290 of file DialogColorPicker.cpp.

void CDialogColorPicker::OnChangeEditBlue ( )
protected

Definition at line 1113 of file DialogColorPicker.cpp.

void CDialogColorPicker::OnChangeEditGreen ( )
protected

Definition at line 1128 of file DialogColorPicker.cpp.

void CDialogColorPicker::OnChangeEditHue ( )
protected

Definition at line 1158 of file DialogColorPicker.cpp.

void CDialogColorPicker::OnChangeEditOverbright ( )
protected

Definition at line 1203 of file DialogColorPicker.cpp.

void CDialogColorPicker::OnChangeEditRed ( )
protected

Definition at line 1143 of file DialogColorPicker.cpp.

void CDialogColorPicker::OnChangeEditSat ( )
protected

Definition at line 1173 of file DialogColorPicker.cpp.

void CDialogColorPicker::OnChangeEditVal ( )
protected

Definition at line 1188 of file DialogColorPicker.cpp.

BOOL CDialogColorPicker::OnInitDialog ( )
protectedvirtual

Definition at line 666 of file DialogColorPicker.cpp.

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

Definition at line 514 of file DialogColorPicker.cpp.

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

Definition at line 552 of file DialogColorPicker.cpp.

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

Definition at line 562 of file DialogColorPicker.cpp.

void CDialogColorPicker::OnPaint ( )
protected

Definition at line 658 of file DialogColorPicker.cpp.

void CDialogColorPicker::OnSysColorChange ( )
protected

Definition at line 1277 of file DialogColorPicker.cpp.

void CDialogColorPicker::OnTimer ( UINT  nIDEvent)
protected

Definition at line 1284 of file DialogColorPicker.cpp.

void CDialogColorPicker::SetDIBPalette ( )
protected

Definition at line 848 of file DialogColorPicker.cpp.

void CDialogColorPicker::SetEditVals ( )
protected

Definition at line 1101 of file DialogColorPicker.cpp.

void CDialogColorPicker::SetSpinVals ( )
protected

Definition at line 1087 of file DialogColorPicker.cpp.

void CDialogColorPicker::TrackPoint ( CPoint  pt)
protected

Definition at line 784 of file DialogColorPicker.cpp.

Member Data Documentation

int CDialogColorPicker::BlueLen
protected

Definition at line 176 of file DialogColorPicker.h.

CRect CDialogColorPicker::brightMark
protected

Definition at line 158 of file DialogColorPicker.h.

CRect CDialogColorPicker::brightRect
protected

Definition at line 159 of file DialogColorPicker.h.

RGBType CDialogColorPicker::color
protected

Definition at line 164 of file DialogColorPicker.h.

int CDialogColorPicker::GreenLen
protected

Definition at line 175 of file DialogColorPicker.h.

int CDialogColorPicker::hsbHeight
protected

Definition at line 155 of file DialogColorPicker.h.

CRect CDialogColorPicker::hsbRect
protected

Definition at line 181 of file DialogColorPicker.h.

int CDialogColorPicker::hsbWidth
protected

Definition at line 154 of file DialogColorPicker.h.

HSVType CDialogColorPicker::hsvColor
protected

Definition at line 162 of file DialogColorPicker.h.

CPoint CDialogColorPicker::Left
protected

Definition at line 168 of file DialogColorPicker.h.

LineDesc CDialogColorPicker::lines[3]
protected

Definition at line 177 of file DialogColorPicker.h.

BOOL CDialogColorPicker::m_bInDrawAll
protected

Definition at line 186 of file DialogColorPicker.h.

BOOL CDialogColorPicker::m_bInitOver
protected

Definition at line 185 of file DialogColorPicker.h.

BOOL CDialogColorPicker::m_bInMouse
protected

Definition at line 172 of file DialogColorPicker.h.

CDIB CDialogColorPicker::m_BrightDIB
protected

Definition at line 150 of file DialogColorPicker.h.

CPoint CDialogColorPicker::m_Centre
protected

Definition at line 149 of file DialogColorPicker.h.

CPoint CDialogColorPicker::m_Cuboid[8]
protected

Definition at line 171 of file DialogColorPicker.h.

CRect CDialogColorPicker::m_CurrentRect
protected

Definition at line 158 of file DialogColorPicker.h.

CBitmap CDialogColorPicker::m_HsbBitmap
protected

Definition at line 146 of file DialogColorPicker.h.

int CDialogColorPicker::m_nMouseIn
protected

Definition at line 157 of file DialogColorPicker.h.

RGBType CDialogColorPicker::m_OldColor
protected

Definition at line 165 of file DialogColorPicker.h.

float CDialogColorPicker::m_overBright

Definition at line 87 of file DialogColorPicker.h.

CBitmap CDialogColorPicker::m_RgbBitmap
protected

Definition at line 146 of file DialogColorPicker.h.

CDC CDialogColorPicker::memDC
protected

Definition at line 148 of file DialogColorPicker.h.

CRect CDialogColorPicker::NewColorRect
protected

Definition at line 183 of file DialogColorPicker.h.

int CDialogColorPicker::nIndex
protected

Definition at line 173 of file DialogColorPicker.h.

CRect CDialogColorPicker::OldColorRect
protected

Definition at line 182 of file DialogColorPicker.h.

float CDialogColorPicker::overBright
protected

Definition at line 188 of file DialogColorPicker.h.

CRect CDialogColorPicker::overBrightRect
protected

Definition at line 160 of file DialogColorPicker.h.

CRect CDialogColorPicker::rects[3]
protected

Definition at line 170 of file DialogColorPicker.h.

int CDialogColorPicker::RedLen
protected

Definition at line 174 of file DialogColorPicker.h.

int CDialogColorPicker::rgbHeight
protected

Definition at line 153 of file DialogColorPicker.h.

CRect CDialogColorPicker::rgbRect
protected

Definition at line 180 of file DialogColorPicker.h.

int CDialogColorPicker::rgbWidth
protected

Definition at line 152 of file DialogColorPicker.h.

CPoint CDialogColorPicker::Right
protected

Definition at line 169 of file DialogColorPicker.h.

CPoint CDialogColorPicker::Top
protected

Definition at line 167 of file DialogColorPicker.h.

void(* CDialogColorPicker::UpdateParent)(float r, float g, float b, float a)

Definition at line 90 of file DialogColorPicker.h.

CPoint CDialogColorPicker::Vertex
protected

Definition at line 166 of file DialogColorPicker.h.


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