Filter Library Camera Interface Physics

ScanFilterClip.h

00001 /*
00002  * ScanFilterClip.h - clip filter.
00003  *
00004  * This file is part of the Camera Filter Library.
00005  * Computer Aided Measurement Environment for Realtime Atomic imaging (Camera)
00006  *
00007  * Copyright (C) 2004-2005, Leiden Probe Microscopy.
00008  * Copyright (C) 2004-2005, Universiteit Leiden.
00009  *
00010  * Authors: M. Seynen (original), Martin J. Moene
00011  *
00012  * $Id: ScanFilterClip.h 184 2005-05-04 08:55:53Z moene $
00013  */
00014 
00015 #ifndef CFL_SCANFILTERCLIP_H
00016 #define CFL_SCANFILTERCLIP_H
00017 
00018 #if _MSC_VER > 1000
00019 #pragma once
00020 #endif // _MSC_VER > 1000
00021 
00022 #include <cfl/ScanFilter.h>             // for base class
00023 #include <cfl/ScanBaseBuffer.h>         // for ValueType
00024 
00025 /**
00026  * \addtogroup cfl_filterclip Clip Filter
00027  * \brief clip filter.
00028  *
00029 
00030 <h3>Purpose</h3>
00031 
00032 <h3>Description</h3>
00033 
00034 <h3>Algorithm</h3>
00035 
00036 
00037 \f[
00038    \textrm{B} = \textrm{A}
00039 \f]
00040 
00041 <h3>Examples</h3>
00042 Try to find some interesting pictures for most filters.
00043 
00044 <h3>Contact</h3>
00045 Dipl.phys. M.J. Rost<br>
00046 Huygens Laboratorium<br>
00047 Universiteit Leiden<br>
00048 Niels Bohrweg 2<br>
00049 2333 CA Leiden, The Netherlands<br>
00050 <br>
00051 Tel: +31 71 5275600<br>
00052 Fax: +31 71 5275404<br>
00053 <br>
00054 E-mail: rost@physics.LeidenUniv.nl<br>
00055 Web: http://www.geocities.com/marcel_rost/<br>
00056 
00057  *
00058  * @{
00059  */
00060 
00061 DECLARE_CLASS( CScanFilterClip );         // create various types
00062 
00063 /**
00064  * \brief clas descr..
00065  *
00066  */
00067 class CScanFilterClip : public CScanFilter
00068 {
00069 public:
00070         CScanFilterClip();
00071         virtual ~CScanFilterClip();
00072 
00073         virtual BOOL    RunModeless( CWnd *pParentWnd, CDocument *pDoc );
00074         virtual BOOL    Apply();
00075         virtual void    SetDragInput(BOOL bL2R, CRect rcIn);
00076 
00077         virtual BOOL    NeedRectSelection() const { return TRUE; };
00078         virtual BOOL    CanDoDialogEntry() const { return FALSE; }; //TODO
00079 
00080         virtual BOOL    SetParameters(LPCTSTR lpParameters);            
00081         virtual LPCTSTR GetParameters() const;
00082         static LPCTSTR m_lpcsFilterName;
00083 
00084    /**
00085     * the class short filtername.
00086     */
00087    static LPCTSTR m_lpcsShortFilterName;
00088 
00089 protected:
00090 
00091         //friend class CFilterDlg_Clip;
00092 
00093         virtual void Serialize(CArchive& ar);
00094 
00095         CRect m_rcClipArea;
00096         
00097         DECLARE_SERIAL(CScanFilterClip) 
00098 
00099 };
00100 
00101 /// @} cfl_filterclip
00102 
00103 #endif // CFL_SCANFILTERCLIP_H
00104 
00105 /*
00106  * end of file
00107  */
00108 

Camera Filter Library documentation © 2004-2007 by Leiden Probe Microscopy