CEditTransferFunction Class Reference

#include <EditTransferFunction.h>

Inheritance diagram for CEditTransferFunction:

Inheritance graph
[legend]
Collaboration diagram for CEditTransferFunction:

Collaboration graph
[legend]
List of all members.

Detailed Description

CEditTransferFunction dialog: this is the dialog window for changing the transfer function parameters, the user can interactively change the tf in this dialog

requirements
win98 or later
win2k or later
MFC
Version:
1.0 first version
Date:
12-09-2004
Author:
Johanna Beyer, Christoph Heinzl
license
This code is absolutely free to use and modify. The code is provided "as is" with no expressed or implied warranty. The author accepts no liability if it causes any damage to your computer, causes your pet to fall ill, increases baldness or makes your car start emitting strange noises when you start it up. This code has no bugs, just undocumented features!

:

:


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


Member Function Documentation

void CEditTransferFunction::OnBnClickedLoadTf  )  [private]
 

loads tf from file

void CEditTransferFunction::OnBnClickedOk  )  [private]
 

default: closes dialog

void CEditTransferFunction::OnBnClickedSaveTf  )  [private]
 

saves tf to file

void CEditTransferFunction::OnLButtonUp UINT  nFlags,
CPoint  point
[private]
 

if user clicked in histogram, new transfer function point is created, tf is calculated and displayed

Parameters:
nFlags 
point 

void CEditTransferFunction::OnPaint  )  [private]
 

draws dialog, with histogram and transfer function

void CEditTransferFunction::UpdatePens  )  [private]
 

updates colors of myPen array to current tf colors


Generated on Thu Dec 9 12:08:22 2004 for Visualize3D by doxygen 1.3.1 using KingsTools