CTransferDisplay Class Reference

Klasse zur Anzeige von einem Farbauswahlselektor. More...

#include <TransferDisplay.h>

List of all members.

Public Member Functions

 CTransferDisplay ()
virtual ~CTransferDisplay ()
TransferPoint * getPoint (int index)
 Liefert einen Punkt im Histrogramm zurück.
TransferPoint * getPoint (CPoint point)
 Liefert einen Punkt im Histrogramm zurück.
void addPoint (CPoint point, int r, int g, int b)
void deletePoint (TransferPoint *del)
 Löscht einen Punkt.
void colorPoint (TransferPoint *here, COLORREF color)
 Farbe eines Punktes ändern.
void movePoint (TransferPoint *move, CPoint point)
 Verschiebt einen Punkt.
void setPreset (rgb *cols, int count)
 Setzt einen Color Preset.
rgb * getColors (int &size)
 Liefert alle Farben der Anzeige (+ Größe).

Protected Member Functions

void oneTimeInit ()
 Einmalige Initialisierungen.
void drawGradient (CDC *pDC, CRect drawSize)
 Zeichnet die Farbauswahl mit GDI.
void recalcColors ()
 Berechnet die Farben neu wenn neue Punkte eingefügt wurden.
afx_msg void OnPaint ()

Static Protected Member Functions

static int compare (const void *a, const void *b)
 benötigt für qsort von TransferPoint's

Protected Attributes

rgb * colors
int colorCount
TransferPoint points [MAX_POINTS]
int pointCount
bool init


Detailed Description

Klasse zur Anzeige von einem Farbauswahlselektor.


Constructor & Destructor Documentation

CTransferDisplay::CTransferDisplay (   ) 
 

CTransferDisplay::~CTransferDisplay (   )  [virtual]
 


Member Function Documentation

void CTransferDisplay::addPoint (  CPoint  point,
int  r,
int  g,
int  b
) 
 

void CTransferDisplay::colorPoint (  TransferPoint *  here,
COLORREF  color
) 
 

Farbe eines Punktes ändern.

int CTransferDisplay::compare (  const void *  a,
const void *  b
)  [static, protected]
 

benötigt für qsort von TransferPoint's

void CTransferDisplay::deletePoint (  TransferPoint *  del  ) 
 

Löscht einen Punkt.

void CTransferDisplay::drawGradient (  CDC *  pDC,
CRect  drawSize
)  [protected]
 

Zeichnet die Farbauswahl mit GDI.

rgb * CTransferDisplay::getColors (  int &  size  ) 
 

Liefert alle Farben der Anzeige (+ Größe).

TransferPoint * CTransferDisplay::getPoint (  CPoint  point  ) 
 

Liefert einen Punkt im Histrogramm zurück.

TransferPoint * CTransferDisplay::getPoint (  int  index  ) 
 

Liefert einen Punkt im Histrogramm zurück.

void CTransferDisplay::movePoint (  TransferPoint *  move,
CPoint  point
) 
 

Verschiebt einen Punkt.

void CTransferDisplay::oneTimeInit (   )  [protected]
 

Einmalige Initialisierungen.

void CTransferDisplay::OnPaint (   )  [protected]
 

void CTransferDisplay::recalcColors (   )  [protected]
 

Berechnet die Farben neu wenn neue Punkte eingefügt wurden.

void CTransferDisplay::setPreset (  rgb *  cols,
int  count
) 
 

Setzt einen Color Preset.


Member Data Documentation

int CTransferDisplay::colorCount [protected]
 

rgb* CTransferDisplay::colors [protected]
 

bool CTransferDisplay::init [protected]
 

int CTransferDisplay::pointCount [protected]
 

TransferPoint CTransferDisplay::points[MAX_POINTS] [protected]
 


The documentation for this class was generated from the following files:
Generated on Sun Jan 15 17:55:58 2006 for Show The Flow by  doxygen 1.4.5