Filter Library | Camera | Interface Physics |
#include <ScanFilterThreshold.h>
Inheritance diagram for CScanFilterThreshold:
Definition at line 67 of file ScanFilterThreshold.h.
Public Types | |
enum | ThresholdMode { tmBelow, tmAbove, tmOutside } |
threshold mode. More... | |
typedef CScanBaseBuffer::ValueType | ValueType |
the value type. | |
typedef ValueType | InputPixelType |
the input pixel type. | |
typedef ValueType | OutputPixelType |
the output pixel type. | |
Public Member Functions | |
Camera--Filter Interface | |
virtual void | ReadFilterSettings () |
configure filter with settings as provided by the application on the filterlist window (e.g. | |
virtual void | WriteFilterSettings () const |
save filter settings e.g. | |
virtual LPCTSTR | GetParameters () const |
provide current filter parameter(s) for filter-scripting capture in the main application; see also CScanFilterNull::GetParameters(). | |
virtual BOOL | SetParameters (LPCTSTR lpParameters) |
set parameters for filter-script execution of filter; see also CScanFilterNull::SetParameters(). | |
virtual BOOL | RunModeless (CWnd *pParentWnd, CDocument *pDoc) |
create filter dialog and pre Apply() filter to view result; see also CScanFilterNull::RunModeless(). | |
virtual BOOL | Apply () |
check parameters, take care of a properly sized output buffer, set its name and copy filter parameters and process; see also CScanFilterNull::Apply(). | |
Accessors | |
int | Columns () const |
number of columns in image. | |
int | Rows () const |
ThresholdMode | GetThresholdMode () const |
the threshold mode. | |
InputPixelType | GetLowerThreshold () const |
the lower threshold value. | |
InputPixelType | GetUpperThreshold () const |
the upper threshold value. | |
OutputPixelType | GetOutsideValue () const |
the outside value. | |
Mutators | |
void | SetThresholdMode (ThresholdMode mode) |
the threshold mode. | |
void | SetLowerThreshold (InputPixelType lower) |
set the lower threshold value. | |
void | SetUpperThreshold (InputPixelType upper) |
set the upper threshold value. | |
void | SetOutsideValue (OutputPixelType outside) |
set the outside value. | |
Static Public Attributes | |
static LPCTSTR | m_lpcsFilterName |
the filter name. | |
static LPCTSTR | m_lpcsShortFilterName |
the class short filtername. | |
Protected Member Functions | |
virtual void | Serialize (CArchive &ar) |
store or retrieve the object's settings; see also CScanFilterNull::Serialize(). | |
Protected Attributes | |
ThresholdMode | m_mode |
the threshold mode. | |
InputPixelType | m_lower |
the lower threshold value. | |
InputPixelType | m_upper |
the upper threshold value. | |
OutputPixelType | m_outside |
the outside output value. | |
Friends | |
class | CFilterDlg_Threshold |
its dialog class. |
Definition at line 93 of file ScanFilterThreshold.h.
void CScanFilterThreshold::ReadFilterSettings | ( | ) | [virtual] |
via registry); see also CScanFilterNull::ReadFilterSettings().
Reimplemented from CScanFilter.
Definition at line 129 of file ScanFilterThreshold.cpp.
References gCflRegistrySubkey, m_lpcsFilterName, Q_INVALID, and SetParameters().
void CScanFilterThreshold::WriteFilterSettings | ( | ) | const [virtual] |
for use with the filterlist window (e.g. via registry); see also ReadFilterSettings().
Reimplemented from CScanFilter.
Definition at line 148 of file ScanFilterThreshold.cpp.
References gCflRegistrySubkey, GetParameters(), m_lpcsFilterName, and Q_INVALID.