#include <EditTransferFunction.h>
Inheritance diagram for CEditTransferFunction:


Public Member Functions | |
| CEditTransferFunction (CWnd *pParent=NULL) | |
Protected Member Functions | |
| virtual void | DoDataExchange (CDataExchange *pDX) |
Private Types | |
| enum | { IDD = IDD_EDIT_TRANSFERFUNCTION } |
Private Member Functions | |
| void | UpdatePens () |
| afx_msg void | OnBnClickedOk () |
| afx_msg void | OnPaint () |
| afx_msg void | OnLButtonUp (UINT nFlags, CPoint point) |
| afx_msg void | OnBnClickedOk2 () |
| afx_msg void | OnBnClickedSaveTf () |
| afx_msg void | OnBnClickedLoadTf () |
Private Attributes | |
| struct { | |
| BYTE m_pcName [10] | |
| BYTE m_bNumber | |
| } | m_sTransHeader |
| struct { | |
| int m_nPoint | |
| COLORREF m_pColor | |
| int m_opacity | |
| } | m_sTransData |
| int | m_width |
| int | m_height |
| int | startX |
| int | startY |
| double | xratio |
| std::vector< short > | vec |
| std::vector< short > | vecY |
| std::map< int, COLORREF > | m |
| std::map< int, int > | mOp |
| CPen ** | myPen |
| CVisualize3DDoc * | m_doc |
| unsigned short * | histogram |
| COLORREF | cf |
| TransferFunction * | tf |
|
|
loads tf from file |
|
|
default: closes dialog |
|
|
saves tf to file |
|
||||||||||||
|
if user clicked in histogram, new transfer function point is created, tf is calculated and displayed
|
|
|
draws dialog, with histogram and transfer function |
|
|
updates colors of myPen array to current tf colors |
1.3.1 using KingsTools