Filter Library Camera Interface Physics

CHistogramCtrl Class Reference
[Histogram Control]

#include <ControlHistogramCtrl.h>

List of all members.


Detailed Description

Definition at line 42 of file ControlHistogramCtrl.h.

Public Types

typedef double ValueType
 the value type.
typedef cil::ImageHistogramCalculator<
ValueType
HistogramType
 the histogram type.

Public Member Functions

virtual BOOL Create (LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT &rect, CWnd *pParentWnd, UINT nID, CCreateContext *pContext=NULL)
Accessors
int GetNumberOfBins () const
 the number of bins.
int GetMaximumCount () const
 the maximum count.
Mutators
void SetHistogram (const HistogramType &histogram)
 set the histogram.
void SetAutoscale (bool autoscale)
 enable or disable autoscaling; Note: currently always autoscaling.
void SetFullscale (bool fullscale)
 set the full scale; Note: not implemented.
void EnableHorizontalCursor (bool enable)
 enable the horizontal cursor.
void SetHorizontalCursor (int percentage)
 set the horizontal cursor.
void EnableVerticalCursor (bool enable)
 enable the vertical cursor.
void SetVerticalCursor1 (int percentage)
 set the vertical cursor 1.
void SetVerticalCursor2 (int percentage)
 set the vertical cursor 2.
void SetCursorColor (COLORREF color)
 set cursor color.
void SetBinColor (COLORREF color)
 set bin color.
void SetBgColor (COLORREF bgcolor)
 set background color.

Protected Member Functions

virtual BOOL OnNotify (WPARAM wParam, LPARAM lParam, LRESULT *pResult)
virtual LRESULT WindowProc (UINT message, WPARAM wParam, LPARAM lParam)
virtual BOOL PreCreateWindow (CREATESTRUCT &cs)
afx_msg BOOL OnEraseBkgnd (CDC *pDC)
afx_msg void OnDrawItem (int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct)
afx_msg void OnPaint ()
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnCustomDraw (NMHDR *pNMHDR, LRESULT *pResult)
 CHistogramCtrl (const Self &rhs)
 copy-assignment constructor.
Selfoperator= (const Self &rhs)
 assignment operator.

Protected Attributes

HistogramType m_histogram
bool m_autoscale
double m_fullscale
bool m_horCursorOn
bool m_verCursorOn
int m_horCursor
int m_verCursor1
int m_verCursor2
COLORREF m_cursorColor
COLORREF m_binColor
COLORREF m_bgColor

Private Types

typedef CHistogramCtrl Self
 this type.


The documentation for this class was generated from the following files:
Camera Filter Library documentation © 2004-2007 by Leiden Probe Microscopy