Filter Library Camera Interface Physics

CScanFilterMath Class Reference
[Math Filter]

#include <ScanFilterMath.h>

Inheritance diagram for CScanFilterMath:

CScanFilter List of all members.

Detailed Description

Definition at line 67 of file ScanFilterMath.h.

Public Types

enum  MathOperationType { MATH_ADD, MATH_SUBAB, MATH_SUBBA, MATH_MUL }
 math types to perform. More...
typedef CScanBaseBuffer::ValueType ValueType
 the value type.
typedef ValueTypePointer
 the pointer type.
typedef const ValueTypeConstPointer
 the const pointer type.
typedef CSize SizeType
 the size type.
typedef DWORD SizeElementType
 the size element 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::ApplyCore().
virtual DWORD GetNrOfInBuffers () const
 the number of input buffers is 2.
virtual CScanBaseBufferGetInputBuffer (UINT nNr)
 the requested input buffer.
virtual void SetInputBuffer (UINT nNr, CScanBaseBuffer *lpsbIn)
 set the given input buffer.
Accessors
MathOperationType GetMathOperation () const
 the current offset.
Mutators
void SetMathOperation (MathOperationType)
 set the offset.

Static Public Attributes

static LPCTSTR m_lpcsFilterName
 the filter name.
static LPCTSTR m_lpcsShortFilterName
 the class short filtername.
static const MathOperationType def_MathOperation
 the default offset.

Protected Member Functions

virtual void Serialize (CArchive &ar)
 store or retrieve the object's settings.
void Process (ConstPointer in1, ConstPointer end1, ConstPointer in2, Pointer out)
 process the given frame part (L2R, R2L frame part).

Protected Attributes

CScanBaseBufferm_lpsbIn2
 the second input buffer.
MathOperationType m_MathOperation
 current math setting.

Friends

class FilterDlg_Math
 its dialog class.


Member Enumeration Documentation

enum CScanFilterMath::MathOperationType

Enumerator:
MATH_ADD  A + B.
MATH_SUBAB  A - B.
MATH_SUBBA  B - A.
MATH_MUL  A * B.

Definition at line 103 of file ScanFilterMath.h.


Member Function Documentation

void CScanFilterMath::ReadFilterSettings (  )  [virtual]

via registry); see also CScanFilterNull::ReadFilterSettings().

Reimplemented from CScanFilter.

Definition at line 102 of file ScanFilterMath.cpp.

References gCflRegistrySubkey, m_lpcsFilterName, Q_INVALID, and SetParameters().

void CScanFilterMath::WriteFilterSettings (  )  const [virtual]

for use with the filterlist window (e.g. via registry); see also ReadFilterSettings().

Reimplemented from CScanFilter.

Definition at line 121 of file ScanFilterMath.cpp.

References gCflRegistrySubkey, GetParameters(), m_lpcsFilterName, and Q_INVALID.


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